Package | Description |
---|---|
org.springframework.data.mongodb.core.aggregation |
Support for the MongoDB aggregation framework.
|
Modifier and Type | Method and Description |
---|---|
AggregationOptions.Builder |
AggregationOptions.Builder.allowDiskUse(boolean allowDiskUse)
Defines whether to off-load intensive sort-operations to disk.
|
static AggregationOptions.Builder |
AggregationOptions.builder()
Obtain a new
AggregationOptions.Builder for constructing AggregationOptions . |
AggregationOptions.Builder |
AggregationOptions.Builder.collation(Collation collation)
Define collation settings for string comparison.
|
AggregationOptions.Builder |
AggregationOptions.Builder.comment(String comment)
Define a comment to describe the execution.
|
AggregationOptions.Builder |
AggregationOptions.Builder.cursor(org.bson.Document cursor)
Additional options to the aggregation.
|
AggregationOptions.Builder |
AggregationOptions.Builder.cursorBatchSize(int batchSize)
Define the initial cursor batch size.
|
AggregationOptions.Builder |
AggregationOptions.Builder.explain(boolean explain)
Defines whether to get the execution plan for the aggregation instead of the actual results.
|
AggregationOptions.Builder |
AggregationOptions.Builder.hint(org.bson.Document hint)
Define a hint that is used by query optimizer to to fulfill the aggregation.
|
AggregationOptions.Builder |
AggregationOptions.Builder.maxTime(Duration maxTime)
Set the time limit for processing.
|
static AggregationOptions.Builder |
Aggregation.newAggregationOptions()
Returns a new
AggregationOptions.Builder . |
AggregationOptions.Builder |
AggregationOptions.Builder.noMapping()
Apply no domain type mapping at all taking the pipeline as-is.
|
AggregationOptions.Builder |
AggregationOptions.Builder.relaxedMapping()
Apply a relaxed domain type mapping considering
Field
annotations using the user provided name if a referenced field does not exist. |
AggregationOptions.Builder |
AggregationOptions.Builder.skipOutput()
Run the aggregation, but do NOT read the aggregation result from the store.
|
AggregationOptions.Builder |
AggregationOptions.Builder.strictMapping()
Apply a strict domain type mapping considering
Field
annotations throwing errors for non-existent, but referenced fields. |
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.