public interface AggregationExpression extends MongoExpression
AggregationExpression can be used with field expressions in aggregation pipeline stages like
project and group.| Modifier and Type | Method and Description |
|---|---|
static AggregationExpression |
from(MongoExpression expression)
Create an
AggregationExpression out of a given MongoExpression to ensure the resulting
Document is mapped against the AggregationOperationContext. |
default org.bson.Document |
toDocument()
Obtain the as is (unmapped) representation of the
AggregationExpression. |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
create, createstatic AggregationExpression from(MongoExpression expression)
AggregationExpression out of a given MongoExpression to ensure the resulting
Document is mapped against the AggregationOperationContext. AggregationExpression the very same instance is returned.expression - must not be null.default org.bson.Document toDocument()
AggregationExpression. Use
toDocument(AggregationOperationContext) with a matching context to
engage domain type mapping including field name resolution.toDocument in interface MongoExpressionMongoExpression.toDocument()org.bson.Document toDocument(AggregationOperationContext context)
context - must not be null.Document) form of the expression.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.