Skip to content

Commit

Permalink
[SPARK-3974] Change return type of cache and persist
Browse files Browse the repository at this point in the history
  • Loading branch information
brkyvz committed Jan 20, 2015
1 parent 239ab4b commit 1e8bb2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ class BlockMatrix(
}

/** Cache the underlying RDD. */
def cache(): DistributedMatrix = {
def cache(): BlockMatrix = {
rdd.cache()
this
}

/** Set the storage level for the underlying RDD. */
def persist(storageLevel: StorageLevel): DistributedMatrix = {
def persist(storageLevel: StorageLevel): BlockMatrix = {
rdd.persist(storageLevel)
this
}
Expand Down

0 comments on commit 1e8bb2a

Please sign in to comment.