public static class ArithmeticOperators.Multiply extends Object
AggregationExpression
for $multiply
.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.Multiply |
multiplyBy(AggregationExpression expression) |
ArithmeticOperators.Multiply |
multiplyBy(Number value) |
ArithmeticOperators.Multiply |
multiplyBy(String fieldReference) |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
static ArithmeticOperators.Multiply |
valueOf(AggregationExpression expression)
Creates new
ArithmeticOperators.Multiply . |
static ArithmeticOperators.Multiply |
valueOf(Number value)
Creates new
ArithmeticOperators.Multiply . |
static ArithmeticOperators.Multiply |
valueOf(String fieldReference)
Creates new
ArithmeticOperators.Multiply . |
protected List<Object> |
values() |
protected String getMongoMethod()
public static ArithmeticOperators.Multiply valueOf(String fieldReference)
ArithmeticOperators.Multiply
.fieldReference
- must not be null.public static ArithmeticOperators.Multiply valueOf(AggregationExpression expression)
ArithmeticOperators.Multiply
.expression
- must not be null.public static ArithmeticOperators.Multiply valueOf(Number value)
ArithmeticOperators.Multiply
.value
- must not be null.public ArithmeticOperators.Multiply multiplyBy(String fieldReference)
public ArithmeticOperators.Multiply multiplyBy(AggregationExpression expression)
public ArithmeticOperators.Multiply multiplyBy(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.