@FunctionalInterface public interface MongoExpression
$toUpper : $name that manifest as Document when
passed on to the driver.
expressions, including a
SpEL based variant for method
like expressions (eg. toUpper(name)) are available via the
Aggregation API.ArithmeticOperators,
ArrayOperators,
ComparisonOperators,
ConditionalOperators,
ConvertOperators,
DateOperators,
ObjectOperators,
SetOperators,
StringOperators| Modifier and Type | Method and Description |
|---|---|
static MongoExpression |
create(String expression)
Create a new
MongoExpression from plain String (eg. |
static MongoExpression |
create(String expression,
Object... args)
Create a new
MongoExpression from plain String containing placeholders (eg. |
org.bson.Document |
toDocument()
Obtain the native
Document representation. |
static MongoExpression create(String expression)
MongoExpression from plain String (eg. $toUpper : $name). { ... } to match an actual MongoDB Document
if necessary.expression - must not be null.MongoExpression.static MongoExpression create(String expression, Object... args)
MongoExpression from plain String containing placeholders (eg. $toUpper : ?0)
that will be resolved on first call of toDocument(). { ... } to match an actual MongoDB Document
if necessary.expression - must not be null.MongoExpression.org.bson.Document toDocument()
Document representation.Copyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.