diff options
author | Aaron Davidson <aaron@databricks.com> | 2013-09-06 15:36:04 -0700 |
---|---|---|
committer | Aaron Davidson <aaron@databricks.com> | 2013-09-06 15:36:04 -0700 |
commit | b8a0b6ea5ee409dc51e121915794bccce92d457c (patch) | |
tree | 0eea95b8bbf3d615b2f73fdbc958ee466d5825bb /core/src/main | |
parent | a63d4c7dc2970900b116f7287e3d6b302d9d5698 (diff) | |
download | spark-b8a0b6ea5ee409dc51e121915794bccce92d457c.tar.gz spark-b8a0b6ea5ee409dc51e121915794bccce92d457c.tar.bz2 spark-b8a0b6ea5ee409dc51e121915794bccce92d457c.zip |
Memoize StorageLevels read from JVM
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/scala/org/apache/spark/api/python/PythonRDD.scala | 2 |
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] |