Class DivideFunction
- java.lang.Object
-
- org.apache.solr.analytics.function.mapping.DivideFunction
-
public class DivideFunction extends Object
A division mapping function. No checking on divisor value is done. An error will occur if a zero divisor is used.Uses:
- If two numeric Values are passed in, a
DoubleValue
representing the divison of the two values is returned. - If a numeric ValueStream and a numeric Value are passed in, a
DoubleValueStream
representing the division of the Value and each of the values of the ValueStream for a document is returned. (Or the other way, since the Value and ValueStream can be used in either order)
- If two numeric Values are passed in, a
-
-
Field Summary
Fields Modifier and Type Field Description static ExpressionFactory.CreatorFunction
creatorFunction
static String
name
-
Constructor Summary
Constructors Constructor Description DivideFunction()
-
-
-
Field Detail
-
name
public static final String name
- See Also:
- Constant Field Values
-
creatorFunction
public static final ExpressionFactory.CreatorFunction creatorFunction
-
-