Class StorageLevels

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

public class StorageLevels extends Object
Expose some commonly useful storage level constants.
  • Field Details

    • NONE

      public static final StorageLevel NONE
    • DISK_ONLY

      public static final StorageLevel DISK_ONLY
    • DISK_ONLY_2

      public static final StorageLevel DISK_ONLY_2
    • DISK_ONLY_3

      public static final StorageLevel DISK_ONLY_3
    • 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 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 true
      useMemory - saved to on-heap memory, if true
      useOffHeap - saved to off-heap memory, if true
      deserialized - saved as deserialized objects, if true
      replication - replication factor