org.neo4j.helpers.collection
Class CombiningIterator<T>
java.lang.Object
org.neo4j.helpers.collection.PrefetchingIterator<T>
org.neo4j.helpers.collection.CombiningIterator<T>
- Type Parameters:
T - the type of items in the iteration.
- All Implemented Interfaces:
- java.util.Iterator<T>
public class CombiningIterator<T>
- extends PrefetchingIterator<T>
Combining one or more Iterators, making them look like they were
one big iterator. All iteration/combining is done lazily.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CombiningIterator
public CombiningIterator(java.lang.Iterable<? extends java.util.Iterator<T>> iterators)
CombiningIterator
public CombiningIterator(T first,
java.util.Iterator<T> rest)
fetchNextOrNull
protected T fetchNextOrNull()
- Specified by:
fetchNextOrNull in class PrefetchingIterator<T>
currentIterator
protected java.util.Iterator<T> currentIterator()
Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.