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
A simple float function with a single argument
-
Field Summary
Fields inherited from class org.apache.lucene.queries.function.valuesource.SingleFunction
source -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract floatfunc(int doc, FunctionValues vals) getValues(Map context, LeafReaderContext readerContext) Gets the values for this reader and the context that was previously passed to createWeight().Methods inherited from class org.apache.lucene.queries.function.valuesource.SingleFunction
createWeight, description, equals, hashCode, nameMethods inherited from class org.apache.lucene.queries.function.ValueSource
asDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toString
-
Constructor Details
-
SimpleFloatFunction
-
-
Method Details
-
func
- Throws:
IOException
-
getValues
Description copied from class:ValueSourceGets the values for this reader and the context that was previously passed to createWeight(). The values must be consumed in a forward docID manner, and you must call this method again to iterate through the values again.- Specified by:
getValuesin classValueSource- Throws:
IOException
-