Skip to content

Commit

Permalink
modified: pkg/R/RDD.R
Browse files Browse the repository at this point in the history
	modified:   pkg/R/context.R
  • Loading branch information
hqzizania committed Feb 12, 2015
1 parent bd6705b commit 5f29551
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
13 changes: 5 additions & 8 deletions pkg/R/RDD.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,10 @@ setMethod("getJRDD", signature(rdd = "PipelinedRDD"),
computeFunc <- function(split, part) {
rdd@func(split, part)
}
serializedFuncArr <- serialize("computeFunc", connection = NULL,
ascii = TRUE)
serializedFuncArr <- serialize("computeFunc", connection = NULL)

packageNamesArr <- serialize(.sparkREnv[[".packages"]],
connection = NULL,
ascii = TRUE)
connection = NULL)

broadcastArr <- lapply(ls(.broadcastNames),
function(name) { get(name, .broadcastNames) })
Expand Down Expand Up @@ -1338,12 +1336,11 @@ setMethod("partitionBy",
depsBinArr <- getDependencies(partitionFunc)

serializedHashFuncBytes <- serialize(as.character(substitute(partitionFunc)),
connection = NULL,
ascii = TRUE)
connection = NULL)

packageNamesArr <- serialize(.sparkREnv$.packages,
connection = NULL,
ascii = TRUE)
connection = NULL)

broadcastArr <- lapply(ls(.broadcastNames), function(name) {
get(name, .broadcastNames) })
jrdd <- getJRDD(rdd)
Expand Down
2 changes: 1 addition & 1 deletion pkg/R/context.R
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ includePackage <- function(sc, pkg) {
#'}
broadcast <- function(sc, object) {
objName <- as.character(substitute(object))
serializedObj <- serialize(object, connection = NULL, ascii = TRUE)
serializedObj <- serialize(object, connection = NULL)

jBroadcast <- callJMethod(sc, "broadcast", serializedObj)
id <- as.character(callJMethod(jBroadcast, "id"))
Expand Down

0 comments on commit 5f29551

Please sign in to comment.