Skip to content

Commit

Permalink
reduceByKey is working
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Takagiwa authored and giwa committed Sep 20, 2014
1 parent 0df7111 commit 58591d2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Binary file added examples/src/main/python/streaming/wordcount.pyc
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/*
package org.apache.spark.streaming.api.python
import org.apache.spark.Accumulator
Expand All @@ -10,11 +12,8 @@ import org.apache.spark.streaming.dstream.DStream
import scala.reflect.ClassTag
/**
* Created by ken on 7/15/14.
*/
class PythonTransformedDStream[T: ClassTag](
parents: Seq[DStream[T]],
parent: DStream[T],
command: Array[Byte],
envVars: JMap[String, String],
pythonIncludes: JList[String],
Expand All @@ -30,8 +29,14 @@ class PythonTransformedDStream[T: ClassTag](
//pythonDStream compute
override def compute(validTime: Time): Option[RDD[Array[Byte]]] = {
val parentRDDs = parents.map(_.getOrCompute(validTime).orNull).toSeq
Some()
// val parentRDDs = parents.map(_.getOrCompute(validTime).orNull).toSeq
// parents.map(_.getOrCompute(validTime).orNull).to
// parent = parents.head.asInstanceOf[RDD]
// Some()
}
val asJavaDStream = JavaDStream.fromDStream(this)
val asJavaDStream = JavaDStream.fromDStream(this)
}
*/

0 comments on commit 58591d2

Please sign in to comment.