org.apache.spark.api.java
Class StorageLevels
Object
org.apache.spark.api.java.StorageLevels
public class StorageLevels
- extends Object
Expose some commonly useful storage level constants.
Method Summary |
static StorageLevel |
create(boolean useDisk,
boolean useMemory,
boolean useOffHeap,
boolean deserialized,
int replication)
Create a new StorageLevel object. |
static StorageLevel |
create(boolean useDisk,
boolean useMemory,
boolean deserialized,
int replication)
Deprecated. |
Methods inherited from class Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NONE
public static final StorageLevel NONE
DISK_ONLY
public static final StorageLevel DISK_ONLY
DISK_ONLY_2
public static final StorageLevel DISK_ONLY_2
MEMORY_ONLY
public static final StorageLevel MEMORY_ONLY
MEMORY_ONLY_2
public static final StorageLevel MEMORY_ONLY_2
MEMORY_ONLY_SER
public static final StorageLevel MEMORY_ONLY_SER
MEMORY_ONLY_SER_2
public static final StorageLevel MEMORY_ONLY_SER_2
MEMORY_AND_DISK
public static final StorageLevel MEMORY_AND_DISK
MEMORY_AND_DISK_2
public static final StorageLevel MEMORY_AND_DISK_2
MEMORY_AND_DISK_SER
public static final StorageLevel MEMORY_AND_DISK_SER
MEMORY_AND_DISK_SER_2
public static final StorageLevel MEMORY_AND_DISK_SER_2
OFF_HEAP
public static final StorageLevel OFF_HEAP
StorageLevels
public StorageLevels()
create
@Deprecated
public static StorageLevel create(boolean useDisk,
boolean useMemory,
boolean deserialized,
int replication)
- Deprecated.
- Create a new StorageLevel object.
- Parameters:
useDisk
- saved to disk, if trueuseMemory
- saved to memory, if truedeserialized
- saved as deserialized objects, if truereplication
- replication factor
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 memory, if trueuseOffHeap
- saved to Tachyon, if truedeserialized
- saved as deserialized objects, if truereplication
- replication factor