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() |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(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 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.