Class MaxFloatFunction
- java.lang.Object
-
- org.apache.lucene.queries.function.ValueSource
-
- org.apache.lucene.queries.function.valuesource.MultiFloatFunction
-
- org.apache.lucene.queries.function.valuesource.MaxFloatFunction
-
public class MaxFloatFunction extends MultiFloatFunction
MaxFloatFunctionreturns the max of its components.
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.queries.function.valuesource.MultiFloatFunction
sources
-
-
Constructor Summary
Constructors Constructor Description MaxFloatFunction(ValueSource[] sources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanexists(int doc, FunctionValues[] valsArr)True if any of the specifiedvaluesFunctionValues.exists(int)for the specified doc, else false.protected floatfunc(int doc, FunctionValues[] valsArr)protected Stringname()-
Methods inherited from class org.apache.lucene.queries.function.valuesource.MultiFloatFunction
createWeight, description, equals, getValues, hashCode
-
Methods inherited from class org.apache.lucene.queries.function.ValueSource
asDoubleValuesSource, asLongValuesSource, fromDoubleValuesSource, getSortField, newContext, toString
-
-
-
-
Constructor Detail
-
MaxFloatFunction
public MaxFloatFunction(ValueSource[] sources)
-
-
Method Detail
-
name
protected String name()
- Specified by:
namein classMultiFloatFunction
-
func
protected float func(int doc, FunctionValues[] valsArr) throws IOException- Specified by:
funcin classMultiFloatFunction- Throws:
IOException
-
exists
protected boolean exists(int doc, FunctionValues[] valsArr) throws IOExceptionTrue if any of the specifiedvaluesFunctionValues.exists(int)for the specified doc, else false.- Overrides:
existsin classMultiFloatFunction- Throws:
IOException- See Also:
MultiFunction.anyExists(int, org.apache.lucene.queries.function.FunctionValues[])
-
-