Interface HistoryNode
-
- All Known Subinterfaces:
HistoryColumn
- All Known Implementing Classes:
AbstractHistoryNode
,DefaultHistoryColumn
,DelegatingHistoryNode
,DSRawHistoryColumn
,ErrorHistoryColumn
,HistoryColumn
,ProcessedHistoryColumn
public interface HistoryNode
A node in a special time based linked list where prev.nextAvailableTime<=this.nextAvailableTime<=next.nextAvailableTime()
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataTypeClass
getDataType()
java.lang.String
getName()
HistoryNode
getNext()
HistoryNode
getPrevious()
QualityCode
getQuality()
Gets the quality that corresponds to the last call to getValuejava.lang.Object
getValue(long blockId, 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.long
maxAvailableTime()
Returns the MAX time that this column has values for.void
setNext(HistoryNode node)
void
setPrevious(HistoryNode node)
boolean
wasValueInterpolated()
Returns whether the the last value provided by getValue was purely interpolated- not based on any actual data.
-
-
-
Method Detail
-
getDataType
DataTypeClass getDataType()
-
getName
java.lang.String getName()
-
getValue
java.lang.Object getValue(long blockId, int level)
-
getQuality
QualityCode getQuality()
Gets the quality that corresponds to the last call to getValue
-
hasMore
boolean hasMore()
Indicates whether the node has more data for the last time used with getValue.
-
wasValueInterpolated
boolean wasValueInterpolated()
Returns whether the the last value provided by getValue was purely interpolated- not based on any actual data.
-
maxAvailableTime
long maxAvailableTime()
Returns the MAX time that this column has values for. NOTE: the max time can be well in the future (compared to the last value time). In fact, columns that don't interpolate data could return long.maxvalue. This time simply means "if you call getValue with a time less than this time, I can give you a value".
-
markCompleted
void markCompleted(long time)
Tells the node that the data up to and including the specified time is no longer needed. The node should potentially update its maxAvailableTime and sort itself in the list.
-
getNext
HistoryNode getNext()
-
setNext
void setNext(HistoryNode node)
-
getPrevious
HistoryNode getPrevious()
-
setPrevious
void setPrevious(HistoryNode node)
-
-