Class LegacyHistoryExecutor.PreprocessedHistoryGroup
- java.lang.Object
-
- com.inductiveautomation.gateway.tags.history.query.LegacyHistoryExecutor.PreprocessedHistoryGroup
-
- All Implemented Interfaces:
HistoricalValue
,HistoricalValueGroup<IdentifiedHistoricalValue<java.lang.Integer>>
,IdentifiedHistoricalValue<java.lang.Integer>
,java.lang.Comparable<HistoricalValue>
- Enclosing class:
- LegacyHistoryExecutor
protected static class LegacyHistoryExecutor.PreprocessedHistoryGroup extends java.lang.Object implements HistoricalValueGroup<IdentifiedHistoricalValue<java.lang.Integer>>, IdentifiedHistoricalValue<java.lang.Integer>
We implement our own history group here in hopes of being as efficient as possible. We know that there will only be at most 5 values per group, so we just use an array[5].
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.gateway.sqltags.history.query.HistoricalValue
FLAG_DIRECT_AVG, FLAG_ENTRY, FLAG_EXIT, FLAG_FIRST_VAL, FLAG_MAX, FLAG_MIN
-
-
Constructor Summary
Constructors Constructor Description PreprocessedHistoryGroup()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(IdentifiedHistoricalValue<java.lang.Integer> v)
int
compareTo(HistoricalValue o)
static LegacyHistoryExecutor.PreprocessedHistoryGroup
createFrom(IdentifiedHistoricalValue<java.lang.Integer> value)
IdentifiedHistoricalValue<java.lang.Integer>
get(int ndx)
DataTypeClass
getDataType()
int
getFlags()
Flags are implementation dependent markers for the value.QualityCode
getQuality()
java.lang.Integer
getTagID()
long
getTimestamp()
java.lang.Object
getValue()
int
length()
-
-
-
Method Detail
-
createFrom
public static LegacyHistoryExecutor.PreprocessedHistoryGroup createFrom(IdentifiedHistoricalValue<java.lang.Integer> value)
-
getTagID
public java.lang.Integer getTagID()
- Specified by:
getTagID
in interfaceIdentifiedHistoricalValue<java.lang.Integer>
-
addValue
public void addValue(IdentifiedHistoricalValue<java.lang.Integer> v)
-
getValue
public java.lang.Object getValue()
- Specified by:
getValue
in interfaceHistoricalValue
-
getQuality
public QualityCode getQuality()
- Specified by:
getQuality
in interfaceHistoricalValue
-
getTimestamp
public long getTimestamp()
- Specified by:
getTimestamp
in interfaceHistoricalValue
-
getDataType
public DataTypeClass getDataType()
- Specified by:
getDataType
in interfaceHistoricalValue
-
getFlags
public int getFlags()
Description copied from interface:HistoricalValue
Flags are implementation dependent markers for the value.- Specified by:
getFlags
in interfaceHistoricalValue
-
compareTo
public int compareTo(HistoricalValue o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<HistoricalValue>
-
length
public int length()
- Specified by:
length
in interfaceHistoricalValueGroup<IdentifiedHistoricalValue<java.lang.Integer>>
-
get
public IdentifiedHistoricalValue<java.lang.Integer> get(int ndx)
- Specified by:
get
in interfaceHistoricalValueGroup<IdentifiedHistoricalValue<java.lang.Integer>>
-
-