Class LuceneGeoPointDistanceSort.Factory
java.lang.Object
org.hibernate.search.backend.lucene.search.common.impl.AbstractLuceneValueFieldSearchQueryElementFactory<DistanceSortBuilder,GeoPoint>
org.hibernate.search.backend.lucene.types.sort.impl.LuceneGeoPointDistanceSort.Factory
- All Implemented Interfaces:
SearchQueryElementFactory<DistanceSortBuilder,LuceneSearchIndexScope<?>, LuceneSearchIndexValueFieldContext<GeoPoint>>
- Enclosing class:
- LuceneGeoPointDistanceSort
public static class LuceneGeoPointDistanceSort.Factory
extends AbstractLuceneValueFieldSearchQueryElementFactory<DistanceSortBuilder,GeoPoint>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(LuceneSearchIndexScope<?> scope, LuceneSearchIndexValueFieldContext<GeoPoint> field) Methods inherited from class org.hibernate.search.backend.lucene.search.common.impl.AbstractLuceneValueFieldSearchQueryElementFactory
checkCompatibleWith
-
Constructor Details
-
Factory
public Factory()
-
-
Method Details
-
create
public DistanceSortBuilder create(LuceneSearchIndexScope<?> scope, LuceneSearchIndexValueFieldContext<GeoPoint> field) - Specified by:
createin interfaceSearchQueryElementFactory<DistanceSortBuilder,LuceneSearchIndexScope<?>, LuceneSearchIndexValueFieldContext<GeoPoint>> - Specified by:
createin classAbstractLuceneValueFieldSearchQueryElementFactory<DistanceSortBuilder,GeoPoint> - 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).
-