Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/4875#discussion_r25980966
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaPairDStream.scala
---
@@ -101,6 +101,23 @@ class JavaPairDStream[K, V](val dstream: DStream[(K,
V)])(
dstream.window(windowDuration, slideDuration)
/**
+ * Return a new DStream which is computed based on windowed batches of
this DStream.
+ * @param windowDuration duration (i.e., width) of the window;
+ * must be a multiple of this DStream's 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 this
+ * DStream's interval
+ * @param initialWindow initial window values to prepend starting with
the oldest entry
+ */
+ def window(windowDuration: Duration,
+ slideDuration: Duration,
+ initialWindow: Optional[JList[JavaPairRDD[K, V]]]):
JavaPairDStream[K, V] =
--- End diff --
Why is this an option? There is already a version of window where you dont
have to specify the initial RDDs.
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]