Vladsz83 commented on code in PR #10153:
URL: https://github.com/apache/ignite/pull/10153#discussion_r1009518493


##########
modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/InlineIndexImpl.java:
##########
@@ -639,5 +658,48 @@ private static class SegmentedIndexCursor implements 
GridCursor<IndexRow> {
         @Override public IndexRow get() throws IgniteCheckedException {
             return head;
         }
+
+        /** */
+        protected Queue<GridCursor<IndexRow>> 
cursorsQueue(GridCursor<IndexRow>[] cursors)
+            throws IgniteCheckedException {
+            PriorityQueue<GridCursor<IndexRow>> q = new 
PriorityQueue<>(cursors.length, cursorComp);
+
+            for (GridCursor<IndexRow> c: cursors) {
+                if (c.next())
+                    q.add(c);
+            }
+
+            return q;
+        }
+    }
+
+    /** First-only, single-value-only segmented cursor. */
+    private static class FirstSegmentSingleValueIndexCursor extends 
SegmentedIndexCursor {
+        /**
+         * @param cursors
+         * @param idxDef
+         */
+        FirstSegmentSingleValueIndexCursor(

Review Comment:
   Fixed



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