public class ShuffleManager extends Object implements FetcherCallback
| Constructor and Description |
|---|
ShuffleManager(org.apache.tez.runtime.api.InputContext inputContext,
org.apache.hadoop.conf.Configuration conf,
int numInputs,
int bufferSize,
boolean ifileReadAheadEnabled,
int ifileReadAheadLength,
org.apache.hadoop.io.compress.CompressionCodec codec,
FetchedInputAllocator inputAllocator) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompletedInputWithData(InputAttemptIdentifier srcAttemptIdentifier,
FetchedInput fetchedInput) |
void |
addCompletedInputWithNoData(InputAttemptIdentifier srcAttemptIdentifier) |
void |
addKnownInput(String hostName,
int port,
InputAttemptIdentifier srcAttemptIdentifier,
int srcPhysicalIndex) |
boolean |
allInputsFetched() |
void |
fetchFailed(String host,
InputAttemptIdentifier srcAttemptIdentifier,
boolean connectFailed) |
void |
fetchSucceeded(String host,
InputAttemptIdentifier srcAttemptIdentifier,
FetchedInput fetchedInput,
long fetchedBytes,
long decompressedLength,
long copyDuration) |
FetchedInput |
getNextInput() |
boolean |
newInputAvailable() |
void |
obsoleteKnownInput(InputAttemptIdentifier srcAttemptIdentifier) |
void |
run() |
void |
shutdown() |
public ShuffleManager(org.apache.tez.runtime.api.InputContext inputContext,
org.apache.hadoop.conf.Configuration conf,
int numInputs,
int bufferSize,
boolean ifileReadAheadEnabled,
int ifileReadAheadLength,
org.apache.hadoop.io.compress.CompressionCodec codec,
FetchedInputAllocator inputAllocator)
throws IOException
IOExceptionpublic void run()
throws IOException
IOExceptionpublic void addKnownInput(String hostName, int port, InputAttemptIdentifier srcAttemptIdentifier, int srcPhysicalIndex)
public void addCompletedInputWithNoData(InputAttemptIdentifier srcAttemptIdentifier)
public void addCompletedInputWithData(InputAttemptIdentifier srcAttemptIdentifier, FetchedInput fetchedInput) throws IOException
IOExceptionpublic void obsoleteKnownInput(InputAttemptIdentifier srcAttemptIdentifier)
public void fetchSucceeded(String host, InputAttemptIdentifier srcAttemptIdentifier, FetchedInput fetchedInput, long fetchedBytes, long decompressedLength, long copyDuration) throws IOException
fetchSucceeded in interface FetcherCallbackIOExceptionpublic void fetchFailed(String host, InputAttemptIdentifier srcAttemptIdentifier, boolean connectFailed)
fetchFailed in interface FetcherCallbackpublic void shutdown()
throws InterruptedException
InterruptedExceptionpublic boolean newInputAvailable()
public boolean allInputsFetched()
public FetchedInput getNextInput() throws InterruptedException
InterruptedExceptionCopyright © 2014 Apache Software Foundation. All rights reserved.