Skip to content

Commit

Permalink
added comment in dstream._test_output
Browse files Browse the repository at this point in the history
  • Loading branch information
giwa committed Sep 20, 2014
1 parent bebb3f3 commit b0f2015
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/pyspark/streaming/dstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ def _test_output(self, result):
Store data in a DStream to result to verify the result in test case
"""
def get_output(rdd, time):
"""
Closure to get element in RDD in the DStream.
This closure is called by py4j callback server.
"""
collected = rdd.collect()
result.append(collected)

Expand Down

0 comments on commit b0f2015

Please sign in to comment.