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

WindowedStream.apply with FoldFunction is too restrictive

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.0
    • API / DataStream
    • None

    Description

      Right now we have this signature:

      public <R> SingleOutputStreamOperator<R> apply(R initialValue, FoldFunction<T, R> foldFunction, WindowFunction<R, R, K, W> function) {
      

      but we should have this signature to allow users to return a type other than the fold accumulator type from their window function:

      public <ACC, R> SingleOutputStreamOperator<R> apply(ACC initialValue, FoldFunction<T, ACC> foldFunction, WindowFunction<ACC, R, K, W> function) {
      

      Attachments

        Activity

          People

            ymarzougui Yassine Marzougui
            aljoscha Aljoscha Krettek
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: