getBlockData(blockId: BlockId): ManagedBuffer
BlockDataManager — Block Storage Management API
BlockDataManager is a pluggable interface to manage storage for blocks of data (aka block storage management API). Blocks are identified by BlockId that has a globally unique identifier (name) and stored as ManagedBuffer.
| Name | Description |
|---|---|
Described by Created when a |
|
Described by |
|
Described by |
|
Described by |
|
Described by |
|
Described by |
|
Described by |
|
Note
|
BlockManager is currently the only available implementation of BlockDataManager.
|
|
Note
|
org.apache.spark.network.BlockDataManager is a private[spark] Scala trait in Spark.
|
BlockDataManager Contract
Every BlockDataManager offers the following services:
-
getBlockDatato fetch a local block data byblockId. -
putBlockDatato upload a block data locally byblockId. The return value says whether the operation has succeeded (true) or failed (false).putBlockData( blockId: BlockId, data: ManagedBuffer, level: StorageLevel, classTag: ClassTag[_]): Boolean -
releaseLockis a release lock forgetBlockDataandputBlockDataoperations.releaseLock(blockId: BlockId): Unit