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 2020/06/04 06:43:35 UTC

[GitHub] [incubator-iotdb] qiaojialin commented on a change in pull request #1311: [IOTDB-695] Accelerate the count timeseries query

qiaojialin commented on a change in pull request #1311:
URL: https://github.com/apache/incubator-iotdb/pull/1311#discussion_r435018995



##########
File path: server/src/main/java/org/apache/iotdb/db/metadata/MManager.java
##########
@@ -692,6 +692,20 @@ public String getStorageGroupName(String path) throws MetadataException {
     }
   }
 
+  /**
+   * To calculate the count of timeseries for given prefix path.
+   */
+  public int getAllTimeseriesCount(String prefixPath) throws MetadataException {
+    lock.readLock().lock();
+    try {
+      return mtree.getAllTimeseriesCount(prefixPath);
+    } catch (MetadataException e) {
+      throw new MetadataException(e);

Review comment:
       no need




----------------------------------------------------------------
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.

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