public class AggregationOptions
extends java.lang.Object
Modifier and Type | Class and 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 | Field and Description |
---|---|
private java.lang.Boolean |
allowDiskUse |
private java.lang.Integer |
batchSize |
private java.lang.Boolean |
bypassDocumentValidation |
private Collation |
collation |
private long |
maxTimeMS |
private AggregationOptions.OutputMode |
outputMode |
Constructor and Description |
---|
AggregationOptions(AggregationOptions.Builder builder) |
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.
|
java.lang.Boolean |
getBypassDocumentValidation()
Gets whether to bypass document validation, or null if unspecified.
|
Collation |
getCollation()
Returns the collation options
|
long |
getMaxTime(java.util.concurrent.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.
|
java.lang.String |
toString() |
private final java.lang.Integer batchSize
private final java.lang.Boolean allowDiskUse
private final AggregationOptions.OutputMode outputMode
private final long maxTimeMS
private final java.lang.Boolean bypassDocumentValidation
private final Collation collation
AggregationOptions(AggregationOptions.Builder builder)
public java.lang.Boolean getAllowDiskUse()
public java.lang.Integer getBatchSize()
@Deprecated public AggregationOptions.OutputMode getOutputMode()
AggregationOptions.OutputMode.CURSOR
AggregationOptions.OutputMode
public long getMaxTime(java.util.concurrent.TimeUnit timeUnit)
timeUnit
- the time unit for the resultpublic java.lang.Boolean getBypassDocumentValidation()
public Collation getCollation()
public java.lang.String toString()
toString
in class java.lang.Object
public static AggregationOptions.Builder builder()
AggregationOptions
.