public static class ComparisonOperators.Eq extends Object
AggregationExpression for $eq.| 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.Eq |
equalTo(AggregationExpression expression)
Creates new
ComparisonOperators.Eq with all previously added arguments appending the given one. |
ComparisonOperators.Eq |
equalTo(String fieldReference)
Creates new
ComparisonOperators.Eq with all previously added arguments appending the given one. |
ComparisonOperators.Eq |
equalToValue(Object value)
Creates new
ComparisonOperators.Eq 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.Eq |
valueOf(AggregationExpression expression)
Creates new
ComparisonOperators.Eq. |
static ComparisonOperators.Eq |
valueOf(String fieldReference)
Creates new
ComparisonOperators.Eq. |
protected List<Object> |
values() |
protected String getMongoMethod()
public static ComparisonOperators.Eq valueOf(String fieldReference)
ComparisonOperators.Eq.fieldReference - must not be null.public static ComparisonOperators.Eq valueOf(AggregationExpression expression)
ComparisonOperators.Eq.expression - must not be null.public ComparisonOperators.Eq equalTo(String fieldReference)
ComparisonOperators.Eq with all previously added arguments appending the given one.fieldReference - must not be null.public ComparisonOperators.Eq equalTo(AggregationExpression expression)
ComparisonOperators.Eq with all previously added arguments appending the given one.expression - must not be null.public ComparisonOperators.Eq equalToValue(Object value)
ComparisonOperators.Eq with all previously added arguments appending the given one.value - must not be null.public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpressiontoDbObject in interface AggregationExpressionpublic com.mongodb.DBObject toDbObject(Object value, AggregationOperationContext context)
Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.