Skip to content


= [[ShuffleBlockResolver]] ShuffleBlockResolver

ShuffleBlockResolver is an <> of <> that[BlockManager] uses to <> for a logical shuffle block identifier (i.e. map, reduce, and shuffle).

NOTE: Shuffle block data files are often referred to as map outputs files.

[[implementations]] NOTE:[IndexShuffleBlockResolver] is the default and only known ShuffleBlockResolver in Apache Spark.

[[contract]] .ShuffleBlockResolver Contract [cols="1m,3",options="header",width="100%"] |=== | Method | Description

| getBlockData a| [[getBlockData]]

[source, scala]

getBlockData( blockId: ShuffleBlockId): ManagedBuffer

Retrieves the data (as a[]) for the given[block] (a tuple of shuffleId, mapId and reduceId).

Used when BlockManager is requested to retrieve a[block data from a local block manager] and[block data]

| stop a| [[stop]]

[source, scala]

stop(): Unit

Stops the ShuffleBlockResolver

Used when SortShuffleManager is requested to[stop]


Last update: 2020-10-06