|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tez.runtime.library.input.ShuffledMergedInput
public class ShuffledMergedInput
ShuffleMergedInput in a LogicalInput which shuffles
intermediate sorted data, merges them and provides key/
Field Summary
protected org.apache.hadoop.conf.Configurationconf
protected org.apache.tez.runtime.api.TezInputContextinputContext
protected MemoryUpdateCallbackHandlermemoryUpdateCallbackHandler
protected intnumInputs
protected TezRawKeyValueIteratorrawIter
protected Shuffleshuffle
protected ValuesIteratorvIter
Constructor Summary
ShuffledMergedInput()
Method Summary
List<org.apache.tez.runtime.api.Event>close()
protected voidcreateValuesIterator()
KeyValuesReadergetReader()
Get a KVReader for the Input.
voidhandleEvents(List<org.apache.tez.runtime.api.Event> inputEvents)
List<org.apache.tez.runtime.api.Event>initialize(org.apache.tez.runtime.api.TezInputContext inputContext)
booleanisInputReady()
Check if the input is ready for consumption
voidsetNumPhysicalInputs(int numInputs)
voidstart()
voidwaitForInputReady()
Waits for the input to become ready for consumption
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Field Detail
inputContext
protected org.apache.tez.runtime.api.TezInputContext inputContext
rawIter
protected TezRawKeyValueIterator rawIter
conf
protected org.apache.hadoop.conf.Configuration conf
numInputs
protected int numInputs
shuffle
protected Shuffle shuffle
memoryUpdateCallbackHandler
protected MemoryUpdateCallbackHandler memoryUpdateCallbackHandler
vIter
protected ValuesIterator vIter
Constructor Detail
ShuffledMergedInput
public ShuffledMergedInput()
Method Detail
initialize
public List<org.apache.tez.runtime.api.Event> initialize(org.apache.tez.runtime.api.TezInputContext inputContext)
throws IOException
initialize in interface org.apache.tez.runtime.api.Input
IOException
start
public void start()
throws IOException
start in interface org.apache.tez.runtime.api.Input
IOException
isInputReady
public boolean isInputReady()
waitForInputReady
public void waitForInputReady()
throws IOException,
InterruptedException
IOException
InterruptedException
close
public List<org.apache.tez.runtime.api.Event> close()
throws IOException
close in interface org.apache.tez.runtime.api.Input
IOException
getReader
public KeyValuesReader getReader()
throws IOException
getReader in interface org.apache.tez.runtime.api.InputIOExceptionpublic void handleEvents(List<org.apache.tez.runtime.api.Event> inputEvents)
handleEvents in interface org.apache.tez.runtime.api.Inputpublic void setNumPhysicalInputs(int numInputs)
setNumPhysicalInputs in interface org.apache.tez.runtime.api.LogicalInput
protected void createValuesIterator()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||