public static class ArithmeticOperators.Multiply extends Object
AggregationExpression
for $multiply
.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.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)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.