public class HistoryColumn extends AbstractHistoryNode implements DSHistoryColumn
type
Modifier | Constructor and Description |
---|---|
protected |
HistoryColumn(java.lang.String name,
DataTypeClass type)
Protected because it should only be called by value-generating subclasses (like timestamp).
|
protected |
HistoryColumn(java.lang.String name,
DataTypeClass type,
LoggerEx queryLogger) |
|
HistoryColumn(java.lang.String name,
LoggerEx queryLogger) |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustDataBlocksTo(long blockId) |
protected boolean |
canInterpolate() |
protected DataWindow |
createAggregationWindow(long blockId,
long windowSize) |
DataTypeClass |
getDataType()
Returns the type class of the column, or INTEGER if type has not been set.
|
protected InterpolationMode |
getInterpolationModeAt(long time)
Returns the registered interpolation mode at the given time, or Discreet if canInterpolate() returns false.
|
DataQuality |
getQuality()
Gets the quality that corresponds to the last call to getValue
|
protected SCExecRecord |
getScanClassRecordAt(long time) |
java.lang.Object |
getValue(long blockId,
int level)
Gets the value at the given time.
|
boolean |
hasMore()
Indicates there are more values to return that can be retrieved through subsequent calls to getValue.
|
protected boolean |
isSeedValue(long time) |
void |
setAggregationMode(Aggregate mode) |
void |
setDataType(DataTypeClass value) |
void |
setErrored(DataQuality code) |
void |
setInterpolationModeTimeline(TimelineList<InterpolationMode> value) |
void |
setQueryController(QueryController controller) |
void |
setScanClassExecutionMap(SCExecMap map) |
void |
setScanClassIdTimeline(TimelineList<java.lang.Integer> value) |
void |
updateValue(HistoricalValue value) |
boolean |
wasValueInterpolated()
Returns whether the the last value provided by getValue was purely interpolated- not based on any actual data.
|
getErrorCode, getName, getNext, getPrevious, isErrored, markCompleted, maxAvailableTime, setNext, setNextAvailableTime, setPrevious, shiftNodes, swapNodes
public HistoryColumn(java.lang.String name, LoggerEx queryLogger)
protected HistoryColumn(java.lang.String name, DataTypeClass type, LoggerEx queryLogger)
protected HistoryColumn(java.lang.String name, DataTypeClass type)
name
- type
- public void setQueryController(QueryController controller)
public void setInterpolationModeTimeline(TimelineList<InterpolationMode> value)
setInterpolationModeTimeline
in interface DSHistoryColumn
public void setScanClassIdTimeline(TimelineList<java.lang.Integer> value)
setScanClassIdTimeline
in interface DSHistoryColumn
public void setScanClassExecutionMap(SCExecMap map)
setScanClassExecutionMap
in interface DSHistoryColumn
public DataTypeClass getDataType()
getDataType
in interface DSHistoryColumn
getDataType
in interface HistoryNode
getDataType
in class AbstractHistoryNode
public void setDataType(DataTypeClass value)
setDataType
in interface DSHistoryColumn
setDataType
in class AbstractHistoryNode
protected boolean isSeedValue(long time)
protected boolean canInterpolate()
public void setErrored(DataQuality code)
setErrored
in class AbstractHistoryNode
public void setAggregationMode(Aggregate mode)
protected InterpolationMode getInterpolationModeAt(long time)
time
- protected SCExecRecord getScanClassRecordAt(long time)
protected DataWindow createAggregationWindow(long blockId, long windowSize)
public void updateValue(HistoricalValue value)
updateValue
in interface DSHistoryColumn
protected void adjustDataBlocksTo(long blockId)
public boolean wasValueInterpolated()
HistoryNode
wasValueInterpolated
in interface HistoryNode
public java.lang.Object getValue(long blockId, int level)
getValue
in interface HistoryNode
blockId
- level
- the level of value to get. Usually 0 for the first value, but should be incremented each time
hasMore is true.public DataQuality getQuality()
HistoryNode
getQuality
in interface HistoryNode
public boolean hasMore()
hasMore
in interface HistoryNode