aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-05-06 17:28:11 -0700
committerReynold Xin <rxin@databricks.com>2015-05-06 17:32:00 -0700
commit4b91e18d9b7803dbfe1e1cf20b46163d8cb8716c (patch)
tree976d7d35eeaf0fed9d9183074eaf37e78af4b940 /R
parentc0ec20a510bb4d69b8efe561d03c3d6a32dc937e (diff)
downloadspark-4b91e18d9b7803dbfe1e1cf20b46163d8cb8716c.tar.gz
spark-4b91e18d9b7803dbfe1e1cf20b46163d8cb8716c.tar.bz2
spark-4b91e18d9b7803dbfe1e1cf20b46163d8cb8716c.zip
[SPARK-6799] [SPARKR] Remove SparkR RDD examples, add dataframe examples
This PR also makes some of the DataFrame to RDD methods private as the RDD class is private in 1.4 cc rxin pwendell Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu> Closes #5949 from shivaram/sparkr-examples and squashes the following commits: 6c42fdc [Shivaram Venkataraman] Remove SparkR RDD examples, add dataframe examples (cherry picked from commit 4e930420c19ae7773b138dfc7db8fc03b4660251) Signed-off-by: Reynold Xin <rxin@databricks.com>
Diffstat (limited to 'R')
-rw-r--r--R/pkg/NAMESPACE4
-rw-r--r--R/pkg/R/DataFrame.R2
2 files changed, 1 insertions, 5 deletions
diff --git a/R/pkg/NAMESPACE b/R/pkg/NAMESPACE
index 528e6608c3..3fb92be094 100644
--- a/R/pkg/NAMESPACE
+++ b/R/pkg/NAMESPACE
@@ -45,8 +45,6 @@ exportMethods("cache",
"showDF",
"sortDF",
"take",
- "toJSON",
- "toRDD",
"unionAll",
"unpersist",
"where",
@@ -95,14 +93,12 @@ export("cacheTable",
"createExternalTable",
"dropTempTable",
"jsonFile",
- "jsonRDD",
"loadDF",
"parquetFile",
"sql",
"table",
"tableNames",
"tables",
- "toDF",
"uncacheTable")
export("sparkRSQL.init",
diff --git a/R/pkg/R/DataFrame.R b/R/pkg/R/DataFrame.R
index 56c305d912..47d92f141c 100644
--- a/R/pkg/R/DataFrame.R
+++ b/R/pkg/R/DataFrame.R
@@ -272,7 +272,7 @@ setMethod("names",
setMethod("registerTempTable",
signature(x = "DataFrame", tableName = "character"),
function(x, tableName) {
- callJMethod(x@sdf, "registerTempTable", tableName)
+ invisible(callJMethod(x@sdf, "registerTempTable", tableName))
})
#' insertInto