org.apache.tez.runtime.api.events
Class RootInputDataInformationEvent
java.lang.Object
org.apache.tez.runtime.api.Event
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.
RootInputDataInformationEvent
public RootInputDataInformationEvent(int srcIndex,
byte[] userPayload)
- Provide a serialzied form of the payload
- Parameters:
srcIndex - the src indexuserPayload - the serizlied payload
RootInputDataInformationEvent
public RootInputDataInformationEvent(int srcIndex,
Object userPayloadDeserialized)
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.