public boolean matchDevice(final String devicePath) {
    try {
      return patternPartialPath.overlapWith(new MeasurementPath(devicePath, "*"));
    } catch (final IllegalPathException e) {
      return false;
    }
  }
This is the precise form of the device overlap and is used only be device template transfer.
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/datastructure/pattern/IoTDBTreePattern.java