Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private[spark] object BlockManagerMessages {
sender: ActorRef)
extends ToBlockManagerMaster

class UpdateBlockInfo(
case class UpdateBlockInfo(
var blockManagerId: BlockManagerId,
var blockId: BlockId,
var storageLevel: StorageLevel,
Expand Down Expand Up @@ -84,24 +84,6 @@ private[spark] object BlockManagerMessages {
}
}

object UpdateBlockInfo {
def apply(
blockManagerId: BlockManagerId,
blockId: BlockId,
storageLevel: StorageLevel,
memSize: Long,
diskSize: Long,
tachyonSize: Long): UpdateBlockInfo = {
new UpdateBlockInfo(blockManagerId, blockId, storageLevel, memSize, diskSize, tachyonSize)
}

// For pattern-matching
def unapply(h: UpdateBlockInfo)
: Option[(BlockManagerId, BlockId, StorageLevel, Long, Long, Long)] = {
Some((h.blockManagerId, h.blockId, h.storageLevel, h.memSize, h.diskSize, h.tachyonSize))
}
}

case class GetLocations(blockId: BlockId) extends ToBlockManagerMaster

case class GetLocationsMultipleBlockIds(blockIds: Array[BlockId]) extends ToBlockManagerMaster
Expand Down