Class DoubleDataPoint


  • public class DoubleDataPoint
    extends DataPoint
    a subclass for Double data type extends DataPoint.
    See Also:
    DataPoint
    • Constructor Detail

      • DoubleDataPoint

        public DoubleDataPoint​(java.lang.String measurementId,
                               double v)
        constructor of DoubleDataPoint, the value type will be set automatically.
    • Method Detail

      • writeTo

        public void writeTo​(long time,
                            ChunkWriterImpl writer)
        Description copied from class: DataPoint
        write this DataPoint by a SeriesWriter.
        Specified by:
        writeTo in class DataPoint
        Parameters:
        time - timestamp
        writer - writer
      • getValue

        public java.lang.Object getValue()
        Specified by:
        getValue in class DataPoint
      • setDouble

        public void setDouble​(double value)
        Overrides:
        setDouble in class DataPoint