Uploaded image for project: 'Apache Apex Core'
  1. Apache Apex Core
  2. APEXCORE-470

New Api for setting the attribute on the operator ( setOperatorAttribute )

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.5.0
    • None
    • None

    Description

      Currently, setAttribute is used to set the operator attributes. Other 2 Attribute setting APIs are specific to input ports (setInputPortAttributes) and output ports (setOutputPortsAttributes).

      Proposal is to have SetOperatorAttribute api, which will clearly indicate that user wants set attributes on the operator.
      ( setOperatorAttribute(Operator operator, Attribute<T> key, T value) )

      Following will be the roles for the APIs
      setAttributes --> for setting Attributes for the whole DAG ( setAttribute(Operator operator, Attribute<T> key, T value) - can be deprecated )
      setOperatorAttributes --> for setting Attributes for the operator

      All the unit test cases using the previous API will be renamed as a part of this change.

      Attachments

        Issue Links

          Activity

            People

              sandesh Sandesh Hegde
              sandesh Sandesh Hegde
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: