org.apache.solr.search.function.distance
Class HaversineConstFunction

java.lang.Object
  extended by org.apache.lucene.queries.function.ValueSource
      extended by org.apache.solr.search.function.distance.HaversineConstFunction

public class HaversineConstFunction
extends ValueSource

Haversine function with one point constant


Field Summary
static ValueSourceParser parser
           
 
Constructor Summary
HaversineConstFunction(double latCenter, double lonCenter, VectorValueSource vs)
           
 
Method Summary
 void createWeight(Map context, IndexSearcher searcher)
           
 String description()
           
 boolean equals(Object o)
           
 FunctionValues getValues(Map context, AtomicReaderContext readerContext)
           
 int hashCode()
           
protected  String name()
           
 
Methods inherited from class org.apache.lucene.queries.function.ValueSource
getSortField, newContext, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

parser

public static ValueSourceParser parser
Constructor Detail

HaversineConstFunction

public HaversineConstFunction(double latCenter,
                              double lonCenter,
                              VectorValueSource vs)
Method Detail

name

protected String name()

getValues

public FunctionValues getValues(Map context,
                                AtomicReaderContext readerContext)
                         throws IOException
Specified by:
getValues in class ValueSource
Throws:
IOException

createWeight

public void createWeight(Map context,
                         IndexSearcher searcher)
                  throws IOException
Overrides:
createWeight in class ValueSource
Throws:
IOException

equals

public boolean equals(Object o)
Specified by:
equals in class ValueSource

hashCode

public int hashCode()
Specified by:
hashCode in class ValueSource

description

public String description()
Specified by:
description in class ValueSource


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.