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
StringValueStream
is passed in, aStringValue
representing the concatenation of the values for each document is returned. No ordering is guaranteed while concatenating. - If a
StringValue
and aStringValueStream
are passed in, aStringValueStream
representing 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
StringValue
s are passed in, aStringValue
representing 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 class
ConcatFunction.SeparatedConcatFunction
A 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.CreatorFunction
creatorFunction
static String
name
-
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
-
-