Modifier and Type | Class and Description |
---|---|
static class |
AggregationOptions.Builder
Builder for creating
AggregationOptions . |
static class |
AggregationOptions.OutputMode
Enumeration to define where the results of the aggregation will be output.
|
Modifier and Type | Method and Description |
---|---|
static AggregationOptions.Builder |
builder()
Creates a new Builder for
AggregationOptions . |
java.lang.Boolean |
getAllowDiskUse()
If true, this enables external sort capabilities, otherwise $sort produces an error if the operation consumes 10 percent or more of
RAM.
|
java.lang.Integer |
getBatchSize()
The size of batches to use when iterating over results.
|
long |
getMaxTime(java.util.concurrent.TimeUnit timeUnit)
Gets the maximum execution time for the aggregation command.
|
AggregationOptions.OutputMode |
getOutputMode()
The mode of output for this configuration.
|
java.lang.String |
toString() |
public java.lang.Boolean getAllowDiskUse()
public java.lang.Integer getBatchSize()
public AggregationOptions.OutputMode getOutputMode()
AggregationOptions.OutputMode
public long getMaxTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- the time unit for the resultpublic java.lang.String toString()
toString
in class java.lang.Object
public static AggregationOptions.Builder builder()
AggregationOptions
.