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

Provide Timestamp in TimelyFlatMapFunction

    XMLWordPrintableJSON

Details

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

    Description

      Right now, TimelyFlatMapFunction does not give the timestamp of the element in flatMap().

      The signature is currently this:

      void flatMap(I value, TimerService timerService, Collector<O> out) throws Exception;
      

      if we add the timestamp it would become this:

      void flatMap(I value, Long timestamp, TimerService timerService, Collector<O> out) throws Exception;
      

      The reason why it's a Long and not a long is that an element might not have a timestamp, in that case we should hand in null here.

      This is becoming quite look so we could add a Context parameter that provides access to the timestamp and timer service.

      Attachments

        Issue Links

          Activity

            People

              aljoscha Aljoscha Krettek
              aljoscha Aljoscha Krettek
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: