public static class ArithmeticOperators.Mod extends Object
AggregationExpression
for $mod
.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.Mod |
mod(AggregationExpression expression) |
ArithmeticOperators.Mod |
mod(Number base) |
ArithmeticOperators.Mod |
mod(String fieldReference) |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
static ArithmeticOperators.Mod |
valueOf(AggregationExpression expression)
Creates new
ArithmeticOperators.Mod . |
static ArithmeticOperators.Mod |
valueOf(Number value)
Creates new
ArithmeticOperators.Mod . |
static ArithmeticOperators.Mod |
valueOf(String fieldReference)
Creates new
ArithmeticOperators.Mod . |
protected List<Object> |
values() |
protected String getMongoMethod()
public static ArithmeticOperators.Mod valueOf(String fieldReference)
ArithmeticOperators.Mod
.fieldReference
- must not be null.public static ArithmeticOperators.Mod valueOf(AggregationExpression expression)
ArithmeticOperators.Mod
.expression
- must not be null.public static ArithmeticOperators.Mod valueOf(Number value)
ArithmeticOperators.Mod
.value
- must not be null.public ArithmeticOperators.Mod mod(String fieldReference)
public ArithmeticOperators.Mod mod(AggregationExpression expression)
public ArithmeticOperators.Mod mod(Number base)
public com.mongodb.DBObject toDbObject(AggregationOperationContext context)
AggregationExpression
toDbObject
in interface AggregationExpression
public com.mongodb.DBObject toDbObject(Object value, AggregationOperationContext context)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.