Interface CompositeAggregationFromAsStep
- All Known Subinterfaces:
CompositeAggregationFrom1AsStep<V1>,CompositeAggregationFrom2AsStep<V1,,V2> CompositeAggregationFrom3AsStep<V1,V2, V3>
@Incubating
public interface CompositeAggregationFromAsStep
The step in a "multi-step" composite aggregation definition
where one or more inner aggregations have been defined
and the result of the composite aggregation can be defined.
-
Method Summary
Modifier and TypeMethodDescriptionasArray()Defines the result of the composite aggregation as an object array that will contain the results of inner aggregations defined so far, in order.<V> AggregationFinalStep<V> Defines the result of the composite aggregation as the result of applying the given function to an object array containing the results of inner aggregations defined so far, in order.asList()Defines the result of the composite aggregation as aListthat will contain the results of inner aggregations defined so far, in order.<V> AggregationFinalStep<V> Defines the result of the composite aggregation as the result of applying the given function to aListcontaining the results of inner aggregations defined so far, in order.
-
Method Details
-
asList
AggregationFinalStep<List<?>> asList()Defines the result of the composite aggregation as aListthat will contain the results of inner aggregations defined so far, in order.- Returns:
- The next DSL step.
-
asList
Defines the result of the composite aggregation as the result of applying the given function to aListcontaining the results of inner aggregations defined so far, in order.- Type Parameters:
V- The type of values returned by the transformer.- Parameters:
transformer- A function to transform the values of inner aggregations added so far.- Returns:
- The next DSL step.
-
asArray
AggregationFinalStep<Object[]> asArray()Defines the result of the composite aggregation as an object array that will contain the results of inner aggregations defined so far, in order.- Returns:
- The next DSL step.
-
asArray
Defines the result of the composite aggregation as the result of applying the given function to an object array containing the results of inner aggregations defined so far, in order.- Type Parameters:
V- The type of values returned by the transformer.- Parameters:
transformer- A function to transform the values of inner aggregations added so far.- Returns:
- The next DSL step.
-