Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
giwa committed Sep 20, 2014
1 parent ddd4ee1 commit af336b7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/pyspark/java_gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def run(self):
java_import(gateway.jvm, "org.apache.spark.streaming.*") # do we need this?
java_import(gateway.jvm, "org.apache.spark.streaming.api.java.*")
java_import(gateway.jvm, "org.apache.spark.streaming.api.python.*")
java_import(gateway.jvm, "org.apache.spark.streaming.dstream.*")
java_import(gateway.jvm, "org.apache.spark.streaming.dstream.*") # do we need this?
java_import(gateway.jvm, "org.apache.spark.mllib.api.python.*")
java_import(gateway.jvm, "org.apache.spark.sql.SQLContext")
java_import(gateway.jvm, "org.apache.spark.sql.hive.HiveContext")
Expand Down
3 changes: 0 additions & 3 deletions python/pyspark/streaming/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,6 @@ def _testInputStream(self, test_inputs, numSlices=None):
test_rdds.append(test_rdd._jrdd)
test_rdd_deserializers.append(test_rdd._jrdd_deserializer)

# if len(set(test_rdd_deserializers)) > 1:
# raise IOError("Deserializer should be one type to run test case. "
# "See the SparkContext.parallelize to understand how to decide deserializer")
jtest_rdds = ListConverter().convert(test_rdds, SparkContext._gateway._gateway_client)
jinput_stream = self._jvm.PythonTestInputStream(self._jssc, jtest_rdds).asJavaDStream()

Expand Down
1 change: 1 addition & 0 deletions python/pyspark/streaming/dstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ def saveAsTextFile(rdd, time):
# TODO: implement leftOuterJoin
# TODO: implemtnt rightOuterJoin


class PipelinedDStream(DStream):
def __init__(self, prev, func, preservesPartitioning=False):
if not isinstance(prev, PipelinedDStream) or not prev._is_pipelinable():
Expand Down

0 comments on commit af336b7

Please sign in to comment.