| Modifier and Type | Class and Description | 
|---|---|
| static class  | AggregationOptions.BuilderBuilder for creating  AggregationOptions. | 
| static class  | AggregationOptions.OutputModeEnumeration 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. | 
| Boolean | getAllowDiskUse()If true, this enables external sort capabilities, otherwise $sort produces an error if the operation consumes 10 percent or more of
 RAM. | 
| Integer | getBatchSize()The size of batches to use when iterating over results. | 
| Boolean | getBypassDocumentValidation()Gets whether to bypass document validation, or null if unspecified. | 
| Collation | getCollation()Returns the collation options | 
| long | getMaxTime(TimeUnit timeUnit)Gets the maximum execution time for the aggregation command. | 
| AggregationOptions.OutputMode | getOutputMode()The mode of output for this configuration. | 
| String | toString() | 
public Boolean getAllowDiskUse()
public Integer getBatchSize()
public AggregationOptions.OutputMode getOutputMode()
AggregationOptions.OutputModepublic long getMaxTime(TimeUnit timeUnit)
timeUnit - the time unit for the resultpublic Boolean getBypassDocumentValidation()
public Collation getCollation()
public static AggregationOptions.Builder builder()
AggregationOptions.