net.opentsdb.core
public interface DataPoint
Implementations of this interface aren't expected to be synchronized.
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
Returns the value of the this data point as a
double . |
boolean |
isInteger()
Tells whether or not the this data point is a value of integer type.
|
long |
longValue()
Returns the value of the this data point as a
long . |
long |
timestamp()
Returns the timestamp (in milliseconds) associated with this data point.
|
double |
toDouble()
Returns the value of the this data point as a
double , even if
it's a long . |
long timestamp()
boolean isInteger()
true
if the i
th value is of integer type,
false
if it's of doubleing point type.long longValue()
long
.ClassCastException
- if the isInteger() == false
.double doubleValue()
double
.ClassCastException
- if the isInteger() == true
.double toDouble()
double
, even if
it's a long
.isInteger() == false
, this method returns the same
thing as doubleValue()
. Otherwise, it returns the same thing as
longValue()
's return value casted to a double
.