Skip to content

Commit

Permalink
address Aaron's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
haoyuan committed Mar 22, 2014
1 parent e554b1e commit fcaeab2
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions core/src/main/java/org/apache/spark/api/java/StorageLevels.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
* Expose some commonly useful storage level constants.
*/
public class StorageLevels {
public static final StorageLevel NONE = new StorageLevel(false, false, false, false, 1);
public static final StorageLevel DISK_ONLY = new StorageLevel(true, false, false, false, 1);
public static final StorageLevel DISK_ONLY_2 = new StorageLevel(true, false, false, false, 2);
public static final StorageLevel MEMORY_ONLY = new StorageLevel(false, true, false, true, 1);
public static final StorageLevel MEMORY_ONLY_2 = new StorageLevel(false, true, false, true, 2);
public static final StorageLevel MEMORY_ONLY_SER = new StorageLevel(false, true, false, false, 1);
public static final StorageLevel MEMORY_ONLY_SER_2 = new StorageLevel(false, true, false, false, 2);
public static final StorageLevel MEMORY_AND_DISK = new StorageLevel(true, true, false, true, 1);
public static final StorageLevel MEMORY_AND_DISK_2 = new StorageLevel(true, true, false, true, 2);
public static final StorageLevel MEMORY_AND_DISK_SER = new StorageLevel(true, true, false, false, 1);
public static final StorageLevel MEMORY_AND_DISK_SER_2 = new StorageLevel(true, true, false, false, 2);
public static final StorageLevel TACHYON = new StorageLevel(false, false, true, false, 1);
public static final StorageLevel NONE = create(false, false, false, false, 1);
public static final StorageLevel DISK_ONLY = create(true, false, false, false, 1);
public static final StorageLevel DISK_ONLY_2 = create(true, false, false, false, 2);
public static final StorageLevel MEMORY_ONLY = create(false, true, false, true, 1);
public static final StorageLevel MEMORY_ONLY_2 = create(false, true, false, true, 2);
public static final StorageLevel MEMORY_ONLY_SER = create(false, true, false, false, 1);
public static final StorageLevel MEMORY_ONLY_SER_2 = create(false, true, false, false, 2);
public static final StorageLevel MEMORY_AND_DISK = create(true, true, false, true, 1);
public static final StorageLevel MEMORY_AND_DISK_2 = create(true, true, false, true, 2);
public static final StorageLevel MEMORY_AND_DISK_SER = create(true, true, false, false, 1);
public static final StorageLevel MEMORY_AND_DISK_SER_2 = create(true, true, false, false, 2);
public static final StorageLevel TACHYON = create(false, false, true, false, 1);

/**
* Create a new StorageLevel object.
Expand Down

0 comments on commit fcaeab2

Please sign in to comment.