@classmethod
def _get_ordinal(cls, type):
    """
        Gets the ordinal for the specified ``HLLType``.

        :param HLLType type: the type whose ordinal is desired
        :returns the ordinal for the specified type, to be used in the version byte.
                 This will always be non-negative.
        :rtype: int
        """
    return cls.TYPE_ORDINALS.index(type)
