Class DeviceIDFactory


  • public class DeviceIDFactory
    extends java.lang.Object
    factory to build device id according to configured algorithm
    • 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