Class DataNodeSchemaCache
- java.lang.Object
-
- org.apache.iotdb.db.metadata.cache.DataNodeSchemaCache
-
public class DataNodeSchemaCache extends java.lang.ObjectThis class takes the responsibility of metadata cache management of all DataRegions under StorageEngine
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp()longestimatedSize()ClusterSchemaTreeget(org.apache.iotdb.commons.path.PartialPath devicePath, java.lang.String[] measurements)Get SchemaEntity info without auto create schemastatic DataNodeSchemaCachegetInstance()org.apache.iotdb.tsfile.read.TimeValuePairgetLastCache(org.apache.iotdb.commons.path.PartialPath seriesPath)voidinvalidate(org.apache.iotdb.commons.path.PartialPath partialPath)For delete timeseries meatadata cache operationvoidput(ISchemaTree schemaTree)voidresetLastCache(org.apache.iotdb.commons.path.PartialPath seriesPath)voidupdateLastCache(org.apache.iotdb.commons.path.PartialPath seriesPath, org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair, boolean highPriorityUpdate, java.lang.Long latestFlushedTime)get SchemaCacheEntry and update last cachevoidupdateLastCache(MeasurementPath measurementPath, org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair, boolean highPriorityUpdate, java.lang.Long latestFlushedTime)get or create SchemaCacheEntry and update last cache, only support non-aligned sensor or aligned sensor without only one sub sensor
-
-
-
Method Detail
-
getInstance
public static DataNodeSchemaCache getInstance()
-
get
public ClusterSchemaTree get(org.apache.iotdb.commons.path.PartialPath devicePath, java.lang.String[] measurements)
Get SchemaEntity info without auto create schema- Parameters:
devicePath- should not be measurementPath or AlignedPathmeasurements-- Returns:
- timeseries partialPath and its SchemaEntity
-
put
public void put(ISchemaTree schemaTree)
-
getLastCache
public org.apache.iotdb.tsfile.read.TimeValuePair getLastCache(org.apache.iotdb.commons.path.PartialPath seriesPath)
-
updateLastCache
public void updateLastCache(org.apache.iotdb.commons.path.PartialPath seriesPath, org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair, boolean highPriorityUpdate, java.lang.Long latestFlushedTime)get SchemaCacheEntry and update last cache
-
updateLastCache
public void updateLastCache(MeasurementPath measurementPath, org.apache.iotdb.tsfile.read.TimeValuePair timeValuePair, boolean highPriorityUpdate, java.lang.Long latestFlushedTime)
get or create SchemaCacheEntry and update last cache, only support non-aligned sensor or aligned sensor without only one sub sensor
-
resetLastCache
public void resetLastCache(org.apache.iotdb.commons.path.PartialPath seriesPath)
-
invalidate
public void invalidate(org.apache.iotdb.commons.path.PartialPath partialPath)
For delete timeseries meatadata cache operation- Parameters:
partialPath-
-
estimatedSize
public long estimatedSize()
-
cleanUp
public void cleanUp()
-
-