Package org.apache.ignite.internal.util
Class GridCursorIteratorWrapper<V>
java.lang.Object
org.apache.ignite.internal.util.GridCursorIteratorWrapper<V>
- All Implemented Interfaces:
GridCursor<V>
Wrap
Iterator and adapt it to GridCursor.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GridCursorIteratorWrapper
- Parameters:
iter- Iterator.
-
-
Method Details
-
get
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
Attempt 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.
-