public static class BooleanOperators.And extends Object
AggregationExpression
for $and
.Modifier and Type | Method and Description |
---|---|
static BooleanOperators.And |
and(Object... expressions)
Creates new
BooleanOperators.And that evaluates one or more expressions and returns true if all of the
expressions are true. |
BooleanOperators.And |
andExpression(AggregationExpression expression)
Creates new
BooleanOperators.And with all previously added arguments appending the given one. |
BooleanOperators.And |
andField(String fieldReference)
Creates new
BooleanOperators.And with all previously added arguments appending the given one. |
BooleanOperators.And |
andValue(Object value)
Creates new
BooleanOperators.And with all previously added arguments appending the given one. |
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() |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static BooleanOperators.And and(Object... expressions)
BooleanOperators.And
that evaluates one or more expressions and returns true if all of the
expressions are true.expressions
- public BooleanOperators.And andExpression(AggregationExpression expression)
BooleanOperators.And
with all previously added arguments appending the given one.expression
- must not be null.public BooleanOperators.And andField(String fieldReference)
BooleanOperators.And
with all previously added arguments appending the given one.fieldReference
- must not be null.public BooleanOperators.And andValue(Object value)
BooleanOperators.And
with all previously added arguments appending the given one.value
- must not be null.public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpression
toDbObject
in interface AggregationExpression
public com.mongodb.DBObject toDbObject(Object value, AggregationOperationContext context)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.