spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tdas <>
Subject [GitHub] spark pull request: [SPARK-6139] [Streaming] Allow pre-populate sl...
Date Fri, 06 Mar 2015 21:53:32 GMT
Github user tdas commented on a diff in the pull request:
    --- Diff: streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala ---
    @@ -649,7 +649,23 @@ abstract class DStream[T: ClassTag] (
        *                       DStream's batching interval
       def window(windowDuration: Duration, slideDuration: Duration): DStream[T] = {
    -    new WindowedDStream(this, windowDuration, slideDuration)
    +    new WindowedDStream(this, windowDuration, slideDuration, None)
    +  }
    +  /**
    +   * Return a new DStream in which each RDD contains all the elements in seen in a
    +   * sliding window of time over this DStream.
    +   * @param windowDuration width of the window; must be a multiple of this DStream's
    +   *                       batching interval
    +   * @param slideDuration  sliding interval of the window (i.e., the interval after which
    +   *                       the new DStream will generate RDDs); must be a multiple of
    +   *                       DStream's batching interval
    +   * @param initialWindow  initial window values to prepend starting with the oldest
    --- End diff --
    It would be good to specify in the docs, that initial window is an ordered list of RDDs,
and each RDD represents data from a batch. 

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message