org.apache.tez.runtime.api
Interface TezInputContext

All Superinterfaces:
TezTaskContext

public interface TezInputContext
extends TezTaskContext

Context handle for the Input to initialize itself.


Method Summary
 int getInputIndex()
          Get the index of the input in the set of all inputs for the task.
 String getSourceVertexName()
          Get the Vertex Name of the Source that generated data for this Input
 void inputIsReady()
          Inform the framework that the specific Input is ready for consumption.
 
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

getSourceVertexName

String getSourceVertexName()
Get the Vertex Name of the Source that generated data for this Input

Returns:
Name of the Source Vertex

getInputIndex

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

Returns:
index

inputIsReady

void inputIsReady()
Inform the framework that the specific Input is ready for consumption. This method will typically be invoked as a result of an Input.inputReadyNotificationRequired invocation. This method can be invoked multiple times.



Copyright © 2014 Apache Software Foundation. All rights reserved.