public interface AggregationOperation
Modifier and Type | Method and Description |
---|---|
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.Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.