@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
InterruptedExceptionMapOutput<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.IOExceptionRawKeyValueIterator close() throws Throwable
ThrowableCopyright © 2022 Apache Software Foundation. All rights reserved.