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 Constructor Description Factory(PredicateDefinition definition, String predicateName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckCompatibleWith(SearchQueryElementFactory<?,?,?> other)Checks whether this factory and the given factory can be used interchangeably.NamedPredicateBuildercreate(LuceneSearchIndexScope<?> scope, LuceneSearchIndexCompositeNodeContext node)
-
-
-
Constructor Detail
-
Factory
public Factory(PredicateDefinition definition, String predicateName)
-
-
Method Detail
-
checkCompatibleWith
public void checkCompatibleWith(SearchQueryElementFactory<?,?,?> other)
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).
-
-