T
- The type of the result.public interface AggregateIterable<T> extends MongoIterable<T>
Modifier and Type | Method and Description |
---|---|
AggregateIterable<T> |
allowDiskUse(Boolean allowDiskUse)
Enables writing to temporary files.
|
AggregateIterable<T> |
batchSize(int batchSize)
Sets the number of documents to return per batch.
|
AggregateIterable<T> |
maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
AggregateIterable<T> |
useCursor(Boolean useCursor)
Sets whether the server should use a cursor to return results.
|
first, forEach, into, iterator, map
forEach, spliterator
AggregateIterable<T> allowDiskUse(Boolean allowDiskUse)
allowDiskUse
- true if writing to temporary files is enabledAggregateIterable<T> batchSize(int batchSize)
batchSize
in interface MongoIterable<T>
batchSize
- the batch sizeAggregateIterable<T> maxTime(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullAggregateIterable<T> useCursor(Boolean useCursor)
useCursor
- whether the server should use a cursor to return results