public class HaversineFunction
extends org.apache.lucene.queries.function.ValueSource
Constructor and Description |
---|
HaversineFunction(org.apache.lucene.queries.function.valuesource.MultiValueSource p1,
org.apache.lucene.queries.function.valuesource.MultiValueSource p2,
double radius) |
HaversineFunction(org.apache.lucene.queries.function.valuesource.MultiValueSource p1,
org.apache.lucene.queries.function.valuesource.MultiValueSource p2,
double radius,
boolean convertToRads) |
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 p1DV,
org.apache.lucene.queries.function.FunctionValues p2DV) |
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 HaversineFunction(org.apache.lucene.queries.function.valuesource.MultiValueSource p1, org.apache.lucene.queries.function.valuesource.MultiValueSource p2, double radius)
public HaversineFunction(org.apache.lucene.queries.function.valuesource.MultiValueSource p1, org.apache.lucene.queries.function.valuesource.MultiValueSource p2, double radius, boolean convertToRads)
protected String name()
protected double distance(int doc, org.apache.lucene.queries.function.FunctionValues p1DV, org.apache.lucene.queries.function.FunctionValues p2DV)
doc
- The doc to scorepublic 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.ValueSource
IOException
public void createWeight(Map context, org.apache.lucene.search.IndexSearcher searcher) throws IOException
createWeight
in class org.apache.lucene.queries.function.ValueSource
IOException
public boolean equals(Object o)
equals
in class org.apache.lucene.queries.function.ValueSource
public int hashCode()
hashCode
in class org.apache.lucene.queries.function.ValueSource
public String description()
description
in class org.apache.lucene.queries.function.ValueSource
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.