We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bde265 commit 81fcb20Copy full SHA for 81fcb20
python/pyspark/resultiterable.py
@@ -19,6 +19,7 @@
19
20
import collections
21
22
+
23
class ResultIterable(collections.Iterable):
24
"""
25
A special result iterable. This is used because the standard iterator can not be pickled
@@ -27,7 +28,9 @@ def __init__(self, data):
27
28
self.data = data
29
self.index = 0
30
self.maxindex = len(data)
31
32
def __iter__(self):
33
return iter(self.data)
34
35
def __len__(self):
36
return len(self.data)
0 commit comments