org.apache.tez.runtime.api.events
Class RootInputDataInformationEvent

java.lang.Object
  extended by org.apache.tez.runtime.api.Event
      extended by org.apache.tez.runtime.api.events.RootInputDataInformationEvent

public final class RootInputDataInformationEvent
extends Event

Events used by TezRootInputInitializer implementations to provide the user payload for individual tasks running as part of the Vertex for which an Initial Input has been configured. This event is used by InputInitialziers to configure tasks belonging to a Vertex. The event may be processed by a @link VertexManagerPlugin before being sent to tasks. A TezRootInputInitializer may send Events with or without a serialized user payload. Events, after being processed by a VertexManagerPlugin, must contained the payload in a serialized form.


Constructor Summary
RootInputDataInformationEvent(int srcIndex, byte[] userPayload)
          Provide a serialzied form of the payload
RootInputDataInformationEvent(int srcIndex, Object userPayloadDeserialized)
           
 
Method Summary
 Object getDeserializedUserPayload()
           
 int getSourceIndex()
           
 int getTargetIndex()
           
 byte[] getUserPayload()
           
 void setTargetIndex(int target)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RootInputDataInformationEvent

public RootInputDataInformationEvent(int srcIndex,
                                     byte[] userPayload)
Provide a serialzied form of the payload

Parameters:
srcIndex - the src index
userPayload - the serizlied payload

RootInputDataInformationEvent

public RootInputDataInformationEvent(int srcIndex,
                                     Object userPayloadDeserialized)
Method Detail

getSourceIndex

public int getSourceIndex()

getTargetIndex

public int getTargetIndex()

setTargetIndex

public void setTargetIndex(int target)

getUserPayload

public byte[] getUserPayload()

getDeserializedUserPayload

public Object getDeserializedUserPayload()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 Apache Software Foundation. All rights reserved.