Package com.mongodb
Class AggregationOptions
java.lang.Object
com.mongodb.AggregationOptions
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
The options to apply to an aggregate operation.
- Since:
- 2.12
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.static enum
Deprecated.There is no replacement for this. -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregationOptions.Builder
builder()
Deprecated.Creates a new Builder forAggregationOptions
.Deprecated.If true, this enables external sort capabilities, otherwise $sort produces an error if the operation consumes 10 percent or more of RAM.Deprecated.The size of batches to use when iterating over results.Deprecated.Gets whether to bypass document validation, or null if unspecified.Deprecated.Returns the collation optionslong
getMaxTime
(TimeUnit timeUnit) Deprecated.Gets the maximum execution time for the aggregation command.Deprecated.There is no replacement for this.toString()
Deprecated.
-
Method Details
-
getAllowDiskUse
Deprecated.If true, this enables external sort capabilities, otherwise $sort produces an error if the operation consumes 10 percent or more of RAM.- Returns:
- true if aggregation stages can write data to temporary files
-
getBatchSize
Deprecated.The size of batches to use when iterating over results.- Returns:
- the batch size
-
getOutputMode
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.- Returns:
- whether the output will be inline or via a cursor, which defaults to
AggregationOptions.OutputMode.CURSOR
- See Also:
-
getMaxTime
Deprecated.Gets the maximum execution time for the aggregation command.- Parameters:
timeUnit
- the time unit for the result- Returns:
- the max time
- Since:
- 2.12
-
getBypassDocumentValidation
Deprecated.Gets whether to bypass document validation, or null if unspecified. The default is null.- Returns:
- whether to bypass document validation, or null if unspecified.
- Since:
- 2.14
-
getCollation
Deprecated.Returns the collation options- Returns:
- the collation options
- Since:
- 3.4
-
toString
Deprecated. -
builder
Deprecated.Creates a new Builder forAggregationOptions
.- Returns:
- a new empty builder.
-