public static class AggregationOptions.Builder extends Object
Modifier and Type | Method and Description |
---|---|
AggregationOptions.Builder |
allowDiskUse(Boolean allowDiskUse)
If true, this enables external sort capabilities otherwise $sort produces an error if the operation consumes 10 percent or
more of RAM.
|
AggregationOptions.Builder |
batchSize(Integer size)
Sets the size of batches to use when iterating over results.
|
AggregationOptions |
build()
Return the options based on this builder.
|
AggregationOptions.Builder |
maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time for the aggregation command.
|
AggregationOptions.Builder |
outputMode(AggregationOptions.OutputMode mode)
The mode of output for this configuration.
|
public AggregationOptions.Builder batchSize(Integer size)
public AggregationOptions.Builder allowDiskUse(Boolean allowDiskUse)
public AggregationOptions.Builder outputMode(AggregationOptions.OutputMode mode)
AggregationOptions.OutputMode
public AggregationOptions.Builder maxTime(long maxTime, TimeUnit timeUnit)
maxTime
- the max timetimeUnit
- the time unitpublic AggregationOptions build()