Enum TSDataType

    • Enum Constant Detail

      • BOOLEAN

        public static final TSDataType BOOLEAN
        BOOLEAN.
      • INT32

        public static final TSDataType INT32
        INT32.
      • INT64

        public static final TSDataType INT64
        INT64.
      • FLOAT

        public static final TSDataType FLOAT
        FLOAT.
      • DOUBLE

        public static final TSDataType DOUBLE
        DOUBLE.
      • VECTOR

        public static final TSDataType VECTOR
        VECTOR.
      • UNKNOWN

        public static final TSDataType UNKNOWN
        UNKNOWN.
    • Method Detail

      • values

        public static TSDataType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TSDataType c : TSDataType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TSDataType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • deserialize

        public static TSDataType deserialize​(byte type)
        give an integer to return a data type.
        Parameters:
        type - -param to judge enum type
        Returns:
        -enum type
      • getType

        public byte getType()
      • getTsDataType

        public static TSDataType getTsDataType​(byte type)
      • getSerializedSize

        public static int getSerializedSize()
      • serializeTo

        public void serializeTo​(ByteBuffer byteBuffer)
      • getDataTypeSize

        public int getDataTypeSize()
      • serialize

        public byte serialize()
        get type byte.
        Returns:
        byte number
      • isNumeric

        public boolean isNumeric()
        numeric datatype judgement.
        Returns:
        whether it is a numeric datatype
        Throws:
        UnSupportedDataTypeException - when meets unSupported DataType
      • isComparable

        public boolean isComparable()
        comparable datatype judgement.
        Returns:
        whether it is a comparable datatype
        Throws:
        UnSupportedDataTypeException - when meets unSupported DataType