Class 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 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

      • 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
      • 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