T
- The type of elements being iterated over.public interface ClosableIterator<T> extends Iterator<T>, Iterable<T>
In addition the batch size for the next request for documents from the cursor can be set.
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the iterator and release any resources it is holding.
|
int |
getBatchSize()
Returns the size for batches of documents that are requested.
|
void |
setBatchSize(int batchSize)
Sets the size for future batch sizes.
|
void close()
int getBatchSize()
void setBatchSize(int batchSize)
batchSize
- The size to request for future batch sizes.Copyright © 2011-2013 Allanbank Consulting, Inc.. All Rights Reserved.