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

java.lang.Object
  extended by org.apache.tez.runtime.api.Event
      extended by 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.


Field Summary
protected  int sourceIndexEnd
           
protected  int sourceIndexStart
           
protected  byte[] userPayload
           
protected  int version
           
 
Constructor Summary
CompositeDataMovementEvent(int srcIndexStart, int srcIndexEnd, byte[] userPayload)
           
 
Method Summary
 Iterable<DataMovementEvent> getEvents()
           
 int getSourceIndexEnd()
           
 int getSourceIndexStart()
           
 byte[] getUserPayload()
           
 int getVersion()
           
 void setVersion(int version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sourceIndexStart

protected final int sourceIndexStart

sourceIndexEnd

protected final int sourceIndexEnd

version

protected int version

userPayload

protected final byte[] userPayload
Constructor Detail

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.
Method Detail

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.