diff options
author | Matei Zaharia <matei@eecs.berkeley.edu> | 2012-10-12 17:53:20 -0700 |
---|---|---|
committer | Matei Zaharia <matei@eecs.berkeley.edu> | 2012-10-12 17:53:20 -0700 |
commit | 8d7b77bcb545e7e1167cf6e4a010809d5bd76c5a (patch) | |
tree | 2088f18ec9c9c4db88208a9de77e90476ade6245 /examples | |
parent | 682b2d9329ebfd82f5231acd940f9dbd2037d2ae (diff) | |
download | spark-8d7b77bcb545e7e1167cf6e4a010809d5bd76c5a.tar.gz spark-8d7b77bcb545e7e1167cf6e4a010809d5bd76c5a.tar.bz2 spark-8d7b77bcb545e7e1167cf6e4a010809d5bd76c5a.zip |
Some doc and usability improvements:
- Added a StorageLevels class for easy access to StorageLevel constants
in Java
- Added doc comments on Function classes in Java
- Updated Accumulator and HadoopWriter docs slightly
Diffstat (limited to 'examples')
-rw-r--r-- | examples/src/main/java/spark/examples/JavaHdfsLR.java | 2 | ||||
-rw-r--r-- | examples/src/main/java/spark/examples/JavaTC.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/src/main/java/spark/examples/JavaHdfsLR.java b/examples/src/main/java/spark/examples/JavaHdfsLR.java index 71fc13fbce..29839d5668 100644 --- a/examples/src/main/java/spark/examples/JavaHdfsLR.java +++ b/examples/src/main/java/spark/examples/JavaHdfsLR.java @@ -1,6 +1,5 @@ package spark.examples; -import scala.util.Random; import spark.api.java.JavaRDD; import spark.api.java.JavaSparkContext; import spark.api.java.function.Function; @@ -9,6 +8,7 @@ import spark.api.java.function.Function2; import java.io.Serializable; import java.util.Arrays; import java.util.StringTokenizer; +import java.util.Random; public class JavaHdfsLR { diff --git a/examples/src/main/java/spark/examples/JavaTC.java b/examples/src/main/java/spark/examples/JavaTC.java index 25a465ec8e..e3bd881b8f 100644 --- a/examples/src/main/java/spark/examples/JavaTC.java +++ b/examples/src/main/java/spark/examples/JavaTC.java @@ -1,7 +1,6 @@ package spark.examples; import scala.Tuple2; -import scala.util.Random; import spark.api.java.JavaPairRDD; import spark.api.java.JavaSparkContext; import spark.api.java.function.PairFunction; @@ -9,6 +8,7 @@ import spark.api.java.function.PairFunction; import java.util.ArrayList; import java.util.HashSet; import java.util.List; +import java.util.Random; import java.util.Set; /** |