Class DataNodeLastCacheManager
- java.lang.Object
-
- org.apache.iotdb.db.metadata.cache.DataNodeLastCacheManager
-
public class DataNodeLastCacheManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DataNodeLastCacheManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.iotdb.tsfile.read.TimeValuePairgetLastCache(SchemaCacheEntry entry)get the last cache value from time seriesstatic voidresetLastCache(SchemaCacheEntry entry)reset the last cache value of time seriesstatic voidupdateLastCache(SchemaCacheEntry entry, org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair, boolean highPriorityUpdate, java.lang.Long latestFlushedTime)update the last cache value of time series
-
-
-
Method Detail
-
getLastCache
public static org.apache.iotdb.tsfile.read.TimeValuePair getLastCache(SchemaCacheEntry entry)
get the last cache value from time series- Parameters:
entry- schema cache entry in DataNodeSchemaCache- Returns:
- the last cache value
-
updateLastCache
public static void updateLastCache(SchemaCacheEntry entry, org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair, boolean highPriorityUpdate, java.lang.Long latestFlushedTime)
update the last cache value of time series- Parameters:
entry- schema cache entry in DataNodeSchemaCachetimeValuePair- the latest point valuehighPriorityUpdate- the last value from insertPlan is high prioritylatestFlushedTime- latest flushed time
-
resetLastCache
public static void resetLastCache(SchemaCacheEntry entry)
reset the last cache value of time series- Parameters:
entry- schema cache entry in DataNodeSchemaCache
-
-