Skip to content

Commit 2ea769e

Browse files
committed
added comment in dstream._test_output
1 parent 3b27bd4 commit 2ea769e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python/pyspark/streaming/dstream.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,10 @@ def _test_output(self, result):
395395
Store data in a DStream to result to verify the result in test case
396396
"""
397397
def get_output(rdd, time):
398+
"""
399+
Closure to get element in RDD in the DStream.
400+
This closure is called by py4j callback server.
401+
"""
398402
collected = rdd.collect()
399403
result.append(collected)
400404

0 commit comments

Comments
 (0)