org.apache.tez.runtime.api
Interface TezOutputContext

All Superinterfaces:
TezTaskContext

public interface TezOutputContext
extends TezTaskContext

Context handle for the Output to initialize itself.


Method Summary
 String getDestinationVertexName()
          Get the Vertex Name of the Destination that is the recipient of this Output's data
 int getOutputIndex()
          Get the index of the output in the set of all outputs for the task.
 
Methods inherited from interface org.apache.tez.runtime.api.TezTaskContext
fatalError, getApplicationId, getCounters, getDAGAttemptNumber, getDAGName, getServiceConsumerMetaData, getServiceProviderMetaData, getTaskAttemptNumber, getTaskIndex, getTaskVertexIndex, getTaskVertexName, getTotalMemoryAvailableToTask, getUniqueIdentifier, getUserPayload, getWorkDirs, requestInitialMemory, sendEvents
 

Method Detail

getDestinationVertexName

String getDestinationVertexName()
Get the Vertex Name of the Destination that is the recipient of this Output's data

Returns:
Name of the Destination Vertex

getOutputIndex

int getOutputIndex()
Get the index of the output in the set of all outputs for the task. The index will be consistent and valid only among the tasks of this vertex.

Returns:
index


Copyright © 2014 Apache Software Foundation. All rights reserved.