Interface AggregationFilterStep<SR,S,PDF extends TypedSearchPredicateFactory<SR>>
- Type Parameters:
SR
- Scope root type.S
- The "self" type (the actual exposed type of this step)PDF
- The type of factory used to create predicates infilter(Function)
.
- All Known Subinterfaces:
AvgAggregationOptionsStep<SR,
,S, PDF, F> CountAggregationOptionsStep<SR,
,S, PDF> CountDistinctAggregationOptionsStep<SR,
,S, PDF> MaxAggregationOptionsStep<SR,
,S, PDF, F> MinAggregationOptionsStep<SR,
,S, PDF, F> RangeAggregationOptionsStep<SR,
,S, PDF, F, A> RangeAggregationRangeMoreStep<SR,
,S, N, PDF, F> SumAggregationOptionsStep<SR,
,S, PDF, F> TermsAggregationOptionsStep<SR,
S, PDF, F, A>
public interface AggregationFilterStep<SR,S,PDF extends TypedSearchPredicateFactory<SR>>
The step in an aggregation definition where a filter can be set
to select nested objects from which values will be extracted for this aggregation.
-
Method Summary
Modifier and TypeMethodDescriptionfilter
(Function<? super PDF, ? extends PredicateFinalStep> clauseContributor) Filter nested objects from which values will be extracted for this aggregation.default S
filter
(PredicateFinalStep dslFinalStep) Filter nested objects from which values will be extracted for this aggregation.filter
(SearchPredicate searchPredicate) Filter nested objects from which values will be extracted for this aggregation.
-
Method Details
-
filter
Filter nested objects from which values will be extracted for this aggregation.The filter is based on a previously-built
SearchPredicate
.- Parameters:
searchPredicate
- The predicate that must match.- Returns:
this
, for method chaining.
-
filter
Filter nested objects from which values will be extracted for this aggregation.The filter is defined by the given function.
Best used with lambda expressions.
- Parameters:
clauseContributor
- A function that will use the factory passed in parameter to create a predicate, returning the final step in the predicate DSL. Should generally be a lambda expression.- Returns:
this
, for method chaining.
-
filter
Filter nested objects from which values will be extracted for this aggregation.The filter is based on an almost-built
SearchPredicate
.- Parameters:
dslFinalStep
- A final step in the predicate DSL allowing the retrieval of aSearchPredicate
.- Returns:
this
, for method chaining.
-