Package org.apache.ignite.internal.util
Class GridCursorIteratorWrapper<V>
- java.lang.Object
-
- org.apache.ignite.internal.util.GridCursorIteratorWrapper<V>
-
- All Implemented Interfaces:
GridCursor<V>
public class GridCursorIteratorWrapper<V> extends Object implements GridCursor<V>
WrapIteratorand adapt it toGridCursor.
-
-
Constructor Summary
Constructors Constructor Description GridCursorIteratorWrapper(Iterator<V> iter)
-
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.
-
-
-
Method Detail
-
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.
-
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.
-
-