Class TransformationConfig

  • Direct Known Subclasses:
    AdditionalTransformationConfig, InputTransformationConfig

    public class TransformationConfig
    extends BaseConfig

    A generic transformation. Transformations are used in several places in a TCS flow: along flow edges, and within block meta-data to produce configuration required by block implementations. Subclasses further can enhance the transformation as an input or additional transformation.

    • Constructor Detail

      • TransformationConfig

        public TransformationConfig()

        Create a new empty transformation.

      • TransformationConfig

        public TransformationConfig​(ITransformation source)

        Create a new transformation from the specified interface source.

        Parameters:
        source - source instance
      • TransformationConfig

        public TransformationConfig​(com.typesafe.config.Config config)

        Create a new transformation from HOCON configuration.

        Parameters:
        config - HOCON representation of the transformation
    • Method Detail

      • getFieldName

        public String getFieldName()

        Return the name of the field being operated on.

        Returns:
        field
      • setFieldName

        public TransformationConfig setFieldName​(String fieldName)

        Set the name of the field being operated on.

        Parameters:
        fieldName - field name
        Returns:
        this object
      • getExpression

        public String getExpression()

        Return the output expression, in EventFlow expression syntax.

        Returns:
        output expression
      • setExpression

        public TransformationConfig setExpression​(String expression)

        Set the output expression, in EventFlow expression syntax.

        Parameters:
        expression - output expression
        Returns:
        this object
      • fillMap

        protected void fillMap​(Map<String,​Object> props)

        Add this object's properties to the specified map.

        Specified by:
        fillMap in class BaseConfig
        Parameters:
        props - map to fill