public static class ArrayOperators.RangeOperator extends Object
AggregationExpression for $range.| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractAggregationExpression.Expand
Expand a nested list of values to single entries or keep the list.
|
static class |
ArrayOperators.RangeOperator.RangeOperatorBuilder |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfrom, toDocumentcreate, createprotected String getMongoMethod()
public static ArrayOperators.RangeOperator.RangeOperatorBuilder rangeStartingAt(String fieldReference)
ArrayOperators.RangeOperator.fieldReference - must not be null.ArrayOperators.RangeOperator.RangeOperatorBuilder to create ArrayOperators.RangeOperator.public static ArrayOperators.RangeOperator.RangeOperatorBuilder rangeStartingAt(AggregationExpression expression)
ArrayOperators.RangeOperator.expression - must not be null.ArrayOperators.RangeOperator.RangeOperatorBuilder to create ArrayOperators.RangeOperator.public static ArrayOperators.RangeOperator.RangeOperatorBuilder rangeStartingAt(long value)
ArrayOperators.RangeOperator.value - ArrayOperators.RangeOperator.public ArrayOperators.RangeOperator withStepSize(long stepSize)
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.