public static class BooleanOperators.Or extends Object
AggregationExpression
for $or
.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.Or |
or(Object... expressions)
Creates new
BooleanOperators.Or that evaluates one or more expressions and returns true if any of the
expressions are true. |
BooleanOperators.Or |
orExpression(AggregationExpression expression)
Creates new
BooleanOperators.Or with all previously added arguments appending the given one. |
BooleanOperators.Or |
orField(String fieldReference)
Creates new
BooleanOperators.Or with all previously added arguments appending the given one. |
BooleanOperators.Or |
orValue(Object value)
Creates new
BooleanOperators.Or with all previously added arguments appending the given one. |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static BooleanOperators.Or or(Object... expressions)
BooleanOperators.Or
that evaluates one or more expressions and returns true if any of the
expressions are true.expressions
- must not be null.public BooleanOperators.Or orExpression(AggregationExpression expression)
BooleanOperators.Or
with all previously added arguments appending the given one.expression
- must not be null.public BooleanOperators.Or orField(String fieldReference)
BooleanOperators.Or
with all previously added arguments appending the given one.fieldReference
- must not be null.public BooleanOperators.Or orValue(Object value)
BooleanOperators.Or
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.