AI-generated Key Takeaways
-
A LocalDataPoint represents a single data point in a LocalDataType's stream, holding a value for each field and a time interval.
-
Data points can represent instantaneous readings or aggregates over time, depending on the data type documentation.
-
LocalDataPoints always contain one value for each LocalField of the data type.
-
Public methods include retrieving the data type, start and end times, and the value for a specific field.
Represents a single data point in a LocalDataType
's
stream. A data point holds a value for each field and a time interval. The exact semantics of
each of these attributes is specified in the documentation for the particular data type,
which can be found in the appropriate constant in LocalDataType
.
A data point can represent a instantaneous reading as well as aggregates over a time interval. Check the data type documentation to determine which is the case for a particular data type.
LocalDataPoint
s always contain one value for each data type LocalField
.
Public Method Summary
| boolean | |
| LocalDataType | |
| long | getEndTime
( TimeUnit
timeUnit)
Returns the end time of the interval represented by this data point, in the
given unit since epoch.
|
| long | getStartTime
( TimeUnit
timeUnit)
Returns the start time of the interval represented by this data point, in the
given unit since epoch.
|
| LocalValue | |
| int | hashCode
()
|
| String | toString
()
|
Inherited Method Summary
Public Methods
public boolean equals ( Object other)
public LocalDataType getDataType ()
Returns the data type defining the format of the values in this data point.
public long getEndTime ( TimeUnit timeUnit)
Returns the end time of the interval represented by this data point, in the given unit since epoch.
public long getStartTime ( TimeUnit timeUnit)
Returns the start time of the interval represented by this data point, in the given unit since epoch.
public LocalValue getValue ( LocalField field)
Returns the value holder for the field with the given name. This method can be used both to query the value and to set it.
Parameters
Returns
- The value associated with the given field.

