public abstract class TransformFunction extends ConsumerProducerFunction
TransformFunction is a Function that produces a new output record based on
the data in an input record.
For example:
TransformFunction concat = new Concat("|");
Object[] result = concat.transform({"a", "b"}); // result = {"a|b"}
| Constructor and Description |
|---|
TransformFunction() |
| Modifier and Type | Method and Description |
|---|---|
abstract TransformFunction |
statelessClone()
Create a deep copy of this
Function, including any configuration values. |
abstract Object[] |
transform(Object[] input)
Execute this
TransformFunction with an input record to produce a new output record. |
equals, getOutputClasses, hashCode, toStringgetInputClassespublic abstract Object[] transform(Object[] input)
TransformFunction with an input record to produce a new output record.input - Input record.public abstract TransformFunction statelessClone()
FunctionFunction, including any configuration values. Stateful functions should
have their state initialised.statelessClone in interface FunctionstatelessClone in class ConsumerProducerFunctionFunction.Copyright © 2017. All rights reserved.