public class StringDistanceFunction extends ValueSource
Modifier and Type | Field and Description |
---|---|
protected StringDistance |
dist |
protected ValueSource |
str1 |
protected ValueSource |
str2 |
Constructor and Description |
---|
StringDistanceFunction(ValueSource str1,
ValueSource str2,
StringDistance measure) |
Modifier and Type | Method and Description |
---|---|
String |
description() |
boolean |
equals(Object o) |
FunctionValues |
getValues(Map context,
AtomicReaderContext readerContext) |
int |
hashCode() |
createWeight, getSortField, newContext, toString
protected ValueSource str1
protected ValueSource str2
protected StringDistance dist
public StringDistanceFunction(ValueSource str1, ValueSource str2, StringDistance measure)
public FunctionValues getValues(Map context, AtomicReaderContext readerContext) throws IOException
getValues
in class ValueSource
IOException
public String description()
description
in class ValueSource
public boolean equals(Object o)
equals
in class ValueSource
public int hashCode()
hashCode
in class ValueSource
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.