Class DelegatingHistoryNode
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.sqltags.history.query.DelegatingHistoryNode
-
- All Implemented Interfaces:
HistoryNode
public class DelegatingHistoryNode extends java.lang.Object implements HistoryNode
Created by colby.clegg on 8/13/2015.
-
-
Constructor Summary
Constructors Constructor Description DelegatingHistoryNode(HistoryNode delegate)
DelegatingHistoryNode(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataTypeClass
getDataType()
HistoryNode
getDelegate()
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
setDelegate(HistoryNode delegate)
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.
-
-
-
Constructor Detail
-
DelegatingHistoryNode
public DelegatingHistoryNode(java.lang.String name)
-
DelegatingHistoryNode
public DelegatingHistoryNode(HistoryNode delegate)
-
-
Method Detail
-
setDelegate
public void setDelegate(HistoryNode delegate)
-
getDelegate
public HistoryNode getDelegate()
-
getDataType
public DataTypeClass getDataType()
- Specified by:
getDataType
in interfaceHistoryNode
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceHistoryNode
-
getValue
public java.lang.Object getValue(long blockId, int level)
- Specified by:
getValue
in interfaceHistoryNode
-
getQuality
public QualityCode getQuality()
Description copied from interface:HistoryNode
Gets the quality that corresponds to the last call to getValue- Specified by:
getQuality
in interfaceHistoryNode
-
hasMore
public boolean hasMore()
Description copied from interface:HistoryNode
Indicates whether the node has more data for the last time used with getValue.- Specified by:
hasMore
in interfaceHistoryNode
-
wasValueInterpolated
public boolean wasValueInterpolated()
Description copied from interface:HistoryNode
Returns whether the the last value provided by getValue was purely interpolated- not based on any actual data.- Specified by:
wasValueInterpolated
in interfaceHistoryNode
-
maxAvailableTime
public long maxAvailableTime()
Description copied from interface:HistoryNode
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".- Specified by:
maxAvailableTime
in interfaceHistoryNode
-
markCompleted
public void markCompleted(long time)
Description copied from interface:HistoryNode
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.- Specified by:
markCompleted
in interfaceHistoryNode
-
getNext
public HistoryNode getNext()
- Specified by:
getNext
in interfaceHistoryNode
-
setNext
public void setNext(HistoryNode node)
- Specified by:
setNext
in interfaceHistoryNode
-
getPrevious
public HistoryNode getPrevious()
- Specified by:
getPrevious
in interfaceHistoryNode
-
setPrevious
public void setPrevious(HistoryNode node)
- Specified by:
setPrevious
in interfaceHistoryNode
-
-