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
IOException
public void run() throws IOException
IOException
public 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 FetcherCallback
IOException
public void fetchFailed(String host, InputAttemptIdentifier srcAttemptIdentifier, boolean connectFailed)
fetchFailed
in interface FetcherCallback
public void shutdown() throws InterruptedException
InterruptedException
public boolean newInputAvailable()
public boolean allInputsFetched()
public FetchedInput getNextInput() throws InterruptedException
InterruptedException
Copyright © 2016 Apache Software Foundation. All rights reserved.