public static class ArithmeticOperators.Add extends Object
AggregationExpression for $add.| Modifier and Type | Method and Description |
|---|---|
ArithmeticOperators.Add |
add(AggregationExpression expression) |
ArithmeticOperators.Add |
add(Number value) |
ArithmeticOperators.Add |
add(String fieldReference) |
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) |
static ArithmeticOperators.Add |
valueOf(AggregationExpression expression)
Creates new
ArithmeticOperators.Add. |
static ArithmeticOperators.Add |
valueOf(Number value)
Creates new
ArithmeticOperators.Add. |
static ArithmeticOperators.Add |
valueOf(String fieldReference)
Creates new
ArithmeticOperators.Add. |
protected List<Object> |
values() |
protected Add(List<?> value)
protected String getMongoMethod()
public static ArithmeticOperators.Add valueOf(String fieldReference)
ArithmeticOperators.Add.fieldReference - must not be null.public static ArithmeticOperators.Add valueOf(AggregationExpression expression)
ArithmeticOperators.Add.expression - must not be null.public static ArithmeticOperators.Add valueOf(Number value)
ArithmeticOperators.Add.value - must not be null.public ArithmeticOperators.Add add(String fieldReference)
public ArithmeticOperators.Add add(AggregationExpression expression)
public ArithmeticOperators.Add add(Number value)
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.