public class StorageLevels
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static StorageLevel |
DISK_ONLY |
static StorageLevel |
DISK_ONLY_2 |
static StorageLevel |
MEMORY_AND_DISK |
static StorageLevel |
MEMORY_AND_DISK_2 |
static StorageLevel |
MEMORY_AND_DISK_SER |
static StorageLevel |
MEMORY_AND_DISK_SER_2 |
static StorageLevel |
MEMORY_ONLY |
static StorageLevel |
MEMORY_ONLY_2 |
static StorageLevel |
MEMORY_ONLY_SER |
static StorageLevel |
MEMORY_ONLY_SER_2 |
static StorageLevel |
NONE |
static StorageLevel |
OFF_HEAP |
| Constructor and Description |
|---|
StorageLevels() |
| Modifier and Type | Method and Description |
|---|---|
static StorageLevel |
create(boolean useDisk,
boolean useMemory,
boolean useOffHeap,
boolean deserialized,
int replication)
Create a new StorageLevel object.
|
public static final StorageLevel NONE
public static final StorageLevel DISK_ONLY
public static final StorageLevel DISK_ONLY_2
public static final StorageLevel MEMORY_ONLY
public static final StorageLevel MEMORY_ONLY_2
public static final StorageLevel MEMORY_ONLY_SER
public static final StorageLevel MEMORY_ONLY_SER_2
public static final StorageLevel MEMORY_AND_DISK
public static final StorageLevel MEMORY_AND_DISK_2
public static final StorageLevel MEMORY_AND_DISK_SER
public static final StorageLevel MEMORY_AND_DISK_SER_2
public static final StorageLevel OFF_HEAP
public static StorageLevel create(boolean useDisk, boolean useMemory, boolean useOffHeap, boolean deserialized, int replication)
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