protected static class DatasourceQueryExecutor.PreprocessedHistoryGroup extends java.lang.Object implements HistoricalValueGroup<IdentifiedHistoricalValue<java.lang.Integer>>, IdentifiedHistoricalValue<java.lang.Integer>
Modifier and Type | Field and Description |
---|---|
protected static int |
AVG |
protected static int |
ENTRY |
protected static int |
EXIT |
protected static int |
MAX |
protected static int |
MIN |
FLAG_DIRECT_AVG, FLAG_ENTRY, FLAG_EXIT, FLAG_FIRST_VAL, FLAG_MAX, FLAG_MIN
Constructor and Description |
---|
PreprocessedHistoryGroup(long blockSizeMS,
long blockStart) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(IdentifiedHistoricalValue<java.lang.Integer> v) |
protected IdentifiedHistoricalValue<java.lang.Integer> |
changeTimestamp(IdentifiedHistoricalValue<java.lang.Integer> v,
long timestamp) |
int |
compareTo(HistoricalValue o) |
IdentifiedHistoricalValue<java.lang.Integer> |
get(int ndx) |
IdentifiedHistoricalValue<java.lang.Integer> |
getAvg() |
long |
getBlockEnd() |
long |
getBlockSizeMS() |
long |
getBlockStart() |
DataTypeClass |
getDataType() |
int |
getFlags()
Flags are implementation dependent markers for the value.
|
DataQuality |
getQuality() |
java.lang.Integer |
getTagID() |
long |
getTimestamp() |
java.lang.Object |
getValue() |
IdentifiedHistoricalValue<java.lang.Integer>[] |
getValuesToProcess()
This transforms the processed values we've received into something we can pass to the columns.
|
protected boolean |
hasAvg() |
int |
length()
These two functions are here for historical reasons.
|
java.lang.String |
toString() |
protected static final int ENTRY
protected static final int EXIT
protected static final int AVG
protected static final int MIN
protected static final int MAX
public PreprocessedHistoryGroup(long blockSizeMS, long blockStart)
public long getBlockSizeMS()
public long getBlockStart()
public long getBlockEnd()
public java.lang.Integer getTagID()
getTagID
in interface IdentifiedHistoricalValue<java.lang.Integer>
protected IdentifiedHistoricalValue<java.lang.Integer> changeTimestamp(IdentifiedHistoricalValue<java.lang.Integer> v, long timestamp)
public void addValue(IdentifiedHistoricalValue<java.lang.Integer> v)
public IdentifiedHistoricalValue<java.lang.Integer>[] getValuesToProcess()
protected boolean hasAvg()
public IdentifiedHistoricalValue<java.lang.Integer> getAvg()
public java.lang.Object getValue()
getValue
in interface HistoricalValue
public DataQuality getQuality()
getQuality
in interface HistoricalValue
public long getTimestamp()
getTimestamp
in interface HistoricalValue
public DataTypeClass getDataType()
getDataType
in interface HistoricalValue
public int getFlags()
HistoricalValue
getFlags
in interface HistoricalValue
public int compareTo(HistoricalValue o)
compareTo
in interface java.lang.Comparable<HistoricalValue>
public int length()
length
in interface HistoricalValueGroup<IdentifiedHistoricalValue<java.lang.Integer>>
public IdentifiedHistoricalValue<java.lang.Integer> get(int ndx)
get
in interface HistoricalValueGroup<IdentifiedHistoricalValue<java.lang.Integer>>
public java.lang.String toString()
toString
in class java.lang.Object