Class DeviceIDFactory
- java.lang.Object
-
- org.apache.iotdb.db.metadata.idtable.entry.DeviceIDFactory
-
public class DeviceIDFactory extends java.lang.Objectfactory to build device id according to configured algorithm
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IDeviceIDgetDeviceID(java.lang.String devicePath)get device id by full pathIDeviceIDgetDeviceID(org.apache.iotdb.commons.path.PartialPath devicePath)get device id by full pathstatic DeviceIDFactorygetInstance()get instancevoidreset()reset id method
-
-
-
Method Detail
-
getInstance
public static DeviceIDFactory getInstance()
get instance- Returns:
- instance of the factory
-
getDeviceID
public IDeviceID getDeviceID(org.apache.iotdb.commons.path.PartialPath devicePath)
get device id by full path- Parameters:
devicePath- device path of the timeseries- Returns:
- device id of the timeseries
-
getDeviceID
public IDeviceID getDeviceID(java.lang.String devicePath)
get device id by full path- Parameters:
devicePath- device path of the timeseries- Returns:
- device id of the timeseries
-
reset
public void reset()
reset id method
-
-