Class SortedSegmentedIndexCursor
- java.lang.Object
-
- org.apache.ignite.internal.cache.query.index.sorted.inline.SortedSegmentedIndexCursor
-
- All Implemented Interfaces:
GridCursor<IndexRow>
public class SortedSegmentedIndexCursor extends Object implements GridCursor<IndexRow>
Single cursor over multiple segments. The next value is chosen with the index row comparator.
-
-
Constructor Summary
Constructors Constructor Description SortedSegmentedIndexCursor(GridCursor<IndexRow>[] cursors, SortedIndexDefinition idxDef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Queue<GridCursor<IndexRow>>cursorsQueue(GridCursor<IndexRow>[] cursors)IndexRowget()Gets element at current position.booleannext()Attempt to move cursor position forward.
-
-
-
Constructor Detail
-
SortedSegmentedIndexCursor
public SortedSegmentedIndexCursor(GridCursor<IndexRow>[] cursors, SortedIndexDefinition idxDef) throws IgniteCheckedException
- Throws:
IgniteCheckedException
-
-
Method Detail
-
next
public boolean next() throws IgniteCheckedExceptionAttempt to move cursor position forward.- Specified by:
nextin interfaceGridCursor<IndexRow>- Returns:
trueIf we were able to move position of cursor forward.- Throws:
IgniteCheckedException- If failed.
-
get
public IndexRow get() throws IgniteCheckedException
Gets element at current position. Must be called only after successfulGridCursor.next()call.- Specified by:
getin interfaceGridCursor<IndexRow>- Returns:
- Element at current position.
- Throws:
IgniteCheckedException- If failed.
-
cursorsQueue
protected Queue<GridCursor<IndexRow>> cursorsQueue(GridCursor<IndexRow>[] cursors) throws IgniteCheckedException
- Throws:
IgniteCheckedException
-
-