Package com.tibco.ep.tcs.runtime.config
Class InputTransformationConfig
- java.lang.Object
-
- com.tibco.ep.tcs.runtime.config.BaseConfig
-
- com.tibco.ep.tcs.runtime.config.TransformationConfig
-
- com.tibco.ep.tcs.runtime.config.InputTransformationConfig
-
public final class InputTransformationConfig extends TransformationConfig
A single input transformation for a flow edge, applied to a field of the input tuple. Enhances a generic transformation by adding an operation type.
-
-
Constructor Summary
Constructors Constructor Description InputTransformationConfig()
Create a new empty transformation.InputTransformationConfig(com.typesafe.config.Config config)
Create a new transformation from HOCON configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fillMap(Map<String,Object> props)
Add this object's properties to the specified map.IInputTransformation.OperationType
getOperation()
Return the transformation operation, one of DECLARE, INCLUDE, REMOVE, or REPLACE.InputTransformationConfig
setExpression(String expression)
Set the output expression.InputTransformationConfig
setFieldName(String fieldName)
Set the name of the field being operated on.InputTransformationConfig
setOperation(IInputTransformation.OperationType operation)
Set the transform operation, one of DECLARE, INCLUDE, REMOVE, or REPLACE.-
Methods inherited from class com.tibco.ep.tcs.runtime.config.TransformationConfig
getExpression, getFieldName
-
Methods inherited from class com.tibco.ep.tcs.runtime.config.BaseConfig
toHOCON
-
-
-
-
Constructor Detail
-
InputTransformationConfig
public InputTransformationConfig()
Create a new empty transformation.
-
InputTransformationConfig
public InputTransformationConfig(com.typesafe.config.Config config)
Create a new transformation from HOCON configuration.
- Parameters:
config
- HOCON representation of the transformation
-
-
Method Detail
-
getOperation
public IInputTransformation.OperationType getOperation()
Return the transformation operation, one of DECLARE, INCLUDE, REMOVE, or REPLACE.
- Returns:
- operation
-
setOperation
public InputTransformationConfig setOperation(IInputTransformation.OperationType operation)
Set the transform operation, one of DECLARE, INCLUDE, REMOVE, or REPLACE.
- Parameters:
operation
- operation type- Returns:
- this object
-
setFieldName
public InputTransformationConfig setFieldName(String fieldName)
Set the name of the field being operated on.
- Overrides:
setFieldName
in classTransformationConfig
- Parameters:
fieldName
- field name- Returns:
- this object
-
setExpression
public InputTransformationConfig setExpression(String expression)
Set the output expression.
- Overrides:
setExpression
in classTransformationConfig
- Parameters:
expression
- output expression- Returns:
- this object
-
fillMap
protected void fillMap(Map<String,Object> props)
Add this object's properties to the specified map.
- Overrides:
fillMap
in classTransformationConfig
- Parameters:
props
- map to fill
-
-