Class SearchProjectionDslContext<SC extends SearchProjectionIndexScope<?>>
- java.lang.Object
-
- org.hibernate.search.engine.search.projection.dsl.spi.SearchProjectionDslContext<SC>
-
- Type Parameters:
SC
- The type of the backend-specific search scope.
public final class SearchProjectionDslContext<SC extends SearchProjectionIndexScope<?>> extends Object
Represents the current context in the search DSL, including in particular the search scope and the projection builder factory.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchProjectionDslContext<SC>
rescope(SC newScope)
static <SC extends SearchProjectionIndexScope<?>>
SearchProjectionDslContext<SC>root(SC scope)
SC
scope()
-
-
-
Method Detail
-
root
public static <SC extends SearchProjectionIndexScope<?>> SearchProjectionDslContext<SC> root(SC scope)
-
scope
public SC scope()
- Returns:
- The search scope. Will always return the exact same instance for a given DSL context.
-
rescope
public SearchProjectionDslContext<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.
-
-