TResult - The type of the result.public interface AggregateIterable<TResult> extends MongoIterable<TResult>
| 限定符和类型 | 方法和说明 |
|---|---|
AggregateIterable<TResult> |
allowDiskUse(java.lang.Boolean allowDiskUse)
Enables writing to temporary files.
|
AggregateIterable<TResult> |
batchSize(int batchSize)
Sets the number of documents to return per batch.
|
AggregateIterable<TResult> |
bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
AggregateIterable<TResult> |
maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
AggregateIterable<TResult> |
useCursor(java.lang.Boolean useCursor)
Sets whether the server should use a cursor to return results.
|
AggregateIterable<TResult> allowDiskUse(java.lang.Boolean allowDiskUse)
allowDiskUse - true if writing to temporary files is enabledAggregateIterable<TResult> batchSize(int batchSize)
batchSize 在接口中 MongoIterable<TResult>batchSize - the batch sizeAggregateIterable<TResult> maxTime(long maxTime, java.util.concurrent.TimeUnit timeUnit)
maxTime - the max timetimeUnit - the time unit, which may not be nullAggregateIterable<TResult> useCursor(java.lang.Boolean useCursor)
useCursor - whether the server should use a cursor to return resultsAggregateIterable<TResult> bypassDocumentValidation(java.lang.Boolean bypassDocumentValidation)
Note: This only applies when an $out stage is specified
.bypassDocumentValidation - If true, allows the write to opt-out of document level validation.