Modifier and Type | Class | Description |
---|---|---|
static class |
AggregationOptions.Builder |
Builder for creating
AggregationOptions . |
static class |
AggregationOptions.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.
|
Modifier and Type | Method | 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β() |
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.
|
String |
toStringβ() |
public Boolean getAllowDiskUseβ()
public Integer getBatchSizeβ()
@Deprecated public AggregationOptions.OutputMode getOutputModeβ()
AggregationOptions.OutputMode.CURSOR
AggregationOptions.OutputMode
public long getMaxTimeβ(TimeUnit timeUnit)
timeUnit
- the time unit for the resultpublic Boolean getBypassDocumentValidationβ()
public Collation getCollationβ()
public static AggregationOptions.Builder builderβ()
AggregationOptions
.