public static class ArrayOperators.ArrayOperatorFactory extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ArrayOperators.ArrayOperatorFactory.ReduceInitialValueBuilder |
| Constructor and Description |
|---|
ArrayOperatorFactory(AggregationExpression expression)
Creates new
ArrayOperators.ArrayOperatorFactory for given AggregationExpression. |
ArrayOperatorFactory(String fieldReference)
Creates new
ArrayOperators.ArrayOperatorFactory for given fieldReference. |
| Modifier and Type | Method and Description |
|---|---|
ArrayOperators.ConcatArrays |
concat(AggregationExpression expression)
Creates new
AggregationExpression that takes the associated array and concats the array resulting form
the given expression to it. |
ArrayOperators.ConcatArrays |
concat(String arrayFieldReference)
Creates new
AggregationExpression that takes the associated array and concats the given
arrayFieldReference to it. |
ArrayOperators.In |
containsValue(Object value)
Creates new
AggregationExpression that returns a boolean indicating whether a specified value is in the
associated array. |
ArrayOperators.ArrayElemAt |
elementAt(AggregationExpression expression)
Creates new
AggregationExpression that takes the associated array and returns the element at the position
resulting form the given expression. |
ArrayOperators.ArrayElemAt |
elementAt(int position)
Creates new
AggregationExpression that takes the associated array and returns the element at the
specified array position. |
ArrayOperators.ArrayElemAt |
elementAt(String fieldReference)
Creates new
AggregationExpression that takes the associated array and returns the element at the position
defined by the referenced field. |
ArrayOperators.Filter.AsBuilder |
filter()
Creates new
AggregationExpression that takes the associated array and selects a subset of the array to
return based on the specified condition. |
ArrayOperators.IndexOfArray |
indexOf(Object value)
Creates new
AggregationExpression that searches the associated array for an occurrence of a specified
value and returns the array index (zero-based) of the first occurrence. |
ArrayOperators.IsArray |
isArray()
Creates new
AggregationExpression that takes the associated array and an check if its an array. |
ArrayOperators.Size |
length()
Creates new
AggregationExpression that takes the associated array and retrieves its length. |
ArrayOperators.ArrayOperatorFactory.ReduceInitialValueBuilder |
reduce(AggregationExpression expression)
Start creating new
AggregationExpression that applies an AggregationExpression to each element in
an array and combines them into a single value. |
ArrayOperators.ArrayOperatorFactory.ReduceInitialValueBuilder |
reduce(ArrayOperators.Reduce.PropertyExpression... expressions)
Start creating new
AggregationExpression that applies an AggregationExpression to each element in
an array and combines them into a single value. |
ArrayOperators.ReverseArray |
reverse()
Creates new
AggregationExpression that returns an array with the elements in reverse order. |
ArrayOperators.Slice |
slice()
Creates new
AggregationExpression that takes the associated array and selects a subset from it. |
ArrayOperators.Zip |
zipWith(Object... arrays)
Creates new
AggregationExpression that transposes an array of input arrays so that the first element of
the output array would be an array containing, the first element of the first input array, the first element of
the second input array, etc. |
public ArrayOperatorFactory(String fieldReference)
ArrayOperators.ArrayOperatorFactory for given fieldReference.fieldReference - must not be null.public ArrayOperatorFactory(AggregationExpression expression)
ArrayOperators.ArrayOperatorFactory for given AggregationExpression.expression - must not be null.public ArrayOperators.ArrayElemAt elementAt(int position)
AggregationExpression that takes the associated array and returns the element at the
specified array position.position - public ArrayOperators.ArrayElemAt elementAt(AggregationExpression expression)
AggregationExpression that takes the associated array and returns the element at the position
resulting form the given expression.expression - must not be null.public ArrayOperators.ArrayElemAt elementAt(String fieldReference)
AggregationExpression that takes the associated array and returns the element at the position
defined by the referenced field.fieldReference - must not be null.public ArrayOperators.ConcatArrays concat(String arrayFieldReference)
AggregationExpression that takes the associated array and concats the given
arrayFieldReference to it.arrayFieldReference - must not be null.public ArrayOperators.ConcatArrays concat(AggregationExpression expression)
AggregationExpression that takes the associated array and concats the array resulting form
the given expression to it.expression - must not be null.public ArrayOperators.Filter.AsBuilder filter()
AggregationExpression that takes the associated array and selects a subset of the array to
return based on the specified condition.public ArrayOperators.IsArray isArray()
AggregationExpression that takes the associated array and an check if its an array.public ArrayOperators.Size length()
AggregationExpression that takes the associated array and retrieves its length.public ArrayOperators.Slice slice()
AggregationExpression that takes the associated array and selects a subset from it.public ArrayOperators.IndexOfArray indexOf(Object value)
AggregationExpression that searches the associated array for an occurrence of a specified
value and returns the array index (zero-based) of the first occurrence.value - must not be null.public ArrayOperators.ReverseArray reverse()
AggregationExpression that returns an array with the elements in reverse order.public ArrayOperators.ArrayOperatorFactory.ReduceInitialValueBuilder reduce(AggregationExpression expression)
AggregationExpression that applies an AggregationExpression to each element in
an array and combines them into a single value.expression - must not be null.public ArrayOperators.ArrayOperatorFactory.ReduceInitialValueBuilder reduce(ArrayOperators.Reduce.PropertyExpression... expressions)
AggregationExpression that applies an AggregationExpression to each element in
an array and combines them into a single value.expressions - public ArrayOperators.Zip zipWith(Object... arrays)
AggregationExpression that transposes an array of input arrays so that the first element of
the output array would be an array containing, the first element of the first input array, the first element of
the second input array, etc.arrays - must not be null.public ArrayOperators.In containsValue(Object value)
AggregationExpression that returns a boolean indicating whether a specified value is in the
associated array.value - must not be null.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.