Package org.kairosdb.client.builder
Class DataPoint
- java.lang.Object
-
- org.kairosdb.client.builder.DataPoint
-
public class DataPoint extends Object
A measurement. Contains the time when the measurement occurred and its value.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubledoubleValue()booleanequals(Object o)longgetTimestamp()Time when the data point was measured.ObjectgetValue()inthashCode()booleanisDoubleValue()booleanisIntegerValue()longlongValue()StringstringValue()StringtoString()
-
-
-
Constructor Detail
-
DataPoint
public DataPoint(long timestamp, Object value)
-
-
Method Detail
-
getTimestamp
public long getTimestamp()
Time when the data point was measured.- Returns:
- time when the data point was measured
-
getValue
public Object getValue()
-
stringValue
public String stringValue() throws DataFormatException
- Throws:
DataFormatException
-
longValue
public long longValue() throws DataFormatException- Throws:
DataFormatException
-
doubleValue
public double doubleValue() throws DataFormatException- Throws:
DataFormatException
-
isDoubleValue
public boolean isDoubleValue()
-
isIntegerValue
public boolean isIntegerValue()
-
-