Package org.apache.spark.api.java
Class StorageLevels
Object
org.apache.spark.api.java.StorageLevels
Expose some commonly useful storage level constants.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final StorageLevel
static final StorageLevel
static final StorageLevel
static final StorageLevel
static final StorageLevel
static final StorageLevel
static final StorageLevel
static final StorageLevel
static final StorageLevel
static final StorageLevel
static final StorageLevel
static final StorageLevel
static final StorageLevel
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StorageLevel
create
(boolean useDisk, boolean useMemory, boolean useOffHeap, boolean deserialized, int replication) Create a new StorageLevel object.
-
Field Details
-
NONE
-
DISK_ONLY
-
DISK_ONLY_2
-
DISK_ONLY_3
-
MEMORY_ONLY
-
MEMORY_ONLY_2
-
MEMORY_ONLY_SER
-
MEMORY_ONLY_SER_2
-
MEMORY_AND_DISK
-
MEMORY_AND_DISK_2
-
MEMORY_AND_DISK_SER
-
MEMORY_AND_DISK_SER_2
-
OFF_HEAP
-
-
Constructor Details
-
StorageLevels
public StorageLevels()
-
-
Method Details
-
create
public static StorageLevel create(boolean useDisk, boolean useMemory, boolean useOffHeap, boolean deserialized, int replication) Create a new StorageLevel object.- Parameters:
useDisk
- saved to disk, if trueuseMemory
- saved to on-heap memory, if trueuseOffHeap
- saved to off-heap memory, if truedeserialized
- saved as deserialized objects, if truereplication
- replication factor
-