Class TimeseriesSchema

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TimeseriesSchema>

    public class TimeseriesSchema
    extends java.lang.Object
    implements java.lang.Comparable<TimeseriesSchema>, java.io.Serializable
    TimeseriesSchema is like MeasurementSchema, but instead of measurementId, it stores the full path.
    See Also:
    Serialized Form
    • Constructor Detail

      • TimeseriesSchema

        public TimeseriesSchema()
      • TimeseriesSchema

        public TimeseriesSchema​(java.lang.String fullPath,
                                TSDataType tsDataType)
      • TimeseriesSchema

        public TimeseriesSchema​(java.lang.String fullPath,
                                TSDataType type,
                                TSEncoding encoding)
        set properties as an empty Map.
      • TimeseriesSchema

        public TimeseriesSchema​(java.lang.String fullPath,
                                TSDataType type,
                                TSEncoding encoding,
                                CompressionType compressionType,
                                java.util.Map<java.lang.String,​java.lang.String> props)
        Constructor of TimeseriesSchema.

        props - information in encoding method. For RLE, Encoder.MAX_POINT_NUMBER For PLAIN, Encoder.maxStringLength

    • Method Detail

      • deserializeFrom

        public static TimeseriesSchema deserializeFrom​(java.nio.ByteBuffer buffer)
        function for deserializing data from byte buffer.
      • getFullPath

        public java.lang.String getFullPath()
      • setFullPath

        public void setFullPath​(java.lang.String fullPath)
      • getProps

        public java.util.Map<java.lang.String,​java.lang.String> getProps()
      • getEncodingType

        public TSEncoding getEncodingType()
      • setProps

        public void setProps​(java.util.Map<java.lang.String,​java.lang.String> props)
      • getTimeEncoder

        public Encoder getTimeEncoder()
        function for getting time encoder.
      • getValueEncoder

        public Encoder getValueEncoder()
        get Encoder of value from encodingConverter by measurementID and data type.
        Returns:
        Encoder for value
      • serializeTo

        public int serializeTo​(java.io.OutputStream outputStream)
                        throws java.io.IOException
        function for serializing data to output stream.
        Throws:
        java.io.IOException
      • serializeTo

        public int serializeTo​(java.nio.ByteBuffer buffer)
        function for serializing data to byte buffer.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object