public static class ArrayOperators.ConcatArrays extends Object
AggregationExpression
for $concatArrays
.Modifier and Type | Class and Description |
---|---|
protected static class |
org.springframework.data.mongodb.core.aggregation.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,
org.springframework.data.mongodb.core.aggregation.AbstractAggregationExpression.Expand expandList) |
protected Map<String,Object> |
append(String key,
Object value) |
protected Map<String,Object> |
argumentMap()
Get the argument map.
|
static ArrayOperators.ConcatArrays |
arrayOf(AggregationExpression expression)
Creates new
ArrayOperators.ConcatArrays . |
static ArrayOperators.ConcatArrays |
arrayOf(Collection<?> values)
Creates new
ArrayOperators.ConcatArrays . |
static ArrayOperators.ConcatArrays |
arrayOf(String fieldReference)
Creates new
ArrayOperators.ConcatArrays . |
protected static List<Field> |
asFields(String... fieldRefs) |
ArrayOperators.ConcatArrays |
concat(AggregationExpression expression) |
ArrayOperators.ConcatArrays |
concat(String arrayFieldReference) |
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() |
org.bson.Document |
toDocument(AggregationOperationContext context)
|
org.bson.Document |
toDocument(Object value,
AggregationOperationContext context) |
protected List<Object> |
values() |
protected String getMongoMethod()
public static ArrayOperators.ConcatArrays arrayOf(String fieldReference)
ArrayOperators.ConcatArrays
.fieldReference
- must not be null.public static ArrayOperators.ConcatArrays arrayOf(AggregationExpression expression)
ArrayOperators.ConcatArrays
.expression
- must not be null.public static ArrayOperators.ConcatArrays arrayOf(Collection<?> values)
ArrayOperators.ConcatArrays
.values
- The array members. Must not be null.ArrayOperators.ConcatArrays
.public ArrayOperators.ConcatArrays concat(String arrayFieldReference)
public ArrayOperators.ConcatArrays concat(AggregationExpression expression)
public org.bson.Document toDocument(AggregationOperationContext context)
AggregationExpression
toDocument
in interface AggregationExpression
public org.bson.Document toDocument(Object value, AggregationOperationContext context)
protected List<Object> append(Object value, org.springframework.data.mongodb.core.aggregation.AbstractAggregationExpression.Expand expandList)
protected <T> T get(int index)
T
- index
- protected <T> T get(Object key)
T
- key
- protected boolean contains(Object key)
key
- Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.