Class LastCacheContainer
- java.lang.Object
-
- org.apache.iotdb.db.metadata.lastCache.container.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.
-
-
Constructor Summary
Constructors Constructor Description LastCacheContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.iotdb.tsfile.read.TimeValuePairgetCachedLast()booleanisEmpty()voidresetLastCache()voidupdateCachedLast(org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair, boolean highPriorityUpdate, java.lang.Long latestFlushedTime)update last point cache
-
-
-
Method Detail
-
getCachedLast
public org.apache.iotdb.tsfile.read.TimeValuePair getCachedLast()
- Specified by:
getCachedLastin interfaceILastCacheContainer
-
updateCachedLast
public void updateCachedLast(org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair, boolean highPriorityUpdate, java.lang.Long latestFlushedTime)Description copied from interface:ILastCacheContainerupdate last point cache- Specified by:
updateCachedLastin interfaceILastCacheContainer- Parameters:
timeValuePair- last pointhighPriorityUpdate- whether it's a high priority updatelatestFlushedTime- latest flushed time
-
resetLastCache
public void resetLastCache()
- Specified by:
resetLastCachein interfaceILastCacheContainer
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceILastCacheContainer
-
-