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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchPredicateDslContext<SC>
rescope(SC newScope)
static <SC extends SearchPredicateIndexScope<?>>
SearchPredicateDslContext<SC>root(SC scope)
SC
scope()
-
-
-
Method Detail
-
root
public static <SC extends SearchPredicateIndexScope<?>> SearchPredicateDslContext<SC> root(SC scope)
-
scope
public SC scope()
- Returns:
- The search scope.
-
rescope
public SearchPredicateDslContext<SC> rescope(SC newScope)
- 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.
-
-