aboutsummaryrefslogtreecommitdiff
path: root/streaming
diff options
context:
space:
mode:
authorSean Owen <sowen@cloudera.com>2014-05-04 11:55:29 -0700
committerPatrick Wendell <pwendell@gmail.com>2014-05-04 11:55:29 -0700
commit0088cede592540f35f9aec0f24dc1d9bd690d878 (patch)
tree40eee44c387aea4c3a3d7b13f6d122b7987199cf /streaming
parente97a2e6717e75c70c5474f2d211682565909e557 (diff)
downloadspark-0088cede592540f35f9aec0f24dc1d9bd690d878.tar.gz
spark-0088cede592540f35f9aec0f24dc1d9bd690d878.tar.bz2
spark-0088cede592540f35f9aec0f24dc1d9bd690d878.zip
SPARK-1663. (Addendum) Fix signature of one version of JavaPairRDDStream.reduceByKeyAndWindow()
It appears that one of these methods doesn't use `org.apache.spark.api.java.function.Function2` like all the others, but uses Scala's `Function2`. Author: Sean Owen <sowen@cloudera.com> Closes #633 from srowen/SPARK-1663.2 and squashes the following commits: 1e0232d [Sean Owen] Fix signature of one version of reduceByKeyAndWindow to use Java API Function2, as apparently intended
Diffstat (limited to 'streaming')
-rw-r--r--streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaPairDStream.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaPairDStream.scala b/streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaPairDStream.scala
index cb8e8f00a7..c4bdf01fa3 100644
--- a/streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaPairDStream.scala
+++ b/streaming/src/main/scala/org/apache/spark/streaming/api/java/JavaPairDStream.scala
@@ -262,7 +262,7 @@ class JavaPairDStream[K, V](val dstream: DStream[(K, V)])(
* @param windowDuration width of the window; must be a multiple of this DStream's
* batching interval
*/
- def reduceByKeyAndWindow(reduceFunc: Function2[V, V, V], windowDuration: Duration)
+ def reduceByKeyAndWindow(reduceFunc: JFunction2[V, V, V], windowDuration: Duration)
:JavaPairDStream[K, V] = {
dstream.reduceByKeyAndWindow(reduceFunc, windowDuration)
}