Package | Description |
---|---|
com.mongodb.client |
This package contains classes for the new client api for MongoDatabase and MongoCollection
|
Modifier and Type | Method and Description |
---|---|
AggregateIterable<TDocument> |
MongoCollection.aggregate(List<? extends Bson> pipeline)
Aggregates documents according to the specified aggregation pipeline.
|
<TResult> AggregateIterable<TResult> |
MongoCollection.aggregate(List<? extends Bson> pipeline,
Class<TResult> resultClass)
Aggregates documents according to the specified aggregation pipeline.
|
AggregateIterable<TResult> |
AggregateIterable.allowDiskUse(Boolean allowDiskUse)
Enables writing to temporary files.
|
AggregateIterable<TResult> |
AggregateIterable.batchSize(int batchSize)
Sets the number of documents to return per batch.
|
AggregateIterable<TResult> |
AggregateIterable.bypassDocumentValidation(Boolean bypassDocumentValidation)
Sets the bypass document level validation flag.
|
AggregateIterable<TResult> |
AggregateIterable.collation(Collation collation)
Sets the collation options
|
AggregateIterable<TResult> |
AggregateIterable.maxTime(long maxTime,
TimeUnit timeUnit)
Sets the maximum execution time on the server for this operation.
|
AggregateIterable<TResult> |
AggregateIterable.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 © 2017. All Rights Reserved.