Package com.mongodb
Class AggregationOptions.Builder
java.lang.Object
com.mongodb.AggregationOptions.Builder
- Enclosing class:
AggregationOptions
@NotThreadSafe
@Deprecated(since="2021-05-27")
public static class AggregationOptions.Builder
extends Object
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
Builder for creating
AggregationOptions
.-
Method Summary
Modifier and TypeMethodDescriptionallowDiskUse
(Boolean allowDiskUse) Deprecated.Set whether to enable external sort capabilities.Deprecated.Sets the size of batches to use when iterating over results.build()
Deprecated.Return the options based on this builder.bypassDocumentValidation
(Boolean bypassDocumentValidation) Deprecated.Sets whether to bypass document validation.Deprecated.Sets the collationDeprecated.Sets the maximum execution time for the aggregation command.Deprecated.There is no replacement for this.
-
Method Details
-
batchSize
Deprecated.Sets the size of batches to use when iterating over results. Can be null.- Parameters:
size
- the batch size to apply to the cursor- Returns:
this
so calls can be chained
-
allowDiskUse
Deprecated.Set whether to enable external sort capabilities. If set to false, $sort produces an error if the operation consumes 10 percent or more RAM.- Parameters:
allowDiskUse
- whether or not aggregation stages can write data to temporary files- Returns:
this
so calls can be chained
-
outputMode
Deprecated.There is no replacement for this. Applications can assume that the driver will use a cursor for server versions that support it (>= 2.6). The driver will ignore this as of MongoDB 3.6, which does not support inline results for the aggregate command.The mode of output for this configuration.- Parameters:
mode
- anOutputMode
that defines how to output the results of the aggregation.- Returns:
this
so calls can be chained- See Also:
-
maxTime
Deprecated.Sets the maximum execution time for the aggregation command.- Parameters:
maxTime
- the max timetimeUnit
- the time unit- Returns:
this
so calls can be chained
-
bypassDocumentValidation
Deprecated.Sets whether to bypass document validation.- Parameters:
bypassDocumentValidation
- whether to bypass document validation, or null if unspecified- Returns:
- this
- Since:
- 2.14
-
collation
Deprecated.Sets the collation- Parameters:
collation
- the collation- Returns:
- this
- Since:
- 3.4
-
build
Deprecated.Return the options based on this builder.- Returns:
- the aggregation options
-