T
- the type of items to returnU
- the type of items in the surface item iteratorpublic abstract class NestingIterator<T,U> extends PrefetchingIterator<T>
createNestedIterator(Object)
is invoked to create a sub-iterator.
The resulting iterator iterates over each item in each sub-iterator. In
effect flattening the iteration.Constructor and Description |
---|
NestingIterator(Iterator<U> source) |
Modifier and Type | Method and Description |
---|---|
protected abstract Iterator<T> |
createNestedIterator(U item) |
protected T |
fetchNextOrNull() |
U |
getCurrentSurfaceItem() |
getPrefetchedNextOrNull, hasNext, next, remove, setPrefetchedNext
public U getCurrentSurfaceItem()
protected T fetchNextOrNull()
fetchNextOrNull
in class PrefetchingIterator<T>
Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.