Class IndexValueCursor<V>
- java.lang.Object
-
- org.apache.ignite.internal.cache.query.index.sorted.IndexValueCursor<V>
-
- Type Parameters:
V- class represents of value stored in an index.
- All Implemented Interfaces:
GridCursor<V>
public class IndexValueCursor<V> extends Object implements GridCursor<V>
Cursor over index values.
-
-
Field Summary
Fields Modifier and Type Field Description static GridCursorEMPTYEmpty cursor implementation.
-
Constructor Summary
Constructors Constructor Description IndexValueCursor(GridCursor<IndexRow> delegate, Function<IndexRow,V> mapFunc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vget()Gets element at current position.booleannext()Attempt to move cursor position forward.
-
-
-
Field Detail
-
EMPTY
public static final GridCursor EMPTY
Empty cursor implementation.
-
-
Constructor Detail
-
IndexValueCursor
public IndexValueCursor(GridCursor<IndexRow> delegate, Function<IndexRow,V> mapFunc)
-
-
Method Detail
-
next
public boolean next() throws IgniteCheckedExceptionAttempt to move cursor position forward.- Specified by:
nextin interfaceGridCursor<V>- Returns:
trueIf we were able to move position of cursor forward.- Throws:
IgniteCheckedException- If failed.
-
get
public V get() throws IgniteCheckedException
Gets element at current position. Must be called only after successfulGridCursor.next()call.- Specified by:
getin interfaceGridCursor<V>- Returns:
- Element at current position.
- Throws:
IgniteCheckedException- If failed.
-
-