Package | Description |
---|---|
com.mongodb.operation |
The core of the MongoDB driver works via operations, using the command pattern.
|
Modifier and Type | Method and Description |
---|---|
AggregateOperation<T> |
AggregateOperation.allowDiskUse(java.lang.Boolean allowDiskUse)
Enables writing to temporary files.
|
AggregateOperation<T> |
AggregateOperation.batchSize(java.lang.Integer batchSize)
Sets the number of documents to return per batch.
|
AggregateOperation<T> |
AggregateOperation.collation(Collation collation)
Sets the collation options
|
AggregateOperation<T> |
AggregateOperation.comment(java.lang.String comment)
Sets the comment to the aggregation.
|
private AggregateOperation<RawBsonDocument> |
ChangeStreamOperation.createAggregateOperation() |
AggregateOperation<T> |
AggregateOperation.hint(BsonDocument hint)
Sets the hint for which index to use.
|
AggregateOperation<T> |
AggregateOperation.maxAwaitTime(long maxAwaitTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum await execution time on the server for this operation.
|
AggregateOperation<T> |
AggregateOperation.maxTime(long maxTime,
java.util.concurrent.TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
AggregateOperation<T> |
AggregateOperation.readConcern(ReadConcern readConcern)
Sets the read concern
|
AggregateOperation<T> |
AggregateOperation.useCursor(java.lang.Boolean useCursor)
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.
|