Class LastCacheContainer

  • All Implemented Interfaces:
    ILastCacheContainer

    public class LastCacheContainer
    extends java.lang.Object
    implements ILastCacheContainer
    This class possesses the ILastCacheValue and implements the basic last cache operations.

    The ILastCacheValue may be extended to ILastCacheValue List in future to support batched last value cache.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.iotdb.tsfile.read.TimeValuePair getCachedLast()  
      boolean isEmpty()  
      void resetLastCache()  
      void updateCachedLast​(org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair, boolean highPriorityUpdate, java.lang.Long latestFlushedTime)
      update last point cache
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LastCacheContainer

        public LastCacheContainer()
    • Method Detail

      • updateCachedLast

        public void updateCachedLast​(org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair,
                                     boolean highPriorityUpdate,
                                     java.lang.Long latestFlushedTime)
        Description copied from interface: ILastCacheContainer
        update last point cache
        Specified by:
        updateCachedLast in interface ILastCacheContainer
        Parameters:
        timeValuePair - last point
        highPriorityUpdate - whether it's a high priority update
        latestFlushedTime - latest flushed time