public class GeohashHaversineFunction
extends org.apache.lucene.queries.function.ValueSource
for more details on the implementation| Constructor and Description |
|---|
GeohashHaversineFunction(org.apache.lucene.queries.function.ValueSource geoHash1,
org.apache.lucene.queries.function.ValueSource geoHash2,
double radius) |
| Modifier and Type | Method and Description |
|---|---|
void |
createWeight(Map context,
org.apache.lucene.search.IndexSearcher searcher) |
String |
description() |
protected double |
distance(int doc,
org.apache.lucene.queries.function.FunctionValues gh1DV,
org.apache.lucene.queries.function.FunctionValues gh2DV) |
boolean |
equals(Object o) |
org.apache.lucene.queries.function.FunctionValues |
getValues(Map context,
org.apache.lucene.index.AtomicReaderContext readerContext) |
int |
hashCode() |
protected String |
name() |
public GeohashHaversineFunction(org.apache.lucene.queries.function.ValueSource geoHash1,
org.apache.lucene.queries.function.ValueSource geoHash2,
double radius)
protected String name()
public org.apache.lucene.queries.function.FunctionValues getValues(Map context, org.apache.lucene.index.AtomicReaderContext readerContext) throws IOException
getValues in class org.apache.lucene.queries.function.ValueSourceIOExceptionprotected double distance(int doc,
org.apache.lucene.queries.function.FunctionValues gh1DV,
org.apache.lucene.queries.function.FunctionValues gh2DV)
public void createWeight(Map context, org.apache.lucene.search.IndexSearcher searcher) throws IOException
createWeight in class org.apache.lucene.queries.function.ValueSourceIOExceptionpublic boolean equals(Object o)
equals in class org.apache.lucene.queries.function.ValueSourcepublic int hashCode()
hashCode in class org.apache.lucene.queries.function.ValueSourcepublic String description()
description in class org.apache.lucene.queries.function.ValueSourceCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.