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

Make Iterable part of method signature for WindowFunction

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: API / DataStream
    • Labels:
      None

      Description

      After discussion with [~StephanEwen],Robert Metzger, Fabian Hueske it was decided that the signature of WindowFunction should be changed.

      Right now, the signature is WindowFunction<IN, OUT, KEY, WINDOW>. With the decision of whether the input is an Iterable nor not residing in the signature of the method on WindowedStream, for example:

      • WindowedStream.apply(WindowFunction<Iterable<IN>>, OUT, KEY, WINDOW>
      • WindowedStream.apply(ReduceFunction, WindowFunction<IN, OUT, KEY, WINDOW>

      The Iterable<> should be moved into the signature of the apply method, so that it is:
      void apply(KEY key, W window, Iterable<IN> input, Collector<OUT> out)

        Attachments

          Activity

            People

            • Assignee:
              aljoscha Aljoscha Krettek
              Reporter:
              aljoscha Aljoscha Krettek
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: