T - The type of elements being iterated over.MongoIterator interface instead. This interface
will be removed after the 1.3.0 release.@Deprecated 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()
Deprecated.
Close the iterator and release any resources it is holding.
|
int |
getBatchSize()
Deprecated.
Returns the size for batches of documents that are requested.
|
void |
setBatchSize(int batchSize)
Deprecated.
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–2014 Allanbank Consulting, Inc.. All rights reserved.