Class DivFloatFunction
java.lang.Object
org.apache.lucene.queries.function.ValueSource
org.apache.lucene.queries.function.valuesource.DualFloatFunction
org.apache.lucene.queries.function.valuesource.DivFloatFunction
Function to divide "a" by "b"
-
Field Summary
Fields inherited from class org.apache.lucene.queries.function.valuesource.DualFloatFunction
a, b
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected float
func
(int doc, FunctionValues aVals, FunctionValues bVals) protected String
name()
Methods inherited from class org.apache.lucene.queries.function.valuesource.DualFloatFunction
createWeight, description, equals, getValues, hashCode
Methods inherited from class org.apache.lucene.queries.function.ValueSource
asDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toString
-
Constructor Details
-
DivFloatFunction
- Parameters:
a
- the numerator.b
- the denominator.
-
-
Method Details
-
name
- Specified by:
name
in classDualFloatFunction
-
func
- Specified by:
func
in classDualFloatFunction
- Throws:
IOException
-