Class GeoPointDistanceMultiValuesToSingleValuesSource
java.lang.Object
org.apache.lucene.search.DoubleValuesSource
org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.DoubleMultiValuesToSingleValuesSource
org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.GeoPointDistanceMultiValuesToSingleValuesSource
- All Implemented Interfaces:
org.apache.lucene.search.SegmentCacheable
public class GeoPointDistanceMultiValuesToSingleValuesSource
extends DoubleMultiValuesToSingleValuesSource
A
DoubleMultiValuesToSingleValuesSource that wraps the distance between a GeoPoint field
and a given center.-
Field Summary
Fields inherited from class org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.DoubleMultiValuesToSingleValuesSource
mode, nestedDocsProviderFields inherited from class org.apache.lucene.search.DoubleValuesSource
SCORES -
Constructor Summary
ConstructorsConstructorDescriptionGeoPointDistanceMultiValuesToSingleValuesSource(String field, MultiValueMode mode, NestedDocsProvider nestedDocsProvider, GeoPoint center) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.lucene.search.Explanationexplain(org.apache.lucene.index.LeafReaderContext ctx, int docId, org.apache.lucene.search.Explanation scoreExplanation) protected GeoPointDistanceDocValuesgetSortedNumericDoubleDocValues(org.apache.lucene.index.LeafReaderContext ctx) inthashCode()booleanisCacheable(org.apache.lucene.index.LeafReaderContext ctx) booleanorg.apache.lucene.search.DoubleValuesSourcerewrite(org.apache.lucene.search.IndexSearcher searcher) toString()Methods inherited from class org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.DoubleMultiValuesToSingleValuesSource
fromDoubleField, fromFloatField, getValues, select, selectMethods inherited from class org.apache.lucene.search.DoubleValuesSource
constant, fromDoubleField, fromField, fromFloatField, fromIntField, fromLongField, fromQuery, fromScorer, getSortField, similarityToQueryVector, similarityToQueryVector, toLongValuesSource
-
Constructor Details
-
GeoPointDistanceMultiValuesToSingleValuesSource
public GeoPointDistanceMultiValuesToSingleValuesSource(String field, MultiValueMode mode, NestedDocsProvider nestedDocsProvider, GeoPoint center)
-
-
Method Details
-
toString
- Specified by:
toStringin classorg.apache.lucene.search.DoubleValuesSource
-
equals
- Overrides:
equalsin classDoubleMultiValuesToSingleValuesSource
-
hashCode
public int hashCode()- Overrides:
hashCodein classDoubleMultiValuesToSingleValuesSource
-
needsScores
public boolean needsScores()- Specified by:
needsScoresin classorg.apache.lucene.search.DoubleValuesSource
-
isCacheable
public boolean isCacheable(org.apache.lucene.index.LeafReaderContext ctx) -
explain
public org.apache.lucene.search.Explanation explain(org.apache.lucene.index.LeafReaderContext ctx, int docId, org.apache.lucene.search.Explanation scoreExplanation) throws IOException - Overrides:
explainin classorg.apache.lucene.search.DoubleValuesSource- Throws:
IOException
-
rewrite
public org.apache.lucene.search.DoubleValuesSource rewrite(org.apache.lucene.search.IndexSearcher searcher) throws IOException - Specified by:
rewritein classorg.apache.lucene.search.DoubleValuesSource- Throws:
IOException
-
getSortedNumericDoubleDocValues
protected GeoPointDistanceDocValues getSortedNumericDoubleDocValues(org.apache.lucene.index.LeafReaderContext ctx) throws IOException - Specified by:
getSortedNumericDoubleDocValuesin classDoubleMultiValuesToSingleValuesSource- Throws:
IOException
-