Class InputTransformationsConfig
- java.lang.Object
-
- com.tibco.ep.tcs.runtime.config.BaseConfig
-
- com.tibco.ep.tcs.runtime.config.InputTransformationsConfig
-
public final class InputTransformationsConfig extends BaseConfig
An edge's input transformations, applied to fields of an input tuple. Corresponds to the configuration required by an EventFlow map operator. Consists of a set of
transformations
plus global field behavior.
-
-
Constructor Summary
Constructors Constructor Description InputTransformationsConfig()
Create a new empty input transformation set.InputTransformationsConfig(IInputTransformations source)
Create a new input transformation set from the specified interface source.InputTransformationsConfig(com.typesafe.config.Config config)
Create a new input transformation set from HOCON configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputTransformationsConfig
addTransformation(InputTransformationConfig transformation)
Add a single input transformation.protected void
fillMap(Map<String,Object> props)
Add this object's properties to the specified map.String
getFieldPrefix()
Return a prefix to apply to all fields emitted by the edge.String
getFieldSuffix()
Return a suffix to apply to all fields emitted by the edge.IInputTransformations.StartFieldSetType
getStartFieldSet()
Return the set of input fields to start with.List<InputTransformationConfig>
getTransformations()
Return an ordered list of transformations on the input, applied after the start field set of ALL or NONE is determined.InputTransformationsConfig
setFieldPrefix(String fieldPrefix)
Set a prefix to apply to all fields emitted by the edge.InputTransformationsConfig
setFieldSuffix(String fieldSuffix)
Set a suffix to apply to all fields emitted by the edge.InputTransformationsConfig
setStartFieldSet(IInputTransformations.StartFieldSetType startFieldSet)
Set the input fields to start with.InputTransformationsConfig
setTransformations(List<InputTransformationConfig> transformations)
Set an ordered list of transformations on the input, applied after the start field set of ALL or NONE is determined.-
Methods inherited from class com.tibco.ep.tcs.runtime.config.BaseConfig
toHOCON
-
-
-
-
Constructor Detail
-
InputTransformationsConfig
public InputTransformationsConfig()
Create a new empty input transformation set.
-
InputTransformationsConfig
public InputTransformationsConfig(IInputTransformations source)
Create a new input transformation set from the specified interface source.
- Parameters:
source
- source instance
-
InputTransformationsConfig
public InputTransformationsConfig(com.typesafe.config.Config config)
Create a new input transformation set from HOCON configuration.
- Parameters:
config
- HOCON representation of the transformation
-
-
Method Detail
-
getStartFieldSet
public IInputTransformations.StartFieldSetType getStartFieldSet()
Return the set of input fields to start with.
- Returns:
- set of fields to start with - all or none
-
setStartFieldSet
public InputTransformationsConfig setStartFieldSet(IInputTransformations.StartFieldSetType startFieldSet)
Set the input fields to start with.
- Parameters:
startFieldSet
- set of fields to start with- Returns:
- this object
-
getFieldPrefix
public String getFieldPrefix()
Return a prefix to apply to all fields emitted by the edge.
- Returns:
- prefix
-
setFieldPrefix
public InputTransformationsConfig setFieldPrefix(String fieldPrefix)
Set a prefix to apply to all fields emitted by the edge.
- Parameters:
fieldPrefix
- field prefix- Returns:
- this object
-
getFieldSuffix
public String getFieldSuffix()
Return a suffix to apply to all fields emitted by the edge.
- Returns:
- suffix
-
setFieldSuffix
public InputTransformationsConfig setFieldSuffix(String fieldSuffix)
Set a suffix to apply to all fields emitted by the edge.
- Parameters:
fieldSuffix
- field suffix- Returns:
- this object
-
getTransformations
public List<InputTransformationConfig> getTransformations()
Return an ordered list of transformations on the input, applied after the start field set of ALL or NONE is determined.
- Returns:
- input transformations
-
setTransformations
public InputTransformationsConfig setTransformations(List<InputTransformationConfig> transformations)
Set an ordered list of transformations on the input, applied after the start field set of ALL or NONE is determined.
- Parameters:
transformations
- transformation list- Returns:
- this object
-
addTransformation
public InputTransformationsConfig addTransformation(InputTransformationConfig transformation)
Add a single input transformation.
- Parameters:
transformation
- transformation to add- Returns:
- this object
-
fillMap
protected void fillMap(Map<String,Object> props)
Add this object's properties to the specified map.
- Specified by:
fillMap
in classBaseConfig
- Parameters:
props
- map to fill
-
-