public static class BooleanOperators.Not extends Object
AggregationExpression
for $not
.Modifier and Type | Method and Description |
---|---|
protected List<Object> |
append(Object value) |
protected Map<String,Object> |
append(String key,
Object value) |
protected static List<Field> |
asFields(String... fieldRefs) |
protected String |
getMongoMethod() |
static BooleanOperators.Not |
not(AggregationExpression expression)
Creates new
BooleanOperators.Not that evaluates the resulting boolean value of the given AggregationExpression and
returns the opposite boolean value. |
static BooleanOperators.Not |
not(String fieldReference)
Creates new
BooleanOperators.Not that evaluates the boolean value of the referenced field and returns the opposite boolean
value. |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static BooleanOperators.Not not(String fieldReference)
BooleanOperators.Not
that evaluates the boolean value of the referenced field and returns the opposite boolean
value.fieldReference
- must not be null.public static BooleanOperators.Not not(AggregationExpression expression)
BooleanOperators.Not
that evaluates the resulting boolean value of the given AggregationExpression
and
returns the opposite boolean value.expression
- must not be null.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpression
toDocument
in interface AggregationExpression
public org.bson.Document toDocument(Object value, AggregationOperationContext context)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.