Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 924 Bytes

spark-BlockEvictionHandler.adoc

File metadata and controls

30 lines (23 loc) · 924 Bytes

BlockEvictionHandler

BlockEvictionHandler is a contract of FIXME that dropFromMemory.

package org.apache.spark.storage.memory

trait BlockEvictionHandler {
  def dropFromMemory[T: ClassTag](
    blockId: BlockId,
    data: () => Either[Array[T], ChunkedByteBuffer]): StorageLevel
}
Note
BlockEvictionHandler is a private[storage] contract.
Table 1. BlockEvictionHandler Contract
Method Description

dropFromMemory

Used exclusively when MemoryStore is requested to evictBlocksToFreeSpace.

Note
BlockManager is the one and only known implementation of BlockEvictionHandler Contract in Apache Spark.