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.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Specified by:
      toString in class org.apache.lucene.search.DoubleValuesSource
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class DoubleMultiValuesToSingleValuesSource
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DoubleMultiValuesToSingleValuesSource
    • needsScores

      public boolean needsScores()
      Specified by:
      needsScores in class org.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:
      explain in class org.apache.lucene.search.DoubleValuesSource
      Throws:
      IOException
    • rewrite

      public org.apache.lucene.search.DoubleValuesSource rewrite(org.apache.lucene.search.IndexSearcher searcher) throws IOException
      Specified by:
      rewrite in class org.apache.lucene.search.DoubleValuesSource
      Throws:
      IOException
    • getSortedNumericDoubleDocValues

      protected GeoPointDistanceDocValues getSortedNumericDoubleDocValues(org.apache.lucene.index.LeafReaderContext ctx) throws IOException
      Specified by:
      getSortedNumericDoubleDocValues in class DoubleMultiValuesToSingleValuesSource
      Throws:
      IOException