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

        :param int ordinal: the ordinal whose type is desired
        :returns: the type for the specified ordinal. This will never be ``None``.
        :rtype: HLLType
        """
    if ordinal < 0 or ordinal >= len(cls.TYPE_ORDINALS):
        raise ValueError('Invalid type ordinal {}. Only 0-{} inclusive allowed'
            .format(ordinal, len(cls.TYPE_ORDINALS) - 1))
    return cls.TYPE_ORDINALS[ordinal]
