Interface SearchAggregationDslContext<F extends SearchAggregationBuilderFactory<?>,PDF extends SearchPredicateFactory>
-
- Type Parameters:
F
- The type of aggregation factory.PDF
- The type of factory used to create predicates inSortFilterStep.filter(Function)
.
public interface SearchAggregationDslContext<F extends SearchAggregationBuilderFactory<?>,PDF extends SearchPredicateFactory>
Represents the current context in the search DSL, including in particular the aggregation builder factory.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description F
builderFactory()
PDF
predicateFactory()
<PDF2 extends SearchPredicateFactory>
SearchAggregationDslContext<F,PDF2>withExtendedPredicateFactory(SearchPredicateFactoryExtension<PDF2> extension)
-
-
-
Method Detail
-
builderFactory
F builderFactory()
- Returns:
- The aggregation builder factory. Will always return the exact same instance.
-
predicateFactory
PDF predicateFactory()
- Returns:
- The predicate factory. Will always return the exact same instance.
-
withExtendedPredicateFactory
<PDF2 extends SearchPredicateFactory> SearchAggregationDslContext<F,PDF2> withExtendedPredicateFactory(SearchPredicateFactoryExtension<PDF2> extension)
- Type Parameters:
PDF2
- The type of the new predicate factory.- Parameters:
extension
- The extension to apply to the predicate factory.- Returns:
- A new context, identical to
this
except for the predicate factory which is extended.
-
-