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
ADoubleMultiValuesToSingleValuesSourcethat 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, nestedDocsProvider
-
-
Constructor Summary
Constructors Constructor Description GeoPointDistanceMultiValuesToSingleValuesSource(String field, MultiValueMode mode, NestedDocsProvider nestedDocsProvider, GeoPoint center)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)org.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)booleanneedsScores()org.apache.lucene.search.DoubleValuesSourcerewrite(org.apache.lucene.search.IndexSearcher searcher)StringtoString()-
Methods inherited from class org.hibernate.search.backend.lucene.lowlevel.docvalues.impl.DoubleMultiValuesToSingleValuesSource
fromDoubleField, fromFloatField, getValues, select, select
-
-
-
-
Constructor Detail
-
GeoPointDistanceMultiValuesToSingleValuesSource
public GeoPointDistanceMultiValuesToSingleValuesSource(String field, MultiValueMode mode, NestedDocsProvider nestedDocsProvider, GeoPoint center)
-
-
Method Detail
-
toString
public String toString()
- Specified by:
toStringin classorg.apache.lucene.search.DoubleValuesSource
-
equals
public boolean equals(Object o)
- 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
-
-