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
ConstructorsConstructorDescriptionGeohashHaversineFunction(org.apache.lucene.queries.function.ValueSource geoHash1, org.apache.lucene.queries.function.ValueSource geoHash2, double radius) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateWeight(Map<Object, Object> context, org.apache.lucene.search.IndexSearcher searcher) Deprecated.Deprecated.protected doubledistance(int doc, org.apache.lucene.queries.function.FunctionValues gh1DV, org.apache.lucene.queries.function.FunctionValues gh2DV) Deprecated.booleanDeprecated.org.apache.lucene.queries.function.FunctionValuesDeprecated.inthashCode()Deprecated.protected Stringname()Deprecated.Methods inherited from class org.apache.lucene.queries.function.ValueSource
asDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toString
-
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
Deprecated. -
getValues
public org.apache.lucene.queries.function.FunctionValues getValues(Map<Object, Object> context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOExceptionDeprecated.- Specified by:
getValuesin classorg.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 IOExceptionDeprecated.- Overrides:
createWeightin classorg.apache.lucene.queries.function.ValueSource- Throws:
IOException
-
equals
Deprecated.- Specified by:
equalsin classorg.apache.lucene.queries.function.ValueSource
-
hashCode
public int hashCode()Deprecated.- Specified by:
hashCodein classorg.apache.lucene.queries.function.ValueSource
-
description
Deprecated.- Specified by:
descriptionin classorg.apache.lucene.queries.function.ValueSource
-