You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/06/13 08:48:41 UTC

[GitHub] [iotdb] MarcosZyk commented on a diff in pull request #6247: [IOTDB-3331] Fix create three level timeseries.

MarcosZyk commented on code in PR #6247:
URL: https://github.com/apache/iotdb/pull/6247#discussion_r895475941


##########
node-commons/src/main/java/org/apache/iotdb/commons/utils/PathUtils.java:
##########
@@ -126,6 +126,10 @@ public static void isLegalMeasurements(List<String> measurements) throws Illegal
     }
   }
 
+  public static boolean match(String deviceName, String storageGroup) {
+    return deviceName.equals(storageGroup) || deviceName.startsWith(storageGroup + ".");
+  }

Review Comment:
   Maybe we can rename this method to ```isStartWith```.



-- 
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: reviews-unsubscribe@iotdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org