mreutegg commented on code in PR #2625:
URL: https://github.com/apache/jackrabbit-oak/pull/2625#discussion_r2569473712


##########
oak-jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitNode.java:
##########
@@ -103,4 +103,13 @@ void setMixins(String[] mixinNames)
             return null;
         }
     }
+
+    /**
+     * Returns the <em>estimated</em> number of child nodes (can be incorrect)
+     * @return number of nodes or {@code -1} when unknown (or not supported by 
the implementation)
+     * @throws RepositoryException
+     */
+    default long getEstimatedChildNodeCount() throws RepositoryException {

Review Comment:
   The method name is misleading. The node counter feature returns the number 
of descendant nodes and not only the number of (direct) child nodes.



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

Reply via email to