public static class ArithmeticOperators.Subtract extends Object
AggregationExpression
for $subtract
.Modifier and Type | Class and Description |
---|---|
protected static class |
org.springframework.data.mongodb.core.aggregation.AbstractAggregationExpression.Expand
Expand a nested list of values to single entries or keep the list.
|
Modifier and Type | Method and Description |
---|---|
protected List<Object> |
append(Object value) |
protected List<Object> |
append(Object value,
org.springframework.data.mongodb.core.aggregation.AbstractAggregationExpression.Expand expandList) |
protected Map<String,Object> |
append(String key,
Object value) |
protected Map<String,Object> |
argumentMap()
Get the argument map.
|
protected static List<Field> |
asFields(String... fieldRefs) |
protected boolean |
contains(Object key)
Check if the given key is available.
|
protected <T> T |
get(int index)
Get the value at a given index.
|
protected <T> T |
get(Object key)
Get the value for a given key.
|
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)
AggregationExpression
toDocument
in interface AggregationExpression
public org.bson.Document toDocument(Object value, AggregationOperationContext context)
protected List<Object> append(Object value, org.springframework.data.mongodb.core.aggregation.AbstractAggregationExpression.Expand expandList)
protected <T> T get(int index)
T
- index
- protected <T> T get(Object key)
T
- key
- protected boolean contains(Object key)
key
- Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.