1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
|
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
############ RDD Actions and Transformations ############
# @rdname aggregateRDD
# @seealso reduce
# @export
setGeneric("aggregateRDD",
function(x, zeroValue, seqOp, combOp) { standardGeneric("aggregateRDD") })
# @rdname cache-methods
# @export
setGeneric("cache", function(x) { standardGeneric("cache") })
# @rdname coalesce
# @seealso repartition
# @export
setGeneric("coalesce", function(x, numPartitions, ...) { standardGeneric("coalesce") })
# @rdname checkpoint-methods
# @export
setGeneric("checkpoint", function(x) { standardGeneric("checkpoint") })
# @rdname collect-methods
# @export
setGeneric("collect", function(x, ...) { standardGeneric("collect") })
# @rdname collect-methods
# @export
setGeneric("collectAsMap", function(x) { standardGeneric("collectAsMap") })
# @rdname collect-methods
# @export
setGeneric("collectPartition",
function(x, partitionId) {
standardGeneric("collectPartition")
})
# @rdname count
# @export
setGeneric("count", function(x) { standardGeneric("count") })
# @rdname countByValue
# @export
setGeneric("countByValue", function(x) { standardGeneric("countByValue") })
# @rdname crosstab
# @export
setGeneric("crosstab", function(x, col1, col2) { standardGeneric("crosstab") })
# @rdname freqItems
# @export
setGeneric("freqItems", function(x, cols, support = 0.01) { standardGeneric("freqItems") })
# @rdname approxQuantile
# @export
setGeneric("approxQuantile",
function(x, col, probabilities, relativeError) {
standardGeneric("approxQuantile")
})
# @rdname distinct
# @export
setGeneric("distinct", function(x, numPartitions = 1) { standardGeneric("distinct") })
# @rdname filterRDD
# @export
setGeneric("filterRDD", function(x, f) { standardGeneric("filterRDD") })
# @rdname first
# @export
setGeneric("first", function(x, ...) { standardGeneric("first") })
# @rdname flatMap
# @export
setGeneric("flatMap", function(X, FUN) { standardGeneric("flatMap") })
# @rdname fold
# @seealso reduce
# @export
setGeneric("fold", function(x, zeroValue, op) { standardGeneric("fold") })
setGeneric("foreach", function(x, func) { standardGeneric("foreach") })
setGeneric("foreachPartition", function(x, func) { standardGeneric("foreachPartition") })
# The jrdd accessor function.
setGeneric("getJRDD", function(rdd, ...) { standardGeneric("getJRDD") })
# @rdname glom
# @export
setGeneric("glom", function(x) { standardGeneric("glom") })
# @rdname histogram
# @export
setGeneric("histogram", function(df, col, nbins=10) { standardGeneric("histogram") })
# @rdname keyBy
# @export
setGeneric("keyBy", function(x, func) { standardGeneric("keyBy") })
setGeneric("lapplyPartition", function(X, FUN) { standardGeneric("lapplyPartition") })
setGeneric("lapplyPartitionsWithIndex",
function(X, FUN) {
standardGeneric("lapplyPartitionsWithIndex")
})
setGeneric("map", function(X, FUN) { standardGeneric("map") })
setGeneric("mapPartitions", function(X, FUN) { standardGeneric("mapPartitions") })
setGeneric("mapPartitionsWithIndex",
function(X, FUN) { standardGeneric("mapPartitionsWithIndex") })
# @rdname maximum
# @export
setGeneric("maximum", function(x) { standardGeneric("maximum") })
# @rdname minimum
# @export
setGeneric("minimum", function(x) { standardGeneric("minimum") })
# @rdname sumRDD
# @export
setGeneric("sumRDD", function(x) { standardGeneric("sumRDD") })
# @rdname name
# @export
setGeneric("name", function(x) { standardGeneric("name") })
# @rdname getNumPartitions
# @export
setGeneric("getNumPartitions", function(x) { standardGeneric("getNumPartitions") })
# @rdname getNumPartitions
# @export
setGeneric("numPartitions", function(x) { standardGeneric("numPartitions") })
# @rdname persist
# @export
setGeneric("persist", function(x, newLevel) { standardGeneric("persist") })
# @rdname pipeRDD
# @export
setGeneric("pipeRDD", function(x, command, env = list()) { standardGeneric("pipeRDD")})
# @rdname pivot
# @export
setGeneric("pivot", function(x, colname, values = list()) { standardGeneric("pivot") })
# @rdname reduce
# @export
setGeneric("reduce", function(x, func) { standardGeneric("reduce") })
# @rdname repartition
# @seealso coalesce
# @export
setGeneric("repartition", function(x, ...) { standardGeneric("repartition") })
# @rdname sampleRDD
# @export
setGeneric("sampleRDD",
function(x, withReplacement, fraction, seed) {
standardGeneric("sampleRDD")
})
# @rdname saveAsObjectFile
# @seealso objectFile
# @export
setGeneric("saveAsObjectFile", function(x, path) { standardGeneric("saveAsObjectFile") })
# @rdname saveAsTextFile
# @export
setGeneric("saveAsTextFile", function(x, path) { standardGeneric("saveAsTextFile") })
# @rdname setName
# @export
setGeneric("setName", function(x, name) { standardGeneric("setName") })
# @rdname sortBy
# @export
setGeneric("sortBy",
function(x, func, ascending = TRUE, numPartitions = 1) {
standardGeneric("sortBy")
})
# @rdname take
# @export
setGeneric("take", function(x, num) { standardGeneric("take") })
# @rdname takeOrdered
# @export
setGeneric("takeOrdered", function(x, num) { standardGeneric("takeOrdered") })
# @rdname takeSample
# @export
setGeneric("takeSample",
function(x, withReplacement, num, seed) {
standardGeneric("takeSample")
})
# @rdname top
# @export
setGeneric("top", function(x, num) { standardGeneric("top") })
# @rdname unionRDD
# @export
setGeneric("unionRDD", function(x, y) { standardGeneric("unionRDD") })
# @rdname unpersist-methods
# @export
setGeneric("unpersist", function(x, ...) { standardGeneric("unpersist") })
# @rdname zipRDD
# @export
setGeneric("zipRDD", function(x, other) { standardGeneric("zipRDD") })
# @rdname zipRDD
# @export
setGeneric("zipPartitions", function(..., func) { standardGeneric("zipPartitions") },
signature = "...")
# @rdname zipWithIndex
# @seealso zipWithUniqueId
# @export
setGeneric("zipWithIndex", function(x) { standardGeneric("zipWithIndex") })
# @rdname zipWithUniqueId
# @seealso zipWithIndex
# @export
setGeneric("zipWithUniqueId", function(x) { standardGeneric("zipWithUniqueId") })
############ Binary Functions #############
# @rdname cartesian
# @export
setGeneric("cartesian", function(x, other) { standardGeneric("cartesian") })
# @rdname countByKey
# @export
setGeneric("countByKey", function(x) { standardGeneric("countByKey") })
# @rdname flatMapValues
# @export
setGeneric("flatMapValues", function(X, FUN) { standardGeneric("flatMapValues") })
# @rdname intersection
# @export
setGeneric("intersection",
function(x, other, numPartitions = 1) {
standardGeneric("intersection")
})
# @rdname keys
# @export
setGeneric("keys", function(x) { standardGeneric("keys") })
# @rdname lookup
# @export
setGeneric("lookup", function(x, key) { standardGeneric("lookup") })
# @rdname mapValues
# @export
setGeneric("mapValues", function(X, FUN) { standardGeneric("mapValues") })
# @rdname sampleByKey
# @export
setGeneric("sampleByKey",
function(x, withReplacement, fractions, seed) {
standardGeneric("sampleByKey")
})
# @rdname values
# @export
setGeneric("values", function(x) { standardGeneric("values") })
############ Shuffle Functions ############
# @rdname aggregateByKey
# @seealso foldByKey, combineByKey
# @export
setGeneric("aggregateByKey",
function(x, zeroValue, seqOp, combOp, numPartitions) {
standardGeneric("aggregateByKey")
})
# @rdname cogroup
# @export
setGeneric("cogroup",
function(..., numPartitions) {
standardGeneric("cogroup")
},
signature = "...")
# @rdname combineByKey
# @seealso groupByKey, reduceByKey
# @export
setGeneric("combineByKey",
function(x, createCombiner, mergeValue, mergeCombiners, numPartitions) {
standardGeneric("combineByKey")
})
# @rdname foldByKey
# @seealso aggregateByKey, combineByKey
# @export
setGeneric("foldByKey",
function(x, zeroValue, func, numPartitions) {
standardGeneric("foldByKey")
})
# @rdname join-methods
# @export
setGeneric("fullOuterJoin", function(x, y, numPartitions) { standardGeneric("fullOuterJoin") })
# @rdname groupByKey
# @seealso reduceByKey
# @export
setGeneric("groupByKey", function(x, numPartitions) { standardGeneric("groupByKey") })
# @rdname join-methods
# @export
setGeneric("join", function(x, y, ...) { standardGeneric("join") })
# @rdname join-methods
# @export
setGeneric("leftOuterJoin", function(x, y, numPartitions) { standardGeneric("leftOuterJoin") })
#' @rdname partitionBy
#' @export
setGeneric("partitionBy", function(x, ...) { standardGeneric("partitionBy") })
# @rdname reduceByKey
# @seealso groupByKey
# @export
setGeneric("reduceByKey", function(x, combineFunc, numPartitions) { standardGeneric("reduceByKey")})
# @rdname reduceByKeyLocally
# @seealso reduceByKey
# @export
setGeneric("reduceByKeyLocally",
function(x, combineFunc) {
standardGeneric("reduceByKeyLocally")
})
# @rdname join-methods
# @export
setGeneric("rightOuterJoin", function(x, y, numPartitions) { standardGeneric("rightOuterJoin") })
# @rdname sortByKey
# @export
setGeneric("sortByKey",
function(x, ascending = TRUE, numPartitions = 1) {
standardGeneric("sortByKey")
})
# @rdname subtract
# @export
setGeneric("subtract",
function(x, other, numPartitions = 1) {
standardGeneric("subtract")
})
# @rdname subtractByKey
# @export
setGeneric("subtractByKey",
function(x, other, numPartitions = 1) {
standardGeneric("subtractByKey")
})
################### Broadcast Variable Methods #################
# @rdname broadcast
# @export
setGeneric("value", function(bcast) { standardGeneric("value") })
#################### SparkDataFrame Methods ########################
#' @rdname agg
#' @export
setGeneric("agg", function (x, ...) { standardGeneric("agg") })
#' @rdname arrange
#' @export
setGeneric("arrange", function(x, col, ...) { standardGeneric("arrange") })
#' @rdname as.data.frame
#' @export
setGeneric("as.data.frame",
function(x, row.names = NULL, optional = FALSE, ...) {
standardGeneric("as.data.frame")
})
#' @rdname attach
#' @export
setGeneric("attach")
#' @rdname columns
#' @export
setGeneric("colnames", function(x, do.NULL = TRUE, prefix = "col") { standardGeneric("colnames") })
#' @rdname columns
#' @export
setGeneric("colnames<-", function(x, value) { standardGeneric("colnames<-") })
#' @rdname coltypes
#' @export
setGeneric("coltypes", function(x) { standardGeneric("coltypes") })
#' @rdname coltypes
#' @export
setGeneric("coltypes<-", function(x, value) { standardGeneric("coltypes<-") })
#' @rdname columns
#' @export
setGeneric("columns", function(x) {standardGeneric("columns") })
#' @rdname cov
#' @export
setGeneric("cov", function(x, ...) {standardGeneric("cov") })
#' @rdname corr
#' @export
setGeneric("corr", function(x, ...) {standardGeneric("corr") })
#' @rdname cov
#' @export
setGeneric("covar_samp", function(col1, col2) {standardGeneric("covar_samp") })
#' @rdname covar_pop
#' @export
setGeneric("covar_pop", function(col1, col2) {standardGeneric("covar_pop") })
#' @rdname createOrReplaceTempView
#' @export
setGeneric("createOrReplaceTempView",
function(x, viewName) {
standardGeneric("createOrReplaceTempView")
})
#' @rdname dapply
#' @export
setGeneric("dapply", function(x, func, schema) { standardGeneric("dapply") })
#' @rdname dapplyCollect
#' @export
setGeneric("dapplyCollect", function(x, func) { standardGeneric("dapplyCollect") })
#' @rdname gapply
#' @export
setGeneric("gapply", function(x, ...) { standardGeneric("gapply") })
#' @rdname gapplyCollect
#' @export
setGeneric("gapplyCollect", function(x, ...) { standardGeneric("gapplyCollect") })
#' @rdname summary
#' @export
setGeneric("describe", function(x, col, ...) { standardGeneric("describe") })
#' @rdname drop
#' @export
setGeneric("drop", function(x, ...) { standardGeneric("drop") })
#' @rdname dropDuplicates
#' @export
setGeneric("dropDuplicates", function(x, ...) { standardGeneric("dropDuplicates") })
#' @rdname nafunctions
#' @export
setGeneric("dropna",
function(x, how = c("any", "all"), minNonNulls = NULL, cols = NULL) {
standardGeneric("dropna")
})
#' @rdname nafunctions
#' @export
setGeneric("na.omit",
function(object, ...) {
standardGeneric("na.omit")
})
#' @rdname dtypes
#' @export
setGeneric("dtypes", function(x) { standardGeneric("dtypes") })
#' @rdname explain
#' @export
setGeneric("explain", function(x, ...) { standardGeneric("explain") })
#' @rdname except
#' @export
setGeneric("except", function(x, y) { standardGeneric("except") })
#' @rdname nafunctions
#' @export
setGeneric("fillna", function(x, value, cols = NULL) { standardGeneric("fillna") })
#' @rdname filter
#' @export
setGeneric("filter", function(x, condition) { standardGeneric("filter") })
#' @rdname groupBy
#' @export
setGeneric("group_by", function(x, ...) { standardGeneric("group_by") })
#' @rdname groupBy
#' @export
setGeneric("groupBy", function(x, ...) { standardGeneric("groupBy") })
#' @rdname insertInto
#' @export
setGeneric("insertInto", function(x, tableName, ...) { standardGeneric("insertInto") })
#' @rdname intersect
#' @export
setGeneric("intersect", function(x, y) { standardGeneric("intersect") })
#' @rdname isLocal
#' @export
setGeneric("isLocal", function(x) { standardGeneric("isLocal") })
#' @rdname limit
#' @export
setGeneric("limit", function(x, num) {standardGeneric("limit") })
#' @rdname merge
#' @export
setGeneric("merge")
#' @rdname mutate
#' @export
setGeneric("mutate", function(.data, ...) {standardGeneric("mutate") })
#' @rdname arrange
#' @export
setGeneric("orderBy", function(x, col, ...) { standardGeneric("orderBy") })
#' @rdname printSchema
#' @export
setGeneric("printSchema", function(x) { standardGeneric("printSchema") })
#' @rdname rename
#' @export
setGeneric("rename", function(x, ...) { standardGeneric("rename") })
#' @rdname registerTempTable-deprecated
#' @export
setGeneric("registerTempTable", function(x, tableName) { standardGeneric("registerTempTable") })
#' @rdname sample
#' @export
setGeneric("sample",
function(x, withReplacement, fraction, seed) {
standardGeneric("sample")
})
#' @rdname sample
#' @export
setGeneric("sample_frac",
function(x, withReplacement, fraction, seed) { standardGeneric("sample_frac") })
#' @rdname sampleBy
#' @export
setGeneric("sampleBy", function(x, col, fractions, seed) { standardGeneric("sampleBy") })
#' @rdname saveAsTable
#' @export
setGeneric("saveAsTable", function(df, tableName, source = NULL, mode = "error", ...) {
standardGeneric("saveAsTable")
})
#' @export
setGeneric("str")
#' @rdname mutate
#' @export
setGeneric("transform", function(`_data`, ...) {standardGeneric("transform") })
#' @rdname write.df
#' @export
setGeneric("write.df", function(df, path, source = NULL, mode = "error", ...) {
standardGeneric("write.df")
})
#' @rdname write.df
#' @export
setGeneric("saveDF", function(df, path, source = NULL, mode = "error", ...) {
standardGeneric("saveDF")
})
#' @rdname write.jdbc
#' @export
setGeneric("write.jdbc", function(x, url, tableName, mode = "error", ...) {
standardGeneric("write.jdbc")
})
#' @rdname write.json
#' @export
setGeneric("write.json", function(x, path) { standardGeneric("write.json") })
#' @rdname write.orc
#' @export
setGeneric("write.orc", function(x, path) { standardGeneric("write.orc") })
#' @rdname write.parquet
#' @export
setGeneric("write.parquet", function(x, path) { standardGeneric("write.parquet") })
#' @rdname write.parquet
#' @export
setGeneric("saveAsParquetFile", function(x, path) { standardGeneric("saveAsParquetFile") })
#' @rdname write.text
#' @export
setGeneric("write.text", function(x, path) { standardGeneric("write.text") })
#' @rdname schema
#' @export
setGeneric("schema", function(x) { standardGeneric("schema") })
#' @rdname select
#' @export
setGeneric("select", function(x, col, ...) { standardGeneric("select") } )
#' @rdname selectExpr
#' @export
setGeneric("selectExpr", function(x, expr, ...) { standardGeneric("selectExpr") })
#' @rdname showDF
#' @export
setGeneric("showDF", function(x, ...) { standardGeneric("showDF") })
# @rdname subset
# @export
setGeneric("subset", function(x, ...) { standardGeneric("subset") })
#' @rdname agg
#' @export
setGeneric("summarize", function(x, ...) { standardGeneric("summarize") })
#' @rdname summary
#' @export
setGeneric("summary", function(object, ...) { standardGeneric("summary") })
setGeneric("toJSON", function(x) { standardGeneric("toJSON") })
setGeneric("toRDD", function(x) { standardGeneric("toRDD") })
#' @rdname union
#' @export
setGeneric("union", function(x, y) { standardGeneric("union") })
#' @rdname union
#' @export
setGeneric("unionAll", function(x, y) { standardGeneric("unionAll") })
#' @rdname filter
#' @export
setGeneric("where", function(x, condition) { standardGeneric("where") })
#' @rdname with
#' @export
setGeneric("with")
#' @rdname withColumn
#' @export
setGeneric("withColumn", function(x, colName, col) { standardGeneric("withColumn") })
#' @rdname rename
#' @export
setGeneric("withColumnRenamed",
function(x, existingCol, newCol) { standardGeneric("withColumnRenamed") })
#' @rdname write.df
#' @export
setGeneric("write.df", function(df, path, ...) { standardGeneric("write.df") })
#' @rdname randomSplit
#' @export
setGeneric("randomSplit", function(x, weights, seed) { standardGeneric("randomSplit") })
###################### Column Methods ##########################
#' @rdname columnfunctions
#' @export
setGeneric("asc", function(x) { standardGeneric("asc") })
#' @rdname between
#' @export
setGeneric("between", function(x, bounds) { standardGeneric("between") })
#' @rdname cast
#' @export
setGeneric("cast", function(x, dataType) { standardGeneric("cast") })
#' @rdname columnfunctions
#' @export
setGeneric("contains", function(x, ...) { standardGeneric("contains") })
#' @rdname columnfunctions
#' @export
setGeneric("desc", function(x) { standardGeneric("desc") })
#' @rdname endsWith
#' @export
setGeneric("endsWith", function(x, suffix) { standardGeneric("endsWith") })
#' @rdname columnfunctions
#' @export
setGeneric("getField", function(x, ...) { standardGeneric("getField") })
#' @rdname columnfunctions
#' @export
setGeneric("getItem", function(x, ...) { standardGeneric("getItem") })
#' @rdname columnfunctions
#' @export
setGeneric("isNaN", function(x) { standardGeneric("isNaN") })
#' @rdname columnfunctions
#' @export
setGeneric("isNull", function(x) { standardGeneric("isNull") })
#' @rdname columnfunctions
#' @export
setGeneric("isNotNull", function(x) { standardGeneric("isNotNull") })
#' @rdname columnfunctions
#' @export
setGeneric("like", function(x, ...) { standardGeneric("like") })
#' @rdname columnfunctions
#' @export
setGeneric("rlike", function(x, ...) { standardGeneric("rlike") })
#' @rdname startsWith
#' @export
setGeneric("startsWith", function(x, prefix) { standardGeneric("startsWith") })
#' @rdname when
#' @export
setGeneric("when", function(condition, value) { standardGeneric("when") })
#' @rdname otherwise
#' @export
setGeneric("otherwise", function(x, value) { standardGeneric("otherwise") })
#' @rdname over
#' @export
setGeneric("over", function(x, window) { standardGeneric("over") })
###################### WindowSpec Methods ##########################
#' @rdname rowsBetween
#' @export
setGeneric("rowsBetween", function(x, start, end) { standardGeneric("rowsBetween") })
#' @rdname rangeBetween
#' @export
setGeneric("rangeBetween", function(x, start, end) { standardGeneric("rangeBetween") })
#' @rdname window.partitionBy
#' @export
setGeneric("window.partitionBy", function(col, ...) { standardGeneric("window.partitionBy") })
#' @rdname window.orderBy
#' @export
setGeneric("window.orderBy", function(col, ...) { standardGeneric("window.orderBy") })
###################### Expression Function Methods ##########################
#' @rdname add_months
#' @export
setGeneric("add_months", function(y, x) { standardGeneric("add_months") })
#' @rdname approxCountDistinct
#' @export
setGeneric("approxCountDistinct", function(x, ...) { standardGeneric("approxCountDistinct") })
#' @rdname array_contains
#' @export
setGeneric("array_contains", function(x, value) { standardGeneric("array_contains") })
#' @rdname ascii
#' @export
setGeneric("ascii", function(x) { standardGeneric("ascii") })
#' @rdname avg
#' @export
setGeneric("avg", function(x, ...) { standardGeneric("avg") })
#' @rdname base64
#' @export
setGeneric("base64", function(x) { standardGeneric("base64") })
#' @rdname bin
#' @export
setGeneric("bin", function(x) { standardGeneric("bin") })
#' @rdname bitwiseNOT
#' @export
setGeneric("bitwiseNOT", function(x) { standardGeneric("bitwiseNOT") })
#' @rdname bround
#' @export
setGeneric("bround", function(x, ...) { standardGeneric("bround") })
#' @rdname cbrt
#' @export
setGeneric("cbrt", function(x) { standardGeneric("cbrt") })
#' @rdname ceil
#' @export
setGeneric("ceil", function(x) { standardGeneric("ceil") })
#' @rdname column
#' @export
setGeneric("column", function(x) { standardGeneric("column") })
#' @rdname concat
#' @export
setGeneric("concat", function(x, ...) { standardGeneric("concat") })
#' @rdname concat_ws
#' @export
setGeneric("concat_ws", function(sep, x, ...) { standardGeneric("concat_ws") })
#' @rdname conv
#' @export
setGeneric("conv", function(x, fromBase, toBase) { standardGeneric("conv") })
#' @rdname countDistinct
#' @export
setGeneric("countDistinct", function(x, ...) { standardGeneric("countDistinct") })
#' @rdname crc32
#' @export
setGeneric("crc32", function(x) { standardGeneric("crc32") })
#' @rdname hash
#' @export
setGeneric("hash", function(x, ...) { standardGeneric("hash") })
#' @rdname cume_dist
#' @export
setGeneric("cume_dist", function(x) { standardGeneric("cume_dist") })
#' @rdname datediff
#' @export
setGeneric("datediff", function(y, x) { standardGeneric("datediff") })
#' @rdname date_add
#' @export
setGeneric("date_add", function(y, x) { standardGeneric("date_add") })
#' @rdname date_format
#' @export
setGeneric("date_format", function(y, x) { standardGeneric("date_format") })
#' @rdname date_sub
#' @export
setGeneric("date_sub", function(y, x) { standardGeneric("date_sub") })
#' @rdname dayofmonth
#' @export
setGeneric("dayofmonth", function(x) { standardGeneric("dayofmonth") })
#' @rdname dayofyear
#' @export
setGeneric("dayofyear", function(x) { standardGeneric("dayofyear") })
#' @rdname decode
#' @export
setGeneric("decode", function(x, charset) { standardGeneric("decode") })
#' @rdname dense_rank
#' @export
setGeneric("dense_rank", function(x) { standardGeneric("dense_rank") })
#' @rdname encode
#' @export
setGeneric("encode", function(x, charset) { standardGeneric("encode") })
#' @rdname explode
#' @export
setGeneric("explode", function(x) { standardGeneric("explode") })
#' @rdname expr
#' @export
setGeneric("expr", function(x) { standardGeneric("expr") })
#' @rdname from_utc_timestamp
#' @export
setGeneric("from_utc_timestamp", function(y, x) { standardGeneric("from_utc_timestamp") })
#' @rdname format_number
#' @export
setGeneric("format_number", function(y, x) { standardGeneric("format_number") })
#' @rdname format_string
#' @export
setGeneric("format_string", function(format, x, ...) { standardGeneric("format_string") })
#' @rdname from_unixtime
#' @export
setGeneric("from_unixtime", function(x, ...) { standardGeneric("from_unixtime") })
#' @rdname greatest
#' @export
setGeneric("greatest", function(x, ...) { standardGeneric("greatest") })
#' @rdname hex
#' @export
setGeneric("hex", function(x) { standardGeneric("hex") })
#' @rdname hour
#' @export
setGeneric("hour", function(x) { standardGeneric("hour") })
#' @rdname hypot
#' @export
setGeneric("hypot", function(y, x) { standardGeneric("hypot") })
#' @rdname initcap
#' @export
setGeneric("initcap", function(x) { standardGeneric("initcap") })
#' @rdname instr
#' @export
setGeneric("instr", function(y, x) { standardGeneric("instr") })
#' @rdname is.nan
#' @export
setGeneric("isnan", function(x) { standardGeneric("isnan") })
#' @rdname kurtosis
#' @export
setGeneric("kurtosis", function(x) { standardGeneric("kurtosis") })
#' @rdname lag
#' @export
setGeneric("lag", function(x, ...) { standardGeneric("lag") })
#' @rdname last
#' @export
setGeneric("last", function(x, ...) { standardGeneric("last") })
#' @rdname last_day
#' @export
setGeneric("last_day", function(x) { standardGeneric("last_day") })
#' @rdname lead
#' @export
setGeneric("lead", function(x, offset, defaultValue = NULL) { standardGeneric("lead") })
#' @rdname least
#' @export
setGeneric("least", function(x, ...) { standardGeneric("least") })
#' @rdname levenshtein
#' @export
setGeneric("levenshtein", function(y, x) { standardGeneric("levenshtein") })
#' @rdname lit
#' @export
setGeneric("lit", function(x) { standardGeneric("lit") })
#' @rdname locate
#' @export
setGeneric("locate", function(substr, str, ...) { standardGeneric("locate") })
#' @rdname lower
#' @export
setGeneric("lower", function(x) { standardGeneric("lower") })
#' @rdname lpad
#' @export
setGeneric("lpad", function(x, len, pad) { standardGeneric("lpad") })
#' @rdname ltrim
#' @export
setGeneric("ltrim", function(x) { standardGeneric("ltrim") })
#' @rdname md5
#' @export
setGeneric("md5", function(x) { standardGeneric("md5") })
#' @rdname minute
#' @export
setGeneric("minute", function(x) { standardGeneric("minute") })
#' @rdname monotonically_increasing_id
#' @export
setGeneric("monotonically_increasing_id",
function(x) { standardGeneric("monotonically_increasing_id") })
#' @rdname month
#' @export
setGeneric("month", function(x) { standardGeneric("month") })
#' @rdname months_between
#' @export
setGeneric("months_between", function(y, x) { standardGeneric("months_between") })
#' @rdname count
#' @export
setGeneric("n", function(x) { standardGeneric("n") })
#' @rdname nanvl
#' @export
setGeneric("nanvl", function(y, x) { standardGeneric("nanvl") })
#' @rdname negate
#' @export
setGeneric("negate", function(x) { standardGeneric("negate") })
#' @rdname next_day
#' @export
setGeneric("next_day", function(y, x) { standardGeneric("next_day") })
#' @rdname ntile
#' @export
setGeneric("ntile", function(x) { standardGeneric("ntile") })
#' @rdname countDistinct
#' @export
setGeneric("n_distinct", function(x, ...) { standardGeneric("n_distinct") })
#' @rdname percent_rank
#' @export
setGeneric("percent_rank", function(x) { standardGeneric("percent_rank") })
#' @rdname pmod
#' @export
setGeneric("pmod", function(y, x) { standardGeneric("pmod") })
#' @rdname posexplode
#' @export
setGeneric("posexplode", function(x) { standardGeneric("posexplode") })
#' @rdname quarter
#' @export
setGeneric("quarter", function(x) { standardGeneric("quarter") })
#' @rdname rand
#' @export
setGeneric("rand", function(seed) { standardGeneric("rand") })
#' @rdname randn
#' @export
setGeneric("randn", function(seed) { standardGeneric("randn") })
#' @rdname rank
#' @export
setGeneric("rank", function(x, ...) { standardGeneric("rank") })
#' @rdname regexp_extract
#' @export
setGeneric("regexp_extract", function(x, pattern, idx) { standardGeneric("regexp_extract") })
#' @rdname regexp_replace
#' @export
setGeneric("regexp_replace",
function(x, pattern, replacement) { standardGeneric("regexp_replace") })
#' @rdname reverse
#' @export
setGeneric("reverse", function(x) { standardGeneric("reverse") })
#' @rdname rint
#' @export
setGeneric("rint", function(x, ...) { standardGeneric("rint") })
#' @rdname row_number
#' @export
setGeneric("row_number", function(x) { standardGeneric("row_number") })
#' @rdname rpad
#' @export
setGeneric("rpad", function(x, len, pad) { standardGeneric("rpad") })
#' @rdname rtrim
#' @export
setGeneric("rtrim", function(x) { standardGeneric("rtrim") })
#' @rdname sd
#' @export
setGeneric("sd", function(x, na.rm = FALSE) { standardGeneric("sd") })
#' @rdname second
#' @export
setGeneric("second", function(x) { standardGeneric("second") })
#' @rdname sha1
#' @export
setGeneric("sha1", function(x) { standardGeneric("sha1") })
#' @rdname sha2
#' @export
setGeneric("sha2", function(y, x) { standardGeneric("sha2") })
#' @rdname shiftLeft
#' @export
setGeneric("shiftLeft", function(y, x) { standardGeneric("shiftLeft") })
#' @rdname shiftRight
#' @export
setGeneric("shiftRight", function(y, x) { standardGeneric("shiftRight") })
#' @rdname shiftRightUnsigned
#' @export
setGeneric("shiftRightUnsigned", function(y, x) { standardGeneric("shiftRightUnsigned") })
#' @rdname sign
#' @export
setGeneric("signum", function(x) { standardGeneric("signum") })
#' @rdname size
#' @export
setGeneric("size", function(x) { standardGeneric("size") })
#' @rdname skewness
#' @export
setGeneric("skewness", function(x) { standardGeneric("skewness") })
#' @rdname sort_array
#' @export
setGeneric("sort_array", function(x, asc = TRUE) { standardGeneric("sort_array") })
#' @rdname soundex
#' @export
setGeneric("soundex", function(x) { standardGeneric("soundex") })
#' @rdname spark_partition_id
#' @export
setGeneric("spark_partition_id", function(x) { standardGeneric("spark_partition_id") })
#' @rdname sd
#' @export
setGeneric("stddev", function(x) { standardGeneric("stddev") })
#' @rdname stddev_pop
#' @export
setGeneric("stddev_pop", function(x) { standardGeneric("stddev_pop") })
#' @rdname stddev_samp
#' @export
setGeneric("stddev_samp", function(x) { standardGeneric("stddev_samp") })
#' @rdname struct
#' @export
setGeneric("struct", function(x, ...) { standardGeneric("struct") })
#' @rdname substring_index
#' @export
setGeneric("substring_index", function(x, delim, count) { standardGeneric("substring_index") })
#' @rdname sumDistinct
#' @export
setGeneric("sumDistinct", function(x) { standardGeneric("sumDistinct") })
#' @rdname toDegrees
#' @export
setGeneric("toDegrees", function(x) { standardGeneric("toDegrees") })
#' @rdname toRadians
#' @export
setGeneric("toRadians", function(x) { standardGeneric("toRadians") })
#' @rdname to_date
#' @export
setGeneric("to_date", function(x) { standardGeneric("to_date") })
#' @rdname to_utc_timestamp
#' @export
setGeneric("to_utc_timestamp", function(y, x) { standardGeneric("to_utc_timestamp") })
#' @rdname translate
#' @export
setGeneric("translate", function(x, matchingString, replaceString) { standardGeneric("translate") })
#' @rdname trim
#' @export
setGeneric("trim", function(x) { standardGeneric("trim") })
#' @rdname unbase64
#' @export
setGeneric("unbase64", function(x) { standardGeneric("unbase64") })
#' @rdname unhex
#' @export
setGeneric("unhex", function(x) { standardGeneric("unhex") })
#' @rdname unix_timestamp
#' @export
setGeneric("unix_timestamp", function(x, format) { standardGeneric("unix_timestamp") })
#' @rdname upper
#' @export
setGeneric("upper", function(x) { standardGeneric("upper") })
#' @rdname var
#' @export
setGeneric("var", function(x, y = NULL, na.rm = FALSE, use) { standardGeneric("var") })
#' @rdname var
#' @export
setGeneric("variance", function(x) { standardGeneric("variance") })
#' @rdname var_pop
#' @export
setGeneric("var_pop", function(x) { standardGeneric("var_pop") })
#' @rdname var_samp
#' @export
setGeneric("var_samp", function(x) { standardGeneric("var_samp") })
#' @rdname weekofyear
#' @export
setGeneric("weekofyear", function(x) { standardGeneric("weekofyear") })
#' @rdname window
#' @export
setGeneric("window", function(x, ...) { standardGeneric("window") })
#' @rdname year
#' @export
setGeneric("year", function(x) { standardGeneric("year") })
#' @rdname spark.glm
#' @export
setGeneric("spark.glm", function(data, formula, ...) { standardGeneric("spark.glm") })
#' @rdname glm
#' @export
setGeneric("glm")
#' @rdname predict
#' @export
setGeneric("predict", function(object, ...) { standardGeneric("predict") })
#' @rdname rbind
#' @export
setGeneric("rbind", signature = "...")
#' @rdname spark.kmeans
#' @export
setGeneric("spark.kmeans", function(data, formula, ...) { standardGeneric("spark.kmeans") })
#' @rdname fitted
#' @export
setGeneric("fitted")
#' @rdname spark.naiveBayes
#' @export
setGeneric("spark.naiveBayes", function(data, formula, ...) { standardGeneric("spark.naiveBayes") })
#' @rdname spark.survreg
#' @export
setGeneric("spark.survreg", function(data, formula, ...) { standardGeneric("spark.survreg") })
#' @rdname write.ml
#' @export
setGeneric("write.ml", function(object, path, ...) { standardGeneric("write.ml") })
|