@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface MergeManager<K,V>
Modifier and Type | Method and Description |
---|---|
RawKeyValueIterator |
close()
Called at the end of shuffle.
|
MapOutput<K,V> |
reserve(TaskAttemptID mapId,
long requestedSize,
int fetcher)
To reserve resources for data to be shuffled.
|
void |
waitForResource()
To wait until merge has some freed resources available so that it can
accept shuffled data.
|
void waitForResource() throws InterruptedException
InterruptedException
MapOutput<K,V> reserve(TaskAttemptID mapId, long requestedSize, int fetcher) throws IOException
mapId
- mapper from which data will be shuffled.requestedSize
- size in bytes of data that will be shuffled.fetcher
- id of the map output fetcher that will shuffle the data.IOException
RawKeyValueIterator close() throws Throwable
Throwable
Copyright © 2013 Apache Software Foundation. All Rights Reserved.