public class TezInputContextImpl extends TezTaskContextImpl implements org.apache.tez.runtime.api.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,
org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID,
int inputIndex,
org.apache.tez.dag.api.UserPayload userPayload,
LogicalIOProcessorRuntimeTask runtimeTask,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
org.apache.tez.dag.api.InputDescriptor inputDescriptor,
Map<String,org.apache.tez.runtime.api.LogicalInput> inputs,
InputReadyTracker inputReadyTracker,
org.apache.tez.runtime.api.ObjectRegistry objectRegistry,
org.apache.tez.runtime.api.ExecutionContext ExecutionContext,
long memAvailable,
org.apache.tez.common.TezExecutors sharedExecutor) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
fatalError(Throwable exception,
String message) |
int |
getInputIndex() |
String |
getSourceVertexName() |
org.apache.tez.runtime.api.InputStatisticsReporter |
getStatisticsReporter() |
org.apache.tez.dag.api.UserPayload |
getUserPayload() |
void |
inputIsReady() |
void |
killSelf(Throwable exception,
String message) |
void |
reportFailure(org.apache.tez.runtime.api.TaskFailureType taskFailureType,
Throwable exception,
String message) |
void |
sendEvents(List<org.apache.tez.runtime.api.Event> events) |
createTezFrameworkExecutorService, getApplicationId, 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, 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,
org.apache.tez.dag.records.TezTaskAttemptID taskAttemptID,
int inputIndex,
@Nullable
org.apache.tez.dag.api.UserPayload userPayload,
LogicalIOProcessorRuntimeTask runtimeTask,
Map<String,ByteBuffer> serviceConsumerMetadata,
Map<String,String> auxServiceEnv,
MemoryDistributor memDist,
org.apache.tez.dag.api.InputDescriptor inputDescriptor,
Map<String,org.apache.tez.runtime.api.LogicalInput> inputs,
InputReadyTracker inputReadyTracker,
org.apache.tez.runtime.api.ObjectRegistry objectRegistry,
org.apache.tez.runtime.api.ExecutionContext ExecutionContext,
long memAvailable,
org.apache.tez.common.TezExecutors sharedExecutor)
public void sendEvents(List<org.apache.tez.runtime.api.Event> events)
sendEvents in interface org.apache.tez.runtime.api.TaskContextpublic org.apache.tez.dag.api.UserPayload getUserPayload()
getUserPayload in interface org.apache.tez.runtime.api.TaskContextpublic int getInputIndex()
getInputIndex in interface org.apache.tez.runtime.api.InputContextpublic String getSourceVertexName()
getSourceVertexName in interface org.apache.tez.runtime.api.InputContextpublic void fatalError(Throwable exception, String message)
fatalError in interface org.apache.tez.runtime.api.TaskContextpublic void reportFailure(org.apache.tez.runtime.api.TaskFailureType taskFailureType,
@Nullable
Throwable exception,
@Nullable
String message)
reportFailure in interface org.apache.tez.runtime.api.TaskContextpublic void killSelf(@Nullable Throwable exception, @Nullable String message)
killSelf in interface org.apache.tez.runtime.api.TaskContextpublic void inputIsReady()
inputIsReady in interface org.apache.tez.runtime.api.InputContextpublic org.apache.tez.runtime.api.InputStatisticsReporter getStatisticsReporter()
getStatisticsReporter in interface org.apache.tez.runtime.api.InputContextpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class TezTaskContextImplIOExceptionCopyright © 2017 Apache Software Foundation. All rights reserved.