Class IDTableManager


  • public class IDTableManager
    extends java.lang.Object
    This class manages one id table for each logical storage group
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      clear id table map
      IDTable getIDTable​(org.apache.iotdb.commons.path.PartialPath devicePath)
      get id table by device path
      IDTable getIDTableDirectly​(java.lang.String sgPath)
      get id table by storage group path
      static IDTableManager getInstance()
      get instance
      org.apache.iotdb.tsfile.write.schema.IMeasurementSchema getSeriesSchema​(java.lang.String deviceName, java.lang.String measurementName)
      get schema from device and measurements
      • Methods inherited from class java.lang.Object

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

      • getInstance

        public static IDTableManager getInstance()
        get instance
        Returns:
        instance of the factory
      • getIDTable

        public IDTable getIDTable​(org.apache.iotdb.commons.path.PartialPath devicePath)
        get id table by device path
        Parameters:
        devicePath - device path
        Returns:
        id table belongs to path's storage group
      • getIDTableDirectly

        public IDTable getIDTableDirectly​(java.lang.String sgPath)
        get id table by storage group path
        Parameters:
        sgPath - storage group path
        Returns:
        id table belongs to path's storage group
      • getSeriesSchema

        public org.apache.iotdb.tsfile.write.schema.IMeasurementSchema getSeriesSchema​(java.lang.String deviceName,
                                                                                       java.lang.String measurementName)
                                                                                throws org.apache.iotdb.commons.exception.MetadataException
        get schema from device and measurements
        Parameters:
        deviceName - device name of the time series
        measurementName - measurement name of the time series
        Returns:
        schema entry of the time series
        Throws:
        org.apache.iotdb.commons.exception.MetadataException
      • clear

        public void clear()
                   throws java.io.IOException
        clear id table map
        Throws:
        java.io.IOException