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 |
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() |
protected void |
updateEventReceivedTime() |
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)
protected void updateEventReceivedTime()
public 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 © 2016 Apache Software Foundation. All rights reserved.