Class AbstractElasticsearchValueFieldSearchQueryElementFactory<T,F>
- java.lang.Object
-
- org.hibernate.search.backend.elasticsearch.search.common.impl.AbstractElasticsearchValueFieldSearchQueryElementFactory<T,F>
-
- All Implemented Interfaces:
SearchQueryElementFactory<T,ElasticsearchSearchIndexScope<?>,ElasticsearchSearchIndexValueFieldContext<F>>
- Direct Known Subclasses:
AbstractElasticsearchCodecAwareSearchQueryElementFactory,ElasticsearchDistanceSort.Factory,ElasticsearchDistanceToFieldProjection.Factory,ElasticsearchExistsPredicate.Factory,ElasticsearchFieldHighlightProjection.Factory,ElasticsearchGeoPointSpatialWithinPolygonPredicate.Factory,ElasticsearchSimpleQueryStringPredicateBuilderFieldState.Factory,ElasticsearchTextPhrasePredicate.Factory,ElasticsearchTextRegexpPredicate.Factory,ElasticsearchTextWildcardPredicate.Factory
public abstract class AbstractElasticsearchValueFieldSearchQueryElementFactory<T,F> extends Object implements SearchQueryElementFactory<T,ElasticsearchSearchIndexScope<?>,ElasticsearchSearchIndexValueFieldContext<F>>
-
-
Constructor Summary
Constructors Constructor Description AbstractElasticsearchValueFieldSearchQueryElementFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidcheckCompatibleWith(SearchQueryElementFactory<?,?,?> other)Checks whether this factory and the given factory can be used interchangeably.abstract Tcreate(ElasticsearchSearchIndexScope<?> scope, ElasticsearchSearchIndexValueFieldContext<F> field)
-
-
-
Method Detail
-
create
public abstract T create(ElasticsearchSearchIndexScope<?> scope, ElasticsearchSearchIndexValueFieldContext<F> field)
- Specified by:
createin interfaceSearchQueryElementFactory<T,ElasticsearchSearchIndexScope<?>,ElasticsearchSearchIndexValueFieldContext<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
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<T,ElasticsearchSearchIndexScope<?>,ElasticsearchSearchIndexValueFieldContext<F>>- Parameters:
other- Another factory.
-
-