Skip to content

Commit

Permalink
use val
Browse files Browse the repository at this point in the history
  • Loading branch information
lianhuiwang committed Dec 15, 2015
1 parent c67cdca commit 2259fba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private[spark] trait ShuffleManager {
def shuffleBlockResolver: ShuffleBlockResolver

/** Return short name for the ShuffleManager */
def shortShuffleMgrName: String
val shortShuffleMgrName: String

/** Shut down this ShuffleManager. */
def stop(): Unit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private[spark] class HashShuffleManager(conf: SparkConf) extends ShuffleManager
fileShuffleBlockResolver
}

override def shortShuffleMgrName: String = "hash"
override val shortShuffleMgrName: String = "hash"

/** Shut down this ShuffleManager. */
override def stop(): Unit = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private[spark] class SortShuffleManager(conf: SparkConf) extends ShuffleManager
true
}

override def shortShuffleMgrName: String = "sort"
override val shortShuffleMgrName: String = "sort"

/** Shut down this ShuffleManager. */
override def stop(): Unit = {
Expand Down

0 comments on commit 2259fba

Please sign in to comment.