Class GeohashFunction


  • @Deprecated
    public class GeohashFunction
    extends org.apache.lucene.queries.function.ValueSource
    Deprecated.
    Takes in a latitude and longitude ValueSource and produces a GeoHash.

    Ex: geohash(lat, lon)

    Note, there is no reciprocal function for this.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.apache.lucene.queries.function.ValueSource lat
      Deprecated.
       
      protected org.apache.lucene.queries.function.ValueSource lon
      Deprecated.
       
    • Constructor Summary

      Constructors 
      Constructor Description
      GeohashFunction​(org.apache.lucene.queries.function.ValueSource lat, org.apache.lucene.queries.function.ValueSource lon)
      Deprecated.
       
    • Field Detail

      • lat

        protected org.apache.lucene.queries.function.ValueSource lat
        Deprecated.
      • lon

        protected org.apache.lucene.queries.function.ValueSource lon
        Deprecated.
    • Constructor Detail

      • GeohashFunction

        public GeohashFunction​(org.apache.lucene.queries.function.ValueSource lat,
                               org.apache.lucene.queries.function.ValueSource lon)
        Deprecated.
    • Method Detail

      • 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
      • 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