public class TezOutputContextImpl extends TezTaskContextImpl implements OutputContext
descriptor, initialMemoryDistributor, runtimeTask, taskAttemptID, taskVertexName, tezUmbilical| Constructor and Description |
|---|
TezOutputContextImpl(org.apache.hadoop.conf.Configuration conf,
String[] workDirs,
int appAttemptNumber,
TezUmbilical tezUmbilical,
String dagName,
String taskVertexName,
String destinationVertexName,
int vertexParallelism,
TezTaskAttemptID taskAttemptID,
int outputIndex,
UserPayload userPayload,
LogicalIOProcessorRuntimeTask runtimeTask,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
OutputDescriptor outputDescriptor,
ObjectRegistry objectRegistry,
ExecutionContext executionContext,
long memAvailable,
TezExecutors sharedExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
fatalError(Throwable exception,
String message) |
String |
getDestinationVertexName() |
String |
getInputOutputVertexNames() |
int |
getOutputIndex() |
OutputStatisticsReporter |
getStatisticsReporter() |
UserPayload |
getUserPayload() |
void |
killSelf(Throwable exception,
String message) |
void |
reportFailure(TaskFailureType taskFailureType,
Throwable exception,
String message) |
void |
sendEvents(List<Event> events) |
void |
trapEvents(org.apache.hadoop.yarn.event.EventHandler eventHandler)
This will monitor some of the events that will be sent.
|
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 TezOutputContextImpl(org.apache.hadoop.conf.Configuration conf,
String[] workDirs,
int appAttemptNumber,
TezUmbilical tezUmbilical,
String dagName,
String taskVertexName,
String destinationVertexName,
int vertexParallelism,
TezTaskAttemptID taskAttemptID,
int outputIndex,
@Nullable
UserPayload userPayload,
LogicalIOProcessorRuntimeTask runtimeTask,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
OutputDescriptor outputDescriptor,
ObjectRegistry objectRegistry,
ExecutionContext executionContext,
long memAvailable,
TezExecutors sharedExecutor)
public void sendEvents(List<Event> events)
sendEvents in interface TaskContextpublic UserPayload getUserPayload()
getUserPayload in interface TaskContextpublic String getDestinationVertexName()
getDestinationVertexName in interface OutputContextpublic String getInputOutputVertexNames()
getInputOutputVertexNames in interface OutputContextpublic 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 int getOutputIndex()
getOutputIndex in interface OutputContextpublic OutputStatisticsReporter getStatisticsReporter()
getStatisticsReporter in interface OutputContextpublic final void trapEvents(org.apache.hadoop.yarn.event.EventHandler eventHandler)
trapEvents in interface OutputContextpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class TezTaskContextImplIOExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.