Github user rmetzger commented on a diff in the pull request:

    https://github.com/apache/flink/pull/684#discussion_r32888221
  
    --- Diff: 
flink-staging/flink-streaming/flink-streaming-scala/src/main/scala/org/apache/flink/streaming/api/scala/WindowedDataStream.scala
 ---
    @@ -339,4 +335,30 @@ class WindowedDataStream[T](javaStream: 
JavaWStream[T]) {
           
javaStream.getDiscretizedStream.getExecutionEnvironment).scalaClean(f)
       }
     
    +  /**
    +   * Gives the median of the current window at the specified field at 
every trigger.
    +   * The type of the field can only be Double (as the median of integers 
might be a
    +   * fractional number).
    +   *
    +   * The median is updated online as the window changes, and the runtime of
    +   * one update is logarithmic with the current window size.
    +   *
    +   */
    +  def median(pos: Int): WindowedDataStream[T] = {
    --- End diff --
    
    Can you also update the streaming programming guide with this new method?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to