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