Class SearchAggregationDslContext<SR,SC extends SearchAggregationIndexScope<?>,PDF extends SearchPredicateFactory<SR>>
java.lang.Object
org.hibernate.search.engine.search.aggregation.dsl.spi.SearchAggregationDslContext<SR,SC,PDF>
- Type Parameters:
SR
- Scope root type. *SC
- The type of the backend-specific search scope.PDF
- The type of factory used to create predicates inSortFilterStep.filter(Function)
.
public class SearchAggregationDslContext<SR,SC extends SearchAggregationIndexScope<?>,PDF extends SearchPredicateFactory<SR>>
extends Object
Represents the current context in the search DSL,
including in particular the search scope and the aggregation builder factory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <SR,
SC extends SearchAggregationIndexScope<?>, PDF extends SearchPredicateFactory<SR>>
SearchAggregationDslContext<SR, SC, PDF> root
(SC scope, PDF predicateFactory) scope()
-
Method Details
-
root
public static <SR,SC extends SearchAggregationIndexScope<?>, SearchAggregationDslContext<SR,PDF extends SearchPredicateFactory<SR>> SC, rootPDF> (SC scope, PDF predicateFactory) -
scope
- Returns:
- The search scope.
-
rescope
- Parameters:
newScope
- The new scope for the new DSL context.newPredicateFactory
- The new predicate factory for the new DSL context.- Returns:
- A copy of this DSL context with its scope and predicate factory replaced with the given ones.
-
predicateFactory
- Returns:
- The predicate factory. Will always return the exact same instance.
-