Skip to content

Commit

Permalink
rename StorageLevel.TACHYON to Storage.OFF_HEAP
Browse files Browse the repository at this point in the history
  • Loading branch information
RongGu committed Mar 27, 2014
1 parent c9aeabf commit 04301d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class StorageLevels {
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);
public static final StorageLevel OFF_HEAP = create(false, false, true, false, 1);

/**
* Create a new StorageLevel object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ object SparkTachyonPi {
val n = 100000 * slices

val rdd = spark.parallelize(1 to n, slices)
rdd.persist(StorageLevel.TACHYON)
rdd.persist(StorageLevel.OFF_HEAP)
val count = rdd.map { i =>
val x = random * 2 - 1
val y = random * 2 - 1
Expand Down

0 comments on commit 04301d3

Please sign in to comment.