nizhikov commented on a change in pull request #6982: IGNITE-12295: Index 
partition purge for file-based rebalancing
URL: https://github.com/apache/ignite/pull/6982#discussion_r337059220
 
 

 ##########
 File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/tree/BPlusTree.java
 ##########
 @@ -1826,6 +1827,23 @@ public final boolean removex(L row) throws 
IgniteCheckedException {
         return res != null ? res : false;
     }
 
+    /**
+     * Returns a cursor that removes rows when being iterated.
+     * Uses a specified closure as a predicate to filter rows.
+     *
+     * @param clo TreeRowClosure Closure to filter rows.
+     * @throws IgniteCheckedException If failed.
+     */
+    public GridCursor<Void> purge(TreeRowClosure<L, T> clo) throws 
IgniteCheckedException {
 
 Review comment:
   I don't get why we should share "cursor that removes rows when being 
iterated"?
   Can we implement regular `Iterator` with support of `remove` operation?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to