Class LuceneNamedPredicate.Factory
java.lang.Object
org.hibernate.search.backend.lucene.search.common.impl.AbstractLuceneCompositeNodeSearchQueryElementFactory<NamedPredicateBuilder>
org.hibernate.search.backend.lucene.search.predicate.impl.LuceneNamedPredicate.Factory
- All Implemented Interfaces:
SearchQueryElementFactory<NamedPredicateBuilder,LuceneSearchIndexScope<?>, LuceneSearchIndexCompositeNodeContext>
- Enclosing class:
- LuceneNamedPredicate
public static class LuceneNamedPredicate.Factory
extends AbstractLuceneCompositeNodeSearchQueryElementFactory<NamedPredicateBuilder>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCompatibleWith(SearchQueryElementFactory<?, ?, ?> other) Checks whether this factory and the given factory can be used interchangeably.create(LuceneSearchIndexScope<?> scope, LuceneSearchIndexCompositeNodeContext node)
-
Constructor Details
-
Factory
-
-
Method Details
-
checkCompatibleWith
Description copied from interface:SearchQueryElementFactoryChecks whether this factory and the given factory can be used interchangeably.- Specified by:
checkCompatibleWithin interfaceSearchQueryElementFactory<NamedPredicateBuilder,LuceneSearchIndexScope<?>, LuceneSearchIndexCompositeNodeContext> - Overrides:
checkCompatibleWithin classAbstractLuceneCompositeNodeSearchQueryElementFactory<NamedPredicateBuilder>- Parameters:
other- Another factory.
-
create
public NamedPredicateBuilder create(LuceneSearchIndexScope<?> scope, LuceneSearchIndexCompositeNodeContext node) - 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).
-