TResult
- The type of the result.public interface AggregatePublisher<TResult>
extends org.reactivestreams.Publisher<TResult>
Modifier and Type | Method and Description |
---|---|
AggregatePublisher<TResult> |
allowDiskUse(Boolean allowDiskUse)
Enables writing to temporary files.
|
AggregatePublisher<TResult> |
maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
org.reactivestreams.Publisher<Success> |
toCollection()
Aggregates documents according to the specified aggregation pipeline, which must end with a $out stage.
|
AggregatePublisher<TResult> |
useCursor(Boolean useCursor)
Sets whether the server should use a cursor to return results.
|
AggregatePublisher<TResult> allowDiskUse(Boolean allowDiskUse)
allowDiskUse
- true if writing to temporary files is enabledAggregatePublisher<TResult> maxTime(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullAggregatePublisher<TResult> useCursor(Boolean useCursor)
useCursor
- whether the server should use a cursor to return resultsorg.reactivestreams.Publisher<Success> toCollection()