Class DataNodeSchemaCache


  • public class DataNodeSchemaCache
    extends java.lang.Object
    This 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
      void cleanUp()  
      long estimatedSize()  
      ClusterSchemaTree get​(org.apache.iotdb.commons.path.PartialPath devicePath, java.lang.String[] measurements)
      Get SchemaEntity info without auto create schema
      static DataNodeSchemaCache getInstance()  
      org.apache.iotdb.tsfile.read.TimeValuePair getLastCache​(org.apache.iotdb.commons.path.PartialPath seriesPath)  
      void invalidate​(org.apache.iotdb.commons.path.PartialPath partialPath)
      For delete timeseries meatadata cache operation
      void put​(ISchemaTree schemaTree)  
      void resetLastCache​(org.apache.iotdb.commons.path.PartialPath seriesPath)  
      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
      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
      • Methods inherited from class java.lang.Object

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

      • 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 AlignedPath
        measurements -
        Returns:
        timeseries partialPath and its SchemaEntity
      • 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()