public static class ArithmeticOperators.Subtract extends Object
AggregationExpression for $subtract.| 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() |
ArithmeticOperators.Subtract |
subtract(AggregationExpression expression) |
ArithmeticOperators.Subtract |
subtract(Number value) |
ArithmeticOperators.Subtract |
subtract(String fieldReference) |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
static ArithmeticOperators.Subtract |
valueOf(AggregationExpression expression)
Creates new
ArithmeticOperators.Subtract. |
static ArithmeticOperators.Subtract |
valueOf(Number value)
Creates new
ArithmeticOperators.Subtract. |
static ArithmeticOperators.Subtract |
valueOf(String fieldReference)
Creates new
ArithmeticOperators.Subtract. |
protected List<Object> |
values() |
protected String getMongoMethod()
public static ArithmeticOperators.Subtract valueOf(String fieldReference)
ArithmeticOperators.Subtract.fieldReference - must not be null.public static ArithmeticOperators.Subtract valueOf(AggregationExpression expression)
ArithmeticOperators.Subtract.expression - must not be null.public static ArithmeticOperators.Subtract valueOf(Number value)
ArithmeticOperators.Subtract.value - must not be null.public ArithmeticOperators.Subtract subtract(String fieldReference)
public ArithmeticOperators.Subtract subtract(AggregationExpression expression)
public ArithmeticOperators.Subtract subtract(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.