public static class ArithmeticOperators.Mod extends Object
AggregationExpression for $mod.| Modifier and Type | Class and Description |
|---|---|
protected static class |
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,
AbstractAggregationExpression.Expand expandList) |
protected Map<String,Object> |
append(String key,
Object value) |
protected Map<String,Object> |
appendAt(int index,
String key,
Object value)
Append the given key at the position in the underlying
LinkedHashMap. |
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.Mod |
mod(AggregationExpression expression)
Use evaluated value of the given
AggregationExpression as mod base. |
ArithmeticOperators.Mod |
mod(Number base)
Use the given value as mod base.
|
ArithmeticOperators.Mod |
mod(String fieldReference)
Use the value stored at the given field as mod base.
|
protected Map<String,Object> |
remove(String key) |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(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() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, toDocumentcreate, createprotected String getMongoMethod()
public static ArithmeticOperators.Mod valueOf(String fieldReference)
ArithmeticOperators.Mod.fieldReference - must not be null.ArithmeticOperators.Mod.public static ArithmeticOperators.Mod valueOf(AggregationExpression expression)
ArithmeticOperators.Mod.expression - must not be null.ArithmeticOperators.Mod.public static ArithmeticOperators.Mod valueOf(Number value)
ArithmeticOperators.Mod.value - must not be null.ArithmeticOperators.Mod.public ArithmeticOperators.Mod mod(String fieldReference)
fieldReference - must not be null.ArithmeticOperators.Mod.public ArithmeticOperators.Mod mod(AggregationExpression expression)
AggregationExpression as mod base.expression - must not be null.ArithmeticOperators.Mod.public ArithmeticOperators.Mod mod(Number base)
base - must not be null.ArithmeticOperators.Mod.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpressiontoDocument in interface AggregationExpressioncontext - must not be null.Document) form of the expression.public org.bson.Document toDocument(Object value, AggregationOperationContext context)
protected List<Object> append(Object value, AbstractAggregationExpression.Expand expandList)
protected Map<String,Object> appendAt(int index, String key, Object value)
LinkedHashMap.index - key - value - protected <T> T get(int index)
T - index - protected <T> T get(Object key)
T - key - protected boolean contains(Object key)
key - Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.