Class SearchPredicateDslContext<SC extends SearchPredicateIndexScope<?>>
java.lang.Object
org.hibernate.search.engine.search.predicate.dsl.spi.SearchPredicateDslContext<SC>
- Type Parameters:
SC
- The type of the backend-specific search scope.
public final class SearchPredicateDslContext<SC extends SearchPredicateIndexScope<?>>
extends Object
Represents the current context in the search DSL,
including in particular the search scope and the predicate builder factory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <SC extends SearchPredicateIndexScope<?>>
SearchPredicateDslContext<SC>root
(SC scope) scope()
-
Method Details
-
root
public static <SC extends SearchPredicateIndexScope<?>> SearchPredicateDslContext<SC> root(SC scope) -
scope
- Returns:
- The search scope.
-
rescope
- Parameters:
newScope
- The new scope for the new DSL context.- Returns:
- A copy of this DSL context with its scope and predicate factory replaced with the given ones.
-