Interface SearchQueryElementFactory<T,SC,N>
- Type Parameters:
T- The type returned bycreate(Object, Object). Can be the type of the query element, or an intermediary builder type.SC- The type of the backend-specific search scope.N- The type representing the target of the query element.
public interface SearchQueryElementFactory<T,SC,N>
A factory for query elements (predicates, sorts, projections, aggregations, ...) targeting index nodes
(root, value fields, object fields).
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCompatibleWith(SearchQueryElementFactory<?, ?, ?> other) Checks whether this factory and the given factory can be used interchangeably.
-
Method Details
-
create
- Parameters:
scope- The search context, i.e. information regarding the targeted indexes.node- The targeted index node.- Returns:
- The query element, or an intermediary builder (depending on the factory type).
-
checkCompatibleWith
Checks whether this factory and the given factory can be used interchangeably.- Parameters:
other- Another factory.- Throws:
org.hibernate.search.util.common.SearchException- if the two factories cannot be used interchangeably.
-