public class AggregateOptions extends Object
Constructor and Description |
---|
AggregateOptions() |
Modifier and Type | Method and Description |
---|---|
AggregateOptions |
allowDiskUse(boolean allowDiskUse)
Enables writing to temporary files.
|
<T> com.mongodb.reactivestreams.client.AggregatePublisher<T> |
apply(com.mongodb.reactivestreams.client.AggregatePublisher<T> stream) |
AggregateOptions |
bypassDocumentValidation(boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
AggregateOptions |
collation(com.mongodb.client.model.Collation collation)
Sets the collation options
|
AggregateOptions |
comment(String comment)
Sets the comment to the aggregation.
|
AggregateOptions |
hint(org.bson.conversions.Bson hint)
Sets the hint for which index to use.
|
AggregateOptions |
maxAwaitTime(long maxAwaitTime,
TimeUnit timeUnit)
The maximum amount of time for the server to wait on new documents to satisfy a
$changeStream aggregation. |
AggregateOptions |
maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
public AggregateOptions allowDiskUse(boolean allowDiskUse)
allowDiskUse
- true if writing to temporary files is enabledpublic AggregateOptions maxTime(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unit, which may not be nullpublic AggregateOptions maxAwaitTime(long maxAwaitTime, TimeUnit timeUnit)
$changeStream
aggregation.
A zero value will be ignored.
maxAwaitTime
- the max await timetimeUnit
- the time unit to return the result inpublic AggregateOptions bypassDocumentValidation(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.public AggregateOptions collation(com.mongodb.client.model.Collation collation)
A null value represents the server default.
collation
- the collation options to usepublic AggregateOptions comment(String comment)
comment
- the commentpublic AggregateOptions hint(org.bson.conversions.Bson hint)
hint
- the hintpublic <T> com.mongodb.reactivestreams.client.AggregatePublisher<T> apply(com.mongodb.reactivestreams.client.AggregatePublisher<T> stream)
Copyright © 2020 JBoss by Red Hat. All rights reserved.