public static List<Object[]> truncateTailingNull(final List<Object[]> deviceIdList) {
    return deviceIdList.stream()
        .map(DeviceIDFactory::truncateTailingNull)
        .collect(Collectors.toList());
  }
get device id by full path

@param devicePath device path of the timeseries
@return device id of the timeseries
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/memtable/DeviceIDFactory.java