aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorAaron Davidson <aaron@databricks.com>2013-09-06 15:36:04 -0700
committerAaron Davidson <aaron@databricks.com>2013-09-06 15:36:04 -0700
commitb8a0b6ea5ee409dc51e121915794bccce92d457c (patch)
tree0eea95b8bbf3d615b2f73fdbc958ee466d5825bb /core
parenta63d4c7dc2970900b116f7287e3d6b302d9d5698 (diff)
downloadspark-b8a0b6ea5ee409dc51e121915794bccce92d457c.tar.gz
spark-b8a0b6ea5ee409dc51e121915794bccce92d457c.tar.bz2
spark-b8a0b6ea5ee409dc51e121915794bccce92d457c.zip
Memoize StorageLevels read from JVM
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala b/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala
index 6ca56b3af6..c3b770a42c 100644
--- a/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala
+++ b/core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala
@@ -275,7 +275,7 @@ private[spark] object PythonRDD {
* Returns the StorageLevel with the given string name.
* Throws an exception if the name is not a valid StorageLevel.
*/
- def getStorageLevel(name: String) : StorageLevel = {
+ def getStorageLevelByName(name: String) : StorageLevel = {
// In Scala, "val MEMORY_ONLY" produces a public getter by the same name.
val storageLevelGetter = StorageLevel.getClass().getDeclaredMethod(name)
return storageLevelGetter.invoke(StorageLevel).asInstanceOf[StorageLevel]