Class ConcatFunction
- java.lang.Object
-
- org.apache.solr.analytics.function.mapping.ConcatFunction
-
public class ConcatFunction extends Object
A concatenation mapping function, combining the string values of the given parameters. (At least 1 parameter is required)Uses:
- If a single
StringValueStreamis passed in, aStringValuerepresenting the concatenation of the values for each document is returned. No ordering is guaranteed while concatenating. - If a
StringValueand aStringValueStreamare passed in, aStringValueStreamrepresenting the concatenation 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 any number (more than 0) of
StringValues are passed in, aStringValuerepresenting the concatenation of all values is returned. If any values don't exist, the overall concatenation value will still exist with an empty string used for any missing values. If none of the parameter values exist, then the overall concatenation value will not exist.
- If a single
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classConcatFunction.SeparatedConcatFunctionA concatenation mapping function, combining the string values of the given parameters with a given separating string.
-
Field Summary
Fields Modifier and Type Field Description static ExpressionFactory.CreatorFunctioncreatorFunctionstatic Stringname
-
Constructor Summary
Constructors Constructor Description ConcatFunction()
-
-
-
Field Detail
-
name
public static final String name
- See Also:
- Constant Field Values
-
creatorFunction
public static final ExpressionFactory.CreatorFunction creatorFunction
-
-