Skip to content

Commit 77d2703

Browse files
committed
change python api.git status
1 parent 3dcace4 commit 77d2703

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

core/src/main/java/org/apache/spark/api/java/StorageLevels.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ public static StorageLevel create(boolean useDisk, boolean useMemory, boolean de
5353
* Create a new StorageLevel object.
5454
* @param useDisk saved to disk, if true
5555
* @param useMemory saved to memory, if true
56-
* @param useTachyon saved to Tachyon, if true
56+
* @param useOffHeap saved to Tachyon, if true
5757
* @param deserialized saved as deserialized objects, if true
5858
* @param replication replication factor
5959
*/
6060
public static StorageLevel create(
6161
boolean useDisk,
6262
boolean useMemory,
63-
boolean useTachyon,
63+
boolean useOffHeap,
6464
boolean deserialized,
6565
int replication) {
66-
return StorageLevel.apply(useDisk, useMemory, useTachyon, deserialized, replication);
66+
return StorageLevel.apply(useDisk, useMemory, useOffHeap, deserialized, replication);
6767
}
6868
}

python/pyspark/storagelevel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ class StorageLevel:
2525
Also contains static constants for some commonly used storage levels, such as MEMORY_ONLY.
2626
"""
2727

28-
def __init__(self, useDisk, useMemory, useTachyon, deserialized, replication = 1):
28+
def __init__(self, useDisk, useMemory, useOffHeap, deserialized, replication = 1):
2929
self.useDisk = useDisk
3030
self.useMemory = useMemory
31-
self.useTachyon = useTachyon
31+
self.useOffHeap = useOffHeap
3232
self.deserialized = deserialized
3333
self.replication = replication
3434

0 commit comments

Comments
 (0)