Class AddFunction
- java.lang.Object
-
- org.apache.solr.analytics.function.mapping.AddFunction
-
public class AddFunction extends Object
An addition mapping function.Uses:
- If a single numeric ValueStream is passed in, a
DoubleValue
representing the sum of the values for each document is returned. - If a numeric ValueStream and a numeric Value are passed in, a
DoubleValueStream
representing the sum 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 multiple numeric Values are passed in, a
DoubleValue
representing the sum of all values is returned.
- If a single numeric ValueStream is passed in, a
-
-
Field Summary
Fields Modifier and Type Field Description static ExpressionFactory.CreatorFunction
creatorFunction
static String
name
-
Constructor Summary
Constructors Constructor Description AddFunction()
-
-
-
Field Detail
-
name
public static final String name
- See Also:
- Constant Field Values
-
creatorFunction
public static final ExpressionFactory.CreatorFunction creatorFunction
-
-