public static class ComparisonOperators.Cmp extends Object
AggregationExpression
for $cmp
.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) |
ComparisonOperators.Cmp |
compareTo(AggregationExpression expression)
Creates new
ComparisonOperators.Cmp with all previously added arguments appending the given one. |
ComparisonOperators.Cmp |
compareTo(String fieldReference)
Creates new
ComparisonOperators.Cmp with all previously added arguments appending the given one. |
ComparisonOperators.Cmp |
compareToValue(Object value)
Creates new
ComparisonOperators.Cmp with all previously added arguments appending the given one. |
protected String |
getMongoMethod() |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
static ComparisonOperators.Cmp |
valueOf(AggregationExpression expression)
Creates new
ComparisonOperators.Cmp . |
static ComparisonOperators.Cmp |
valueOf(String fieldReference)
Creates new
ComparisonOperators.Cmp . |
protected List<Object> |
values() |
protected String getMongoMethod()
public static ComparisonOperators.Cmp valueOf(String fieldReference)
ComparisonOperators.Cmp
.fieldReference
- must not be null.public static ComparisonOperators.Cmp valueOf(AggregationExpression expression)
ComparisonOperators.Cmp
.expression
- must not be null.public ComparisonOperators.Cmp compareTo(String fieldReference)
ComparisonOperators.Cmp
with all previously added arguments appending the given one.fieldReference
- must not be null.public ComparisonOperators.Cmp compareTo(AggregationExpression expression)
ComparisonOperators.Cmp
with all previously added arguments appending the given one.expression
- must not be null.public ComparisonOperators.Cmp compareToValue(Object value)
ComparisonOperators.Cmp
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–2018 Pivotal Software, Inc.. All rights reserved.