Interface HistoricalValue
-
- All Superinterfaces:
java.lang.Comparable<HistoricalValue>
- All Known Subinterfaces:
HistoricalValueGroup<V>
,IdentifiedHistoricalValue<I>
- All Known Implementing Classes:
BasicHistoricalValue
,DatasourceQueryExecutor.PreprocessedHistoryGroup
,LegacyHistoryExecutor.PreprocessedHistoryGroup
,RawTagValue
public interface HistoricalValue extends java.lang.Comparable<HistoricalValue>
The basic value unit for the historical querying system. Implements comparable, which should sort values based on timestamp. Besides that, provides the date already converted to a long, and also provides the data type class of the value.
-
-
Field Summary
Fields Modifier and Type Field Description static int
FLAG_DIRECT_AVG
Note: this is a little unfortunate, how avg works.static int
FLAG_ENTRY
static int
FLAG_EXIT
static int
FLAG_FIRST_VAL
static int
FLAG_MAX
static int
FLAG_MIN
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataTypeClass
getDataType()
int
getFlags()
Flags are implementation dependent markers for the value.QualityCode
getQuality()
long
getTimestamp()
java.lang.Object
getValue()
-
-
-
Field Detail
-
FLAG_DIRECT_AVG
static final int FLAG_DIRECT_AVG
Note: this is a little unfortunate, how avg works. By being originally defined as 0, that means that if we want to make sure it's the "average", we need to make sure the value is exactly 0. This means we can't allow average to be collapsed with entry/exit.This value type can also mean the only value in a window (the "direct" value).
- See Also:
- Constant Field Values
-
FLAG_MIN
static final int FLAG_MIN
- See Also:
- Constant Field Values
-
FLAG_MAX
static final int FLAG_MAX
- See Also:
- Constant Field Values
-
FLAG_EXIT
static final int FLAG_EXIT
- See Also:
- Constant Field Values
-
FLAG_FIRST_VAL
static final int FLAG_FIRST_VAL
- See Also:
- Constant Field Values
-
FLAG_ENTRY
static final int FLAG_ENTRY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getValue
java.lang.Object getValue()
-
getQuality
QualityCode getQuality()
-
getTimestamp
long getTimestamp()
-
getDataType
DataTypeClass getDataType()
-
getFlags
int getFlags()
Flags are implementation dependent markers for the value.
-
-