Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-1045

Remove Combinable Annotation

    XMLWordPrintableJSON

Details

    Description

      Since the combine() method was extracted into an interface, we can check if a function is combinable by checking if the interface is implemented.

      Hence, the Combinable annotation could be removed, IMHO.

      However, this would change the API because RichGroupReduceFunction could no longer have a default implementation of combine() that can be enabled by attaching the annotation.

      Right now, the Combinable annotation is just not necessary as the implementation of the interface tells the system everything it needs to know.
      Removing the Combinable annotation would also make the handling of different combinable functions easier. For example a function that implements the interfaces GroupReduceFunction and FlatCombineFunction does not need to attach the annotation.

      Attachments

        Activity

          People

            fhueske Fabian Hueske
            fhueske Fabian Hueske
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: