org.apache.lucene.queries.function.valuesource
Class SimpleFloatFunction
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.queries.function.valuesource.SingleFunction
org.apache.lucene.queries.function.valuesource.SimpleFloatFunction
public abstract class SimpleFloatFunction
- extends SingleFunction
A simple float function with a single argument
SimpleFloatFunction
public SimpleFloatFunction(ValueSource source)
func
protected abstract float func(int doc,
FunctionValues vals)
getValues
public FunctionValues getValues(Map context,
AtomicReaderContext readerContext)
throws IOException
- Description copied from class:
ValueSource
- Gets the values for this reader and the context that was previously
passed to createWeight()
- Specified by:
getValues
in class ValueSource
- Throws:
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.