T - the type of items in this Iterator.public class LimitingResourceIterator<T> extends PrefetchingResourceIterator<T>
Iterator.| Constructor and Description |
|---|
LimitingResourceIterator(org.neo4j.graphdb.ResourceIterator<T> source,
int limit)
Instantiates a new limiting iterator which iterates over
source
and if limit items have been returned the next PrefetchingIterator.hasNext()
will return false. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
limitReached() |
hasNext, next, peek, removeequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, hasNext, next, removepublic LimitingResourceIterator(org.neo4j.graphdb.ResourceIterator<T> source, int limit)
source
and if limit items have been returned the next PrefetchingIterator.hasNext()
will return false.source - the source of items.limit - the limit, i.e. the max number of items to return.Copyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.