Class IDTableManager
- java.lang.Object
-
- org.apache.iotdb.db.metadata.idtable.IDTableManager
-
public class IDTableManager extends java.lang.ObjectThis 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 voidclear()clear id table mapIDTablegetIDTable(org.apache.iotdb.commons.path.PartialPath devicePath)get id table by device pathIDTablegetIDTableDirectly(java.lang.String sgPath)get id table by storage group pathstatic IDTableManagergetInstance()get instanceorg.apache.iotdb.tsfile.write.schema.IMeasurementSchemagetSeriesSchema(java.lang.String deviceName, java.lang.String measurementName)get schema from device and measurements
-
-
-
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.MetadataExceptionget schema from device and measurements- Parameters:
deviceName- device name of the time seriesmeasurementName- 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.IOExceptionclear id table map- Throws:
java.io.IOException
-
-