Skip to content

Commit 57e3e52

Browse files
Ken TakagiwaKen Takagiwa
authored andcommitted
remove not implemented DStream functions in python
1 parent 0a516f5 commit 57e3e52

File tree

1 file changed

+0
-102
lines changed

1 file changed

+0
-102
lines changed

python/pyspark/streaming/dstream.py

Lines changed: 0 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -54,50 +54,6 @@ def pyprint(self):
5454
"""
5555
self._jdstream.pyprint()
5656

57-
def cache(self):
58-
"""
59-
"""
60-
raise NotImplementedError
61-
62-
def checkpoint(self):
63-
"""
64-
"""
65-
raise NotImplementedError
66-
67-
def compute(self, time):
68-
"""
69-
"""
70-
raise NotImplementedError
71-
72-
def context(self):
73-
"""
74-
"""
75-
raise NotImplementedError
76-
77-
def count(self):
78-
"""
79-
"""
80-
raise NotImplementedError
81-
82-
def countByValue(self, numPartitions=None):
83-
"""
84-
"""
85-
raise NotImplementedError
86-
87-
def countByValueAndWindow(self, duration, slideDuration=None):
88-
"""
89-
"""
90-
raise NotImplementedError
91-
92-
def countByWindow(self, duration, slideDuration=None):
93-
"""
94-
"""
95-
raise NotImplementedError
96-
97-
def dstream(self):
98-
"""
99-
"""
100-
raise NotImplementedError
10157

10258
def filter(self, f):
10359
"""
@@ -111,16 +67,6 @@ def flatMap(self, f, preservesPartitioning=False):
11167
def func(s, iterator): return chain.from_iterable(imap(f, iterator))
11268
return self.mapPartitionsWithIndex(func, preservesPartitioning)
11369

114-
def foreachRDD(self, f, time):
115-
"""
116-
"""
117-
raise NotImplementedError
118-
119-
def glom(self):
120-
"""
121-
"""
122-
raise NotImplementedError
123-
12470
def map(self, f, preservesPartitioning=False):
12571
"""
12672
"""
@@ -133,11 +79,6 @@ def mapPartitions(self, f):
13379
def func(s, iterator): return f(iterator)
13480
return self.mapPartitionsWithIndex(func)
13581

136-
def perist(self, storageLevel):
137-
"""
138-
"""
139-
raise NotImplementedError
140-
14182
def reduce(self, func, numPartitions=None):
14283
"""
14384
@@ -210,49 +151,6 @@ def add_shuffle_key(split, iterator):
210151
dstream._partitionFunc = partitionFunc
211152
return dstream
212153

213-
214-
215-
def reduceByWindow(self, reduceFunc, windowDuration, slideDuration, inReduceTunc):
216-
"""
217-
"""
218-
219-
raise NotImplementedError
220-
221-
def repartition(self, numPartitions):
222-
"""
223-
"""
224-
raise NotImplementedError
225-
226-
def slice(self, fromTime, toTime):
227-
"""
228-
"""
229-
raise NotImplementedError
230-
231-
def transform(self, transformFunc):
232-
"""
233-
"""
234-
raise NotImplementedError
235-
236-
def transformWith(self, other, transformFunc):
237-
"""
238-
"""
239-
raise NotImplementedError
240-
241-
def union(self, that):
242-
"""
243-
"""
244-
raise NotImplementedError
245-
246-
def window(self, windowDuration, slideDuration=None):
247-
"""
248-
"""
249-
raise NotImplementedError
250-
251-
def wrapRDD(self, rdd):
252-
"""
253-
"""
254-
raise NotImplementedError
255-
256154
def mapPartitionsWithIndex(self, f, preservesPartitioning=False):
257155
return PipelinedDStream(self, f, preservesPartitioning)
258156

0 commit comments

Comments
 (0)