public class DefaultHistoryColumn extends AbstractHistoryNode implements HistoryColumn
type
Constructor and Description |
---|
DefaultHistoryColumn(java.lang.String name,
QueryController controller) |
Modifier and Type | Method and Description |
---|---|
protected void |
finishAggregationWindow()
Locks in values from previous aggregation window, updates currentBlock value
|
DataQuality |
getQuality()
Gets the quality that corresponds to the last call to getValue
|
java.lang.Object |
getValue(long blockId,
int level) |
boolean |
hasMore()
Indicates whether the node has more data for the last time used with getValue.
|
protected void |
logAggValue(long ts,
ProcessedValue v) |
void |
process(HistoricalValue value)
This receives a new raw value from the data source and processes it.
|
void |
setAggregationFunction(AggregationFunction func) |
protected void |
setController(QueryController controller) |
void |
setInterpolator(Interpolator value) |
protected boolean |
valueIsProvisional(ProcessedValue value) |
boolean |
wasValueInterpolated()
Returns whether the the last value provided by getValue was purely interpolated- not based on any actual data.
|
getDataType, getErrorCode, getName, getNext, getPrevious, isErrored, markCompleted, maxAvailableTime, setDataType, setErrored, setNext, setNextAvailableTime, setPrevious, shiftNodes, swapNodes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataType, getName, getNext, getPrevious, markCompleted, maxAvailableTime, setNext, setPrevious
public DefaultHistoryColumn(java.lang.String name, QueryController controller)
public void setAggregationFunction(AggregationFunction func)
public void setInterpolator(Interpolator value)
protected void setController(QueryController controller)
protected void logAggValue(long ts, ProcessedValue v)
protected boolean valueIsProvisional(ProcessedValue value)
public void process(HistoricalValue value)
process
in interface HistoryColumn
protected void finishAggregationWindow()
public java.lang.Object getValue(long blockId, int level)
getValue
in interface HistoryNode
public DataQuality getQuality()
HistoryNode
getQuality
in interface HistoryNode
public boolean hasMore()
HistoryNode
hasMore
in interface HistoryNode
public boolean wasValueInterpolated()
HistoryNode
wasValueInterpolated
in interface HistoryNode