Class ConcatOperation
- java.lang.Object
-
- org.apache.solr.client.solrj.io.ops.ConcatOperation
-
- All Implemented Interfaces:
Serializable
,StreamOperation
,Expressible
public class ConcatOperation extends Object implements StreamOperation
Concatenates fields and adds them to the tuple. Example concat(fields="month,day,year", delim="-", as="id")- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConcatOperation(String[] fields, String as, String delim)
ConcatOperation(StreamExpression expression, StreamFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
operate(Tuple tuple)
Explanation
toExplanation(StreamFactory factory)
Returns an explanation about the stream objectStreamExpressionParameter
toExpression(StreamFactory factory)
-
-
-
Constructor Detail
-
ConcatOperation
public ConcatOperation(StreamExpression expression, StreamFactory factory) throws IOException
- Throws:
IOException
-
-
Method Detail
-
operate
public void operate(Tuple tuple)
- Specified by:
operate
in interfaceStreamOperation
-
toExpression
public StreamExpressionParameter toExpression(StreamFactory factory) throws IOException
- Specified by:
toExpression
in interfaceExpressible
- Throws:
IOException
-
toExplanation
public Explanation toExplanation(StreamFactory factory) throws IOException
Description copied from interface:Expressible
Returns an explanation about the stream object- Specified by:
toExplanation
in interfaceExpressible
- Parameters:
factory
- Stream factory for this, contains information about the function name- Returns:
- Explanation about this stream object containing explanations of any child stream objects
- Throws:
IOException
- throw on any error
-
-