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

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

public class StringDistanceFunction
extends ValueSource


Field Summary
protected  StringDistance dist
           
protected  ValueSource str1
           
protected  ValueSource str2
           
 
Constructor Summary
StringDistanceFunction(ValueSource str1, ValueSource str2, StringDistance measure)
           
 
Method Summary
 String description()
           
 boolean equals(Object o)
           
 FunctionValues getValues(Map context, AtomicReaderContext readerContext)
           
 int hashCode()
           
 
Methods inherited from class org.apache.lucene.queries.function.ValueSource
createWeight, getSortField, newContext, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

str1

protected ValueSource str1

str2

protected ValueSource str2

dist

protected StringDistance dist
Constructor Detail

StringDistanceFunction

public StringDistanceFunction(ValueSource str1,
                              ValueSource str2,
                              StringDistance measure)
Method Detail

getValues

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

description

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

equals

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

hashCode

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


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