Class GeohashHaversineFunction

java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.solr.search.function.distance.GeohashHaversineFunction

@Deprecated public class GeohashHaversineFunction extends org.apache.lucene.queries.function.ValueSource
Deprecated.
Calculate the Haversine distance between two geo hash codes.

Ex: ghhsin(ValueSource, ValueSource, radius)

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    GeohashHaversineFunction(org.apache.lucene.queries.function.ValueSource geoHash1, org.apache.lucene.queries.function.ValueSource geoHash2, double radius)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createWeight(Map<Object,Object> context, org.apache.lucene.search.IndexSearcher searcher)
    Deprecated.
     
    Deprecated.
     
    protected double
    distance(int doc, org.apache.lucene.queries.function.FunctionValues gh1DV, org.apache.lucene.queries.function.FunctionValues gh2DV)
    Deprecated.
     
    boolean
    Deprecated.
     
    org.apache.lucene.queries.function.FunctionValues
    getValues(Map<Object,Object> context, org.apache.lucene.index.LeafReaderContext readerContext)
    Deprecated.
     
    int
    Deprecated.
     
    protected String
    Deprecated.
     

    Methods inherited from class org.apache.lucene.queries.function.ValueSource

    asDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • GeohashHaversineFunction

      public GeohashHaversineFunction(org.apache.lucene.queries.function.ValueSource geoHash1, org.apache.lucene.queries.function.ValueSource geoHash2, double radius)
      Deprecated.
  • Method Details

    • name

      protected String name()
      Deprecated.
    • getValues

      public org.apache.lucene.queries.function.FunctionValues getValues(Map<Object,Object> context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOException
      Deprecated.
      Specified by:
      getValues in class org.apache.lucene.queries.function.ValueSource
      Throws:
      IOException
    • distance

      protected double distance(int doc, org.apache.lucene.queries.function.FunctionValues gh1DV, org.apache.lucene.queries.function.FunctionValues gh2DV) throws IOException
      Deprecated.
      Throws:
      IOException
    • createWeight

      public void createWeight(Map<Object,Object> context, org.apache.lucene.search.IndexSearcher searcher) throws IOException
      Deprecated.
      Overrides:
      createWeight in class org.apache.lucene.queries.function.ValueSource
      Throws:
      IOException
    • equals

      public boolean equals(Object o)
      Deprecated.
      Specified by:
      equals in class org.apache.lucene.queries.function.ValueSource
    • hashCode

      public int hashCode()
      Deprecated.
      Specified by:
      hashCode in class org.apache.lucene.queries.function.ValueSource
    • description

      public String description()
      Deprecated.
      Specified by:
      description in class org.apache.lucene.queries.function.ValueSource