public class ProcessedHistoryColumn extends AbstractHistoryNode implements HistoryColumn
Modifier and Type | Class and Description |
---|---|
protected class |
ProcessedHistoryColumn.QV |
Modifier and Type | Field and Description |
---|---|
protected ProcessedHistoryColumn.QV |
lockedQV |
protected long |
lockedTime |
type
Constructor and Description |
---|
ProcessedHistoryColumn(java.lang.String name,
boolean isRaw) |
Modifier and Type | Method and Description |
---|---|
protected ProcessedHistoryColumn.QV |
find(long timestamp,
boolean including) |
long |
getNextTimestamp()
Returns the next timestamp.
|
DataQuality |
getQuality()
Gets the quality that corresponds to the last call to getValue
|
java.lang.Object |
getValue(long timestamp,
int level) |
boolean |
hasMore()
Indicates whether the node has more data for the last time used with getValue.
|
void |
markCompleted(long time)
Tells the node that the data up to and including the specified time is no longer needed.
|
void |
process(HistoricalValue value) |
void |
put(java.util.List<QualifiedValue> values) |
protected void |
put(java.lang.Object value,
DataQuality quality,
long blockTime)
Adds the value to the internal linked list and sets the next available time to the timestamp, if not in raw mode
(if raw mode, sets it if it's the the first node)
|
void |
put(QualifiedValue qv) |
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, maxAvailableTime, setDataType, setErrored, setNext, setNextAvailableTime, setPrevious, shiftNodes, swapNodes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDataType, getName, getNext, getPrevious, maxAvailableTime, setNext, setPrevious
protected ProcessedHistoryColumn.QV lockedQV
protected long lockedTime
public ProcessedHistoryColumn(java.lang.String name, boolean isRaw)
public java.lang.Object getValue(long timestamp, int level)
getValue
in interface HistoryNode
public DataQuality getQuality()
HistoryNode
getQuality
in interface HistoryNode
public boolean wasValueInterpolated()
HistoryNode
wasValueInterpolated
in interface HistoryNode
public void markCompleted(long time)
HistoryNode
markCompleted
in interface HistoryNode
markCompleted
in class AbstractHistoryNode
public void put(java.util.List<QualifiedValue> values)
protected void put(java.lang.Object value, DataQuality quality, long blockTime)
public void put(QualifiedValue qv)
public void process(HistoricalValue value)
process
in interface HistoryColumn
protected ProcessedHistoryColumn.QV find(long timestamp, boolean including)
public long getNextTimestamp()
public boolean hasMore()
HistoryNode
hasMore
in interface HistoryNode