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
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract float
func
(int doc, FunctionValues vals) getValues
(Map<Object, Object> 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, name
Methods inherited from class org.apache.lucene.queries.function.ValueSource
asDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toString
-
Constructor Details
-
SimpleFloatFunction
-
-
Method Details
-
func
- Throws:
IOException
-
getValues
public FunctionValues getValues(Map<Object, Object> context, LeafReaderContext readerContext) throws IOExceptionDescription copied from class:ValueSource
Gets 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:
getValues
in classValueSource
- Throws:
IOException
-