23
23
setGeneric ("aggregateRDD ",
24
24
function (x , zeroValue , seqOp , combOp ) { standardGeneric(" aggregateRDD" ) })
25
25
26
- # @rdname cache-methods
27
- # @export
28
- setGeneric ("cache ", function(x) { standardGeneric("cache") })
26
+ setGeneric ("cacheRDD ", function(x) { standardGeneric("cacheRDD") })
29
27
30
28
# @rdname coalesce
31
29
# @seealso repartition
@@ -36,9 +34,7 @@ setGeneric("coalesce", function(x, numPartitions, ...) { standardGeneric("coales
36
34
# @export
37
35
setGeneric ("checkpoint ", function(x) { standardGeneric("checkpoint") })
38
36
39
- # @rdname collect-methods
40
- # @export
41
- setGeneric ("collect ", function(x, ...) { standardGeneric("collect") })
37
+ setGeneric ("collectRDD ", function(x, ...) { standardGeneric("collectRDD") })
42
38
43
39
# @rdname collect-methods
44
40
# @export
@@ -51,9 +47,9 @@ setGeneric("collectPartition",
51
47
standardGeneric(" collectPartition" )
52
48
})
53
49
54
- # @rdname nrow
55
- # @export
56
- setGeneric ("count ", function(x) { standardGeneric("count ") })
50
+ setGeneric (" countRDD ", function(x) { standardGeneric("countRDD") })
51
+
52
+ setGeneric ("lengthRDD ", function(x) { standardGeneric("lengthRDD ") })
57
53
58
54
# @rdname countByValue
59
55
# @export
@@ -74,17 +70,13 @@ setGeneric("approxQuantile",
74
70
standardGeneric(" approxQuantile" )
75
71
})
76
72
77
- # @rdname distinct
78
- # @export
79
- setGeneric ("distinct ", function(x, numPartitions = 1) { standardGeneric("distinct") })
73
+ setGeneric ("distinctRDD ", function(x, numPartitions = 1) { standardGeneric("distinctRDD") })
80
74
81
75
# @rdname filterRDD
82
76
# @export
83
77
setGeneric ("filterRDD ", function(x, f) { standardGeneric("filterRDD") })
84
78
85
- # @rdname first
86
- # @export
87
- setGeneric ("first ", function(x, ...) { standardGeneric("first") })
79
+ setGeneric ("firstRDD ", function(x, ...) { standardGeneric("firstRDD") })
88
80
89
81
# @rdname flatMap
90
82
# @export
@@ -110,6 +102,8 @@ setGeneric("glom", function(x) { standardGeneric("glom") })
110
102
# @export
111
103
setGeneric ("histogram ", function(df, col, nbins=10) { standardGeneric("histogram") })
112
104
105
+ setGeneric ("joinRDD ", function(x, y, ...) { standardGeneric("joinRDD") })
106
+
113
107
# @rdname keyBy
114
108
# @export
115
109
setGeneric ("keyBy ", function(x, func) { standardGeneric("keyBy") })
@@ -152,9 +146,7 @@ setGeneric("getNumPartitions", function(x) { standardGeneric("getNumPartitions")
152
146
# @export
153
147
setGeneric ("numPartitions ", function(x) { standardGeneric("numPartitions") })
154
148
155
- # @rdname persist
156
- # @export
157
- setGeneric ("persist ", function(x, newLevel) { standardGeneric("persist") })
149
+ setGeneric ("persistRDD ", function(x, newLevel) { standardGeneric("persistRDD") })
158
150
159
151
# @rdname pipeRDD
160
152
# @export
@@ -168,10 +160,7 @@ setGeneric("pivot", function(x, colname, values = list()) { standardGeneric("piv
168
160
# @export
169
161
setGeneric ("reduce ", function(x, func) { standardGeneric("reduce") })
170
162
171
- # @rdname repartition
172
- # @seealso coalesce
173
- # @export
174
- setGeneric ("repartition ", function(x, ...) { standardGeneric("repartition") })
163
+ setGeneric ("repartitionRDD ", function(x, ...) { standardGeneric("repartitionRDD") })
175
164
176
165
# @rdname sampleRDD
177
166
# @export
@@ -193,16 +182,16 @@ setGeneric("saveAsTextFile", function(x, path) { standardGeneric("saveAsTextFile
193
182
# @export
194
183
setGeneric ("setName ", function(x, name) { standardGeneric("setName") })
195
184
185
+ setGeneric ("showRDD ", function(object, ...) { standardGeneric("showRDD") })
186
+
196
187
# @rdname sortBy
197
188
# @export
198
189
setGeneric ("sortBy ",
199
190
function (x , func , ascending = TRUE , numPartitions = 1 ) {
200
191
standardGeneric(" sortBy" )
201
192
})
202
193
203
- # @rdname take
204
- # @export
205
- setGeneric ("take ", function(x, num) { standardGeneric("take") })
194
+ setGeneric ("takeRDD ", function(x, num) { standardGeneric("takeRDD") })
206
195
207
196
# @rdname takeOrdered
208
197
# @export
@@ -223,9 +212,7 @@ setGeneric("top", function(x, num) { standardGeneric("top") })
223
212
# @export
224
213
setGeneric ("unionRDD ", function(x, y) { standardGeneric("unionRDD") })
225
214
226
- # @rdname unpersist-methods
227
- # @export
228
- setGeneric ("unpersist ", function(x, ...) { standardGeneric("unpersist") })
215
+ setGeneric ("unpersistRDD ", function(x, ...) { standardGeneric("unpersistRDD") })
229
216
230
217
# @rdname zipRDD
231
218
# @export
@@ -343,9 +330,7 @@ setGeneric("join", function(x, y, ...) { standardGeneric("join") })
343
330
# @export
344
331
setGeneric ("leftOuterJoin ", function(x, y, numPartitions) { standardGeneric("leftOuterJoin") })
345
332
346
- # ' @rdname partitionBy
347
- # ' @export
348
- setGeneric ("partitionBy ", function(x, ...) { standardGeneric("partitionBy") })
333
+ setGeneric ("partitionByRDD ", function(x, ...) { standardGeneric("partitionByRDD") })
349
334
350
335
# @rdname reduceByKey
351
336
# @seealso groupByKey
@@ -414,6 +399,14 @@ setGeneric("as.data.frame",
414
399
# ' @export
415
400
setGeneric ("attach ")
416
401
402
+ # ' @rdname cache
403
+ # ' @export
404
+ setGeneric ("cache ", function(x) { standardGeneric("cache") })
405
+
406
+ # ' @rdname collect
407
+ # ' @export
408
+ setGeneric ("collect ", function(x, ...) { standardGeneric("collect") })
409
+
417
410
# ' @rdname columns
418
411
# ' @export
419
412
setGeneric ("colnames ", function(x, do.NULL = TRUE, prefix = "col") { standardGeneric("colnames") })
@@ -434,6 +427,10 @@ setGeneric("coltypes<-", function(x, value) { standardGeneric("coltypes<-") })
434
427
# ' @export
435
428
setGeneric ("columns ", function(x) {standardGeneric("columns") })
436
429
430
+ # ' @rdname nrow
431
+ # ' @export
432
+ setGeneric ("count ", function(x) { standardGeneric("count") })
433
+
437
434
# ' @rdname cov
438
435
# ' @export
439
436
setGeneric ("cov ", function(x, ...) {standardGeneric("cov") })
@@ -477,6 +474,10 @@ setGeneric("gapplyCollect", function(x, ...) { standardGeneric("gapplyCollect")
477
474
# ' @export
478
475
setGeneric ("describe ", function(x, col, ...) { standardGeneric("describe") })
479
476
477
+ # ' @rdname distinct
478
+ # ' @export
479
+ setGeneric ("distinct ", function(x) { standardGeneric("distinct") })
480
+
480
481
# ' @rdname drop
481
482
# ' @export
482
483
setGeneric ("drop ", function(x, ...) { standardGeneric("drop") })
@@ -519,6 +520,10 @@ setGeneric("fillna", function(x, value, cols = NULL) { standardGeneric("fillna")
519
520
# ' @export
520
521
setGeneric ("filter ", function(x, condition) { standardGeneric("filter") })
521
522
523
+ # ' @rdname first
524
+ # ' @export
525
+ setGeneric ("first ", function(x, ...) { standardGeneric("first") })
526
+
522
527
# ' @rdname groupBy
523
528
# ' @export
524
529
setGeneric ("group_by ", function(x, ...) { standardGeneric("group_by") })
@@ -555,17 +560,25 @@ setGeneric("mutate", function(.data, ...) {standardGeneric("mutate") })
555
560
# ' @export
556
561
setGeneric ("orderBy ", function(x, col, ...) { standardGeneric("orderBy") })
557
562
563
+ # ' @rdname persist
564
+ # ' @export
565
+ setGeneric ("persist ", function(x, newLevel) { standardGeneric("persist") })
566
+
558
567
# ' @rdname printSchema
559
568
# ' @export
560
569
setGeneric ("printSchema ", function(x) { standardGeneric("printSchema") })
561
570
571
+ # ' @rdname registerTempTable-deprecated
572
+ # ' @export
573
+ setGeneric ("registerTempTable ", function(x, tableName) { standardGeneric("registerTempTable") })
574
+
562
575
# ' @rdname rename
563
576
# ' @export
564
577
setGeneric ("rename ", function(x, ...) { standardGeneric("rename") })
565
578
566
- # ' @rdname registerTempTable-deprecated
579
+ # ' @rdname repartition
567
580
# ' @export
568
- setGeneric ("registerTempTable ", function(x, tableName ) { standardGeneric("registerTempTable ") })
581
+ setGeneric ("repartition ", function(x, ... ) { standardGeneric("repartition ") })
569
582
570
583
# ' @rdname sample
571
584
# ' @export
@@ -592,6 +605,10 @@ setGeneric("saveAsTable", function(df, tableName, source = NULL, mode = "error",
592
605
# ' @export
593
606
setGeneric ("str ")
594
607
608
+ # ' @rdname take
609
+ # ' @export
610
+ setGeneric ("take ", function(x, num) { standardGeneric("take") })
611
+
595
612
# ' @rdname mutate
596
613
# ' @export
597
614
setGeneric ("transform ", function(`_data`, ...) {standardGeneric("transform") })
@@ -674,6 +691,10 @@ setGeneric("union", function(x, y) { standardGeneric("union") })
674
691
# ' @export
675
692
setGeneric ("unionAll ", function(x, y) { standardGeneric("unionAll") })
676
693
694
+ # ' @rdname unpersist-methods
695
+ # ' @export
696
+ setGeneric ("unpersist ", function(x, ...) { standardGeneric("unpersist") })
697
+
677
698
# ' @rdname filter
678
699
# ' @export
679
700
setGeneric ("where ", function(x, condition) { standardGeneric("where") })
@@ -771,6 +792,10 @@ setGeneric("over", function(x, window) { standardGeneric("over") })
771
792
772
793
# ##################### WindowSpec Methods ##########################
773
794
795
+ # ' @rdname partitionBy
796
+ # ' @export
797
+ setGeneric ("partitionBy ", function(x, ...) { standardGeneric("partitionBy") })
798
+
774
799
# ' @rdname rowsBetween
775
800
# ' @export
776
801
setGeneric ("rowsBetween ", function(x, start, end) { standardGeneric("rowsBetween") })
0 commit comments