Skip to content

Commit

Permalink
add old storelevel constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
haoyuan committed Mar 22, 2014
1 parent e01a271 commit dc8ef24
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -34,9 +34,13 @@ public class StorageLevels {
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 StorageLevel create(boolean useDisk, boolean useMemory, boolean deserialized, int replication) {
return StorageLevel.apply(useDisk, useMemory, false, deserialized, replication);
}

/**
* Create a new StorageLevel object.
* @param useDisk saved to disk, if true
Expand Down

0 comments on commit dc8ef24

Please sign in to comment.