diff options
author | Patrick Wendell <pwendell@gmail.com> | 2014-01-05 11:43:00 -0800 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-01-05 11:49:42 -0800 |
commit | 79f52809c836d08023aa5ca99a467d3a311a7359 (patch) | |
tree | 3ae603f0187bcc285aa4844f220c1f3254ad1923 /core/src | |
parent | d43ad3ef2c3d4b690ba1d053729daefb507cd23c (diff) | |
download | spark-79f52809c836d08023aa5ca99a467d3a311a7359.tar.gz spark-79f52809c836d08023aa5ca99a467d3a311a7359.tar.bz2 spark-79f52809c836d08023aa5ca99a467d3a311a7359.zip |
Removing SPARK_EXAMPLES_JAR in the code
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/scala/org/apache/spark/api/java/JavaSparkContext.scala | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/main/scala/org/apache/spark/api/java/JavaSparkContext.scala b/core/src/main/scala/org/apache/spark/api/java/JavaSparkContext.scala index 5be5317f40..e93b10fd7e 100644 --- a/core/src/main/scala/org/apache/spark/api/java/JavaSparkContext.scala +++ b/core/src/main/scala/org/apache/spark/api/java/JavaSparkContext.scala @@ -431,4 +431,10 @@ object JavaSparkContext { implicit def fromSparkContext(sc: SparkContext): JavaSparkContext = new JavaSparkContext(sc) implicit def toSparkContext(jsc: JavaSparkContext): SparkContext = jsc.sc + + /** + * Find the JAR from which a given class was loaded, to make it easy for users to pass + * their JARs to SparkContext. + */ + def jarOfClass(cls: Class[_]) = SparkContext.jarOfClass(cls).toArray } |