Interface GridCursor<T>
-
- All Known Implementing Classes:
GridCursorIteratorWrapper,IndexValueCursor,SingleCursor,SortedSegmentedIndexCursor
public interface GridCursor<T>Simple cursor abstraction. Initial state must be "before first".
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Tget()Gets element at current position.booleannext()Attempt to move cursor position forward.
-
-
-
Method Detail
-
next
boolean next() throws IgniteCheckedExceptionAttempt to move cursor position forward.- Returns:
trueIf we were able to move position of cursor forward.- Throws:
IgniteCheckedException- If failed.
-
get
T get() throws IgniteCheckedException
Gets element at current position. Must be called only after successfulnext()call.- Returns:
- Element at current position.
- Throws:
IgniteCheckedException- If failed.
-
-