cigarl commented on a change in pull request #4537:
URL: https://github.com/apache/iotdb/pull/4537#discussion_r769390128
##########
File path: server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
##########
@@ -1021,6 +1021,18 @@ public PartialPath getBelongedStorageGroup(PartialPath
path) throws StorageGroup
return mtree.getDevices(pathPattern, false);
}
+ /**
+ * Get all device paths matching the path pattern by prefix.
+ *
+ * @param pathPattern the pattern of the target devices.
+ * @param isPrefixMatch whether to use prefix matching
+ * @return A HashSet instance which stores devices paths matching the given
path pattern.
+ */
+ public Set<PartialPath> getMatchedDevicesByPrex(PartialPath pathPattern,
boolean isPrefixMatch)
+ throws MetadataException {
+ return mtree.getDevices(pathPattern, isPrefixMatch);
+ }
Review comment:
ok~
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]