public class TezInputContextImpl extends TezTaskContextImpl implements InputContext
descriptor, initialMemoryDistributor, runtimeTask, taskAttemptID, taskVertexName, tezUmbilical| Constructor and Description |
|---|
TezInputContextImpl(org.apache.hadoop.conf.Configuration conf,
String[] workDirs,
int appAttemptNumber,
TezUmbilical tezUmbilical,
String dagName,
String taskVertexName,
String sourceVertexName,
int vertexParallelism,
TezTaskAttemptID taskAttemptID,
int inputIndex,
UserPayload userPayload,
LogicalIOProcessorRuntimeTask runtimeTask,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
InputDescriptor inputDescriptor,
Map<String,LogicalInput> inputs,
InputReadyTracker inputReadyTracker,
ObjectRegistry objectRegistry,
ExecutionContext ExecutionContext,
long memAvailable,
TezExecutors sharedExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
fatalError(Throwable exception,
String message) |
int |
getInputIndex() |
String |
getInputOutputVertexNames() |
String |
getSourceVertexName() |
InputStatisticsReporter |
getStatisticsReporter() |
UserPayload |
getUserPayload() |
void |
inputIsReady() |
void |
killSelf(Throwable exception,
String message) |
void |
reportFailure(TaskFailureType taskFailureType,
Throwable exception,
String message) |
void |
sendEvents(List<Event> events) |
createTezFrameworkExecutorService, getApplicationId, getContainerConfiguration, getCounters, getDAGAttemptNumber, getDagIdentifier, getDAGName, getExecutionContext, getObjectRegistry, getServiceConsumerMetaData, getServiceProviderMetaData, getTaskAttemptNumber, getTaskIndex, getTaskVertexIndex, getTaskVertexName, getTotalMemoryAvailableToTask, getUniqueIdentifier, getVertexParallelism, getWorkDirs, notifyProgress, requestInitialMemory, signalFailure, signalFatalError, signalKillSelfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateTezFrameworkExecutorService, getApplicationId, getContainerConfiguration, getCounters, getDAGAttemptNumber, getDagIdentifier, getDAGName, getExecutionContext, getObjectRegistry, getServiceConsumerMetaData, getServiceProviderMetaData, getTaskAttemptNumber, getTaskIndex, getTaskVertexIndex, getTaskVertexName, getTotalMemoryAvailableToTask, getUniqueIdentifier, getVertexParallelism, getWorkDirs, notifyProgress, requestInitialMemory@InterfaceAudience.Private
public TezInputContextImpl(org.apache.hadoop.conf.Configuration conf,
String[] workDirs,
int appAttemptNumber,
TezUmbilical tezUmbilical,
String dagName,
String taskVertexName,
String sourceVertexName,
int vertexParallelism,
TezTaskAttemptID taskAttemptID,
int inputIndex,
@Nullable
UserPayload userPayload,
LogicalIOProcessorRuntimeTask runtimeTask,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
InputDescriptor inputDescriptor,
Map<String,LogicalInput> inputs,
InputReadyTracker inputReadyTracker,
ObjectRegistry objectRegistry,
ExecutionContext ExecutionContext,
long memAvailable,
TezExecutors sharedExecutor)
public void sendEvents(List<Event> events)
sendEvents in interface TaskContextpublic UserPayload getUserPayload()
getUserPayload in interface TaskContextpublic int getInputIndex()
getInputIndex in interface InputContextpublic String getSourceVertexName()
getSourceVertexName in interface InputContextpublic String getInputOutputVertexNames()
getInputOutputVertexNames in interface InputContextpublic void fatalError(Throwable exception, String message)
fatalError in interface TaskContextpublic void reportFailure(TaskFailureType taskFailureType, @Nullable Throwable exception, @Nullable String message)
reportFailure in interface TaskContextpublic void killSelf(@Nullable Throwable exception, @Nullable String message)
killSelf in interface TaskContextpublic void inputIsReady()
inputIsReady in interface InputContextpublic InputStatisticsReporter getStatisticsReporter()
getStatisticsReporter in interface InputContextpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class TezTaskContextImplIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.