BlockDataManager — Block Storage Management API
BlockDataManager
is the contract for managing storage for blocks of data (aka block storage management API).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
package org.apache.spark.network trait BlockDataManager { def getBlockData(blockId: BlockId): ManagedBuffer def putBlockData( blockId: BlockId, data: ManagedBuffer, level: StorageLevel, classTag: ClassTag[_]): Boolean def releaseLock(blockId: BlockId, taskAttemptId: Option[Long]): Unit } |
Note
|
BlockDataManager is a private[spark] contract.
|
Method | Description |
---|---|
|
Used when:
|
|
Uploads a block data locally by Used when…FIXME |
|
Releases the lock for getBlockData and putBlockData methods Used when…FIXME |
Blocks are identified by BlockId
that has a globally unique identifier (name
) and stored as ManagedBuffer.
Name | Description |
---|---|
Described by RDD ID ( Created when an |
|
Described by |
|
Described by |
|
Described by |
|
Described by |
|
Described by |
|
Described by |
Note
|
BlockManager is the one and only known implementation of BlockDataManager Contract in Apache Spark. |