public interface AggregationOperation
| Modifier and Type | Method and Description |
|---|---|
default String |
getOperator()
Return the MongoDB operator that is used for this
AggregationOperation. |
org.bson.Document |
toDocument(AggregationOperationContext context)
Deprecated.
since 2.2 in favor of
toPipelineStages(AggregationOperationContext). |
default List<org.bson.Document> |
toPipelineStages(AggregationOperationContext context)
|
@Deprecated org.bson.Document toDocument(AggregationOperationContext context)
toPipelineStages(AggregationOperationContext).context - the AggregationOperationContext to operate within. Must not be null.default List<org.bson.Document> toPipelineStages(AggregationOperationContext context)
AggregationOperation into list of stages by using the given
AggregationOperationContext. This allows a single AggregationOptions to add additional stages for
eg. $sort or $limit.context - the AggregationOperationContext to operate within. Must not be null.default String getOperator()
AggregationOperation. Aggregation operations should
implement this method to avoid document rendering.AggregationOperation.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.