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(Boolean allowDiskUse)
Enables writing to temporary files.
|
AggregateOperation<T> |
AggregateOperation.batchSize(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(String comment)
Sets the comment to the aggregation.
|
AggregateOperation<T> |
AggregateOperation.hint(BsonDocument hint)
Sets the hint for which index to use.
|
AggregateOperation<T> |
AggregateOperation.maxAwaitTime(long maxAwaitTime,
TimeUnit timeUnit)
Sets the maximum await execution time on the server for this operation.
|
AggregateOperation<T> |
AggregateOperation.maxTime(long maxTime,
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(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.
|
Copyright © 2018. All rights reserved.