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
}
BlockEvictionHandler is a private[storage] contract.
Table 1. BlockEvictionHandler Contract
Method Description

dropFromMemory

Used exclusively when MemoryStore is requested to evictBlocksToFreeSpace.

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