public static class ArrayOperators.ReverseArray extends Object
AggregationExpression
for $reverseArray
.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.ReverseArray |
reverseArrayOf(AggregationExpression expression)
Creates new
ArrayOperators.ReverseArray given AggregationExpression . |
static ArrayOperators.ReverseArray |
reverseArrayOf(String fieldReference)
Creates new
ArrayOperators.ReverseArray given fieldReference. |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static ArrayOperators.ReverseArray reverseArrayOf(String fieldReference)
ArrayOperators.ReverseArray
given fieldReference.fieldReference
- must not be null.public static ArrayOperators.ReverseArray reverseArrayOf(AggregationExpression expression)
ArrayOperators.ReverseArray
given AggregationExpression
.expression
- must not be null.public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpression
toDocument
in interface AggregationExpression
public org.bson.Document toDocument(Object value, AggregationOperationContext context)
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.