org.apache.spark.api.java
Class StorageLevels

Object
  extended by org.apache.spark.api.java.StorageLevels

public class StorageLevels
extends Object

Expose some commonly useful storage level constants.


Field Summary
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 Summary
StorageLevels()
           
 
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
 

Field Detail

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
Constructor Detail

StorageLevels

public StorageLevels()
Method Detail

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 true
useMemory - saved to memory, if true
deserialized - saved as deserialized objects, if true
replication - 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 true
useMemory - saved to memory, if true
useOffHeap - saved to Tachyon, if true
deserialized - saved as deserialized objects, if true
replication - replication factor