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() |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(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 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.