public static class ArrayOperators.RangeOperator extends Object
AggregationExpression
for $range
.Modifier and Type | Class and Description |
---|---|
static class |
ArrayOperators.RangeOperator.RangeOperatorBuilder |
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() |
static ArrayOperators.RangeOperator.RangeOperatorBuilder |
rangeStartingAt(AggregationExpression expression)
Start creating new
ArrayOperators.RangeOperator . |
static ArrayOperators.RangeOperator.RangeOperatorBuilder |
rangeStartingAt(long value)
Start creating new
ArrayOperators.RangeOperator . |
static ArrayOperators.RangeOperator.RangeOperatorBuilder |
rangeStartingAt(String fieldReference)
Start creating new
ArrayOperators.RangeOperator . |
com.mongodb.DBObject |
toDbObject(AggregationOperationContext context)
|
com.mongodb.DBObject |
toDbObject(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
ArrayOperators.RangeOperator |
withStepSize(long stepSize) |
protected String getMongoMethod()
public static ArrayOperators.RangeOperator.RangeOperatorBuilder rangeStartingAt(String fieldReference)
ArrayOperators.RangeOperator
.fieldReference
- must not be null.public static ArrayOperators.RangeOperator.RangeOperatorBuilder rangeStartingAt(AggregationExpression expression)
ArrayOperators.RangeOperator
.expression
- must not be null.public static ArrayOperators.RangeOperator.RangeOperatorBuilder rangeStartingAt(long value)
ArrayOperators.RangeOperator
.value
- public ArrayOperators.RangeOperator withStepSize(long stepSize)
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.