Class HaversineConstFunction
- java.lang.Object
-
- org.apache.lucene.queries.function.ValueSource
-
- org.apache.solr.search.function.distance.HaversineConstFunction
-
public class HaversineConstFunction extends org.apache.lucene.queries.function.ValueSource
Haversine function with one point constant
-
-
Constructor Summary
Constructors Constructor Description HaversineConstFunction(double latCenter, double lonCenter, org.apache.lucene.queries.function.valuesource.VectorValueSource vs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createWeight(Map<Object,Object> context, org.apache.lucene.search.IndexSearcher searcher)
String
description()
boolean
equals(Object o)
org.apache.lucene.queries.function.FunctionValues
getValues(Map<Object,Object> context, org.apache.lucene.index.LeafReaderContext readerContext)
int
hashCode()
protected String
name()
-
-
-
Method Detail
-
name
protected String name()
-
getValues
public org.apache.lucene.queries.function.FunctionValues getValues(Map<Object,Object> context, org.apache.lucene.index.LeafReaderContext readerContext) throws IOException
- Specified by:
getValues
in classorg.apache.lucene.queries.function.ValueSource
- Throws:
IOException
-
createWeight
public void createWeight(Map<Object,Object> context, org.apache.lucene.search.IndexSearcher searcher) throws IOException
- Overrides:
createWeight
in classorg.apache.lucene.queries.function.ValueSource
- Throws:
IOException
-
equals
public boolean equals(Object o)
- Specified by:
equals
in classorg.apache.lucene.queries.function.ValueSource
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classorg.apache.lucene.queries.function.ValueSource
-
description
public String description()
- Specified by:
description
in classorg.apache.lucene.queries.function.ValueSource
-
-