Class DelegatingHistoryNode

  • All Implemented Interfaces:
    HistoryNode

    public class DelegatingHistoryNode
    extends java.lang.Object
    implements HistoryNode
    Created by colby.clegg on 8/13/2015.
    • Constructor Detail

      • DelegatingHistoryNode

        public DelegatingHistoryNode​(java.lang.String name)
      • DelegatingHistoryNode

        public DelegatingHistoryNode​(HistoryNode delegate)
    • Method Detail

      • setDelegate

        public void setDelegate​(HistoryNode delegate)
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface HistoryNode
      • getValue

        public java.lang.Object getValue​(long blockId,
                                         int level)
        Specified by:
        getValue in interface HistoryNode
      • 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 interface HistoryNode
      • 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 interface HistoryNode
      • 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 interface HistoryNode
      • 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 interface HistoryNode