Class RTree.ItemSlotIterator
java.lang.Object
com.apple.foundationdb.async.rtree.RTree.ItemSlotIterator
- All Implemented Interfaces:
AsyncIterator<ItemSlot>
,Iterator<ItemSlot>
- Enclosing class:
- RTree
Iterator for iterating the items contained in the leaf nodes produced by an underlying
RTree.LeafIterator
.
This iterator is the async equivalent of
Streams.stream(leafIterator).flatMap(leafNode -> leafNode.getItems().stream()).toIterator()
.-
Method Details
-
onHasNext
- Specified by:
onHasNext
in interfaceAsyncIterator<ItemSlot>
-
hasNext
public boolean hasNext() -
next
-
cancel
public void cancel()- Specified by:
cancel
in interfaceAsyncIterator<ItemSlot>
-