Class TsPrimitiveType

    • Constructor Detail

      • TsPrimitiveType

        public TsPrimitiveType()
    • Method Detail

      • getByType

        public static TsPrimitiveType getByType​(TSDataType dataType)
        get tsPrimitiveType by resultDataType.
        Parameters:
        dataType - given TsDataType
      • getByType

        public static TsPrimitiveType getByType​(TSDataType dataType,
                                                Object v)
        get tsPrimitiveType by resultDataType and initial value.
        Parameters:
        dataType - given TsDataType
        v - initial value
      • getBoolean

        public boolean getBoolean()
      • getInt

        public int getInt()
      • getLong

        public long getLong()
      • getFloat

        public float getFloat()
      • getDouble

        public double getDouble()
      • getBinary

        public Binary getBinary()
      • setBoolean

        public void setBoolean​(boolean val)
      • setInt

        public void setInt​(int val)
      • setLong

        public void setLong​(long val)
      • setFloat

        public void setFloat​(float val)
      • setDouble

        public void setDouble​(double val)
      • setBinary

        public void setBinary​(Binary val)
      • setObject

        public abstract void setObject​(Object val)
      • reset

        public abstract void reset()
      • getSize

        public abstract int getSize()
        get the size of one instance of current class.
        Returns:
        size of one instance of current class
      • getValue

        public abstract Object getValue()
      • getStringValue

        public abstract String getStringValue()
      • getDataType

        public abstract TSDataType getDataType()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object