BlockEvictionHandler

BlockEvictionHandler is an abstraction of eviction handlers that can drop a block from memory.

Contract

dropFromMemory Method

dropFromMemory[T: ClassTag](
  blockId: BlockId,
  data: () => Either[Array[T], ChunkedByteBuffer]): StorageLevel

Used when MemoryStore is requested to evictBlocksToFreeSpace.

Available BlockEvictionHandlers

BlockManager is the default and only known BlockEvictionHandler in Apache Spark.