Class DataPoint

    • Field Detail

      • type

        protected final TSDataType type
        value type of this DataPoint.
      • measurementId

        protected final String measurementId
        measurementId of this DataPoint.
    • Constructor Detail

      • DataPoint

        protected DataPoint​(TSDataType type,
                            String measurementId)
        constructor of DataPoint.
        Parameters:
        type - value type of this DataPoint
        measurementId - measurementId of this DataPoint
    • Method Detail

      • getDataPoint

        public static DataPoint getDataPoint​(TSDataType dataType,
                                             String measurementId,
                                             String value)
        Construct one data point with data type and value.
        Parameters:
        dataType - data type
        measurementId - measurement id
        value - value in string format
        Returns:
        data point class according to data type
      • writeTo

        public abstract void writeTo​(long time,
                                     ChunkWriterImpl writer)
                              throws IOException
        write this DataPoint by a SeriesWriter.
        Parameters:
        time - timestamp
        writer - writer
        Throws:
        IOException - exception in IO
      • getMeasurementId

        public String getMeasurementId()
      • getValue

        public abstract Object getValue()
      • setInteger

        public void setInteger​(int value)
      • setLong

        public void setLong​(long value)
      • setBoolean

        public void setBoolean​(boolean value)
      • setFloat

        public void setFloat​(float value)
      • setDouble

        public void setDouble​(double value)
      • setString

        public void setString​(Binary value)