Interface CompositeAggregationFrom2AsStep<V1,V2>
- Type Parameters:
V1- The type of values returned by the first inner aggregation.V2- The type of values returned by the second inner aggregation.
- All Superinterfaces:
CompositeAggregationFromAsStep
@Incubating
public interface CompositeAggregationFrom2AsStep<V1,V2>
extends CompositeAggregationFromAsStep
The step in a "multi-step" composite aggregation definition
where 2 inner aggregations have been defined
and the result of the composite aggregation can be defined.
-
Method Summary
Modifier and TypeMethodDescription<V> AggregationFinalStep<V> as(BiFunction<V1, V2, V> transformer) Defines the result of the composite aggregation as the result of applying the given function to the two inner aggregations defined so far.Methods inherited from interface org.hibernate.search.engine.search.aggregation.dsl.CompositeAggregationFromAsStep
asArray, asArray, asList, asList
-
Method Details
-
as
Defines the result of the composite aggregation as the result of applying the given function to the two inner aggregations defined so far.- Type Parameters:
V- The type of values returned by the transformer.- Parameters:
transformer- A function to transform the values of inner aggregations defined so far.- Returns:
- The next DSL step.
-