org.apache.tez.runtime.api.events
Class CompositeDataMovementEvent
java.lang.Object
org.apache.tez.runtime.api.Event
org.apache.tez.runtime.api.events.CompositeDataMovementEvent
public class CompositeDataMovementEvent
- extends Event
A convenience class to specify multiple DataMovementEvents which share the
same payload. A contiguous range of srcIndices can be specified.
This event will NOT be seen by downstream Inputs - instead they will see
DataMovementEvents which are generated based on the range specified
in this event.
This event should be used by an output which has the same payload for all of
the Physical Outputs that it generates.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sourceIndexStart
protected final int sourceIndexStart
sourceIndexEnd
protected final int sourceIndexEnd
version
protected int version
userPayload
protected final byte[] userPayload
CompositeDataMovementEvent
public CompositeDataMovementEvent(int srcIndexStart,
int srcIndexEnd,
byte[] userPayload)
- Parameters:
srcIndexStart - the startIndex of the physical source which generated the event
(inclusive)srcIndexEnd - the endIndex of the physical source which generated the event
(non-inclusive)userPayload - the common payload between all the events.
getSourceIndexStart
public int getSourceIndexStart()
getSourceIndexEnd
public int getSourceIndexEnd()
getUserPayload
public byte[] getUserPayload()
setVersion
public void setVersion(int version)
getVersion
public int getVersion()
getEvents
public Iterable<DataMovementEvent> getEvents()
Copyright © 2014 Apache Software Foundation. All rights reserved.