Class AbstractLuceneValueFieldSearchQueryElementFactory<T,F>
java.lang.Object
org.hibernate.search.backend.lucene.search.common.impl.AbstractLuceneValueFieldSearchQueryElementFactory<T,F>
- All Implemented Interfaces:
SearchQueryElementFactory<T,LuceneSearchIndexScope<?>, LuceneSearchIndexValueFieldContext<F>>
- Direct Known Subclasses:
AbstractLuceneCodecAwareSearchQueryElementFactory,LuceneExistsPredicate.DefaultFactory,LuceneExistsPredicate.DocValuesOrNormsBasedFactory,LuceneFieldHighlightProjection.Factory,LuceneGeoPointDistanceSort.Factory,LuceneGeoPointSpatialWithinBoundingBoxPredicate.Factory,LuceneGeoPointSpatialWithinCirclePredicate.Factory,LuceneGeoPointSpatialWithinPolygonPredicate.Factory,LuceneKnnPredicate.ByteFactory,LuceneKnnPredicate.FloatFactory,LuceneTextPhrasePredicate.Factory,LuceneTextPrefixPredicate.Factory,LuceneTextRegexpPredicate.Factory,LuceneTextTermsAggregation.Factory,LuceneTextWildcardPredicate.Factory
public abstract class AbstractLuceneValueFieldSearchQueryElementFactory<T,F>
extends Object
implements SearchQueryElementFactory<T,LuceneSearchIndexScope<?>,LuceneSearchIndexValueFieldContext<F>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCompatibleWith(SearchQueryElementFactory<?, ?, ?> other) Checks whether this factory and the given factory can be used interchangeably.abstract Tcreate(LuceneSearchIndexScope<?> scope, LuceneSearchIndexValueFieldContext<F> field)
-
Constructor Details
-
AbstractLuceneValueFieldSearchQueryElementFactory
public AbstractLuceneValueFieldSearchQueryElementFactory()
-
-
Method Details
-
create
public abstract T create(LuceneSearchIndexScope<?> scope, LuceneSearchIndexValueFieldContext<F> field) - Specified by:
createin interfaceSearchQueryElementFactory<T,LuceneSearchIndexScope<?>, LuceneSearchIndexValueFieldContext<F>> - Parameters:
scope- The search context, i.e. information regarding the targeted indexes.field- The targeted index node.- Returns:
- The query element, or an intermediary builder (depending on the factory type).
-
checkCompatibleWith
Description copied from interface:SearchQueryElementFactoryChecks whether this factory and the given factory can be used interchangeably.- Specified by:
checkCompatibleWithin interfaceSearchQueryElementFactory<T,LuceneSearchIndexScope<?>, LuceneSearchIndexValueFieldContext<F>> - Parameters:
other- Another factory.
-