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) |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(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 org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressionpublic org.bson.Document toDocument(Object value, AggregationOperationContext context)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.