|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tez.runtime.api.MergedLogicalInput
public abstract class MergedLogicalInput
A LogicalInput that is used to merge the data from multiple inputs and provide a
single Reader to read that data.
This Input is not initialized or closed. It is only expected to provide a
merged view of the real inputs. It cannot send or receive events
| Constructor Summary | |
|---|---|
MergedLogicalInput()
|
|
| Method Summary | |
|---|---|
List<Event> |
close()
Closes the Input |
List<Input> |
getInputs()
|
void |
handleEvents(List<Event> inputEvents)
Handles user and system generated Events, which typically carry
information such as an output being available on the previous vertex. |
protected void |
informInputReady()
Used by the actual MergedInput to notify that it's ready for consumption. |
void |
initialize(List<Input> inputs)
|
List<Event> |
initialize(TezInputContext inputContext)
Initializes the Input. |
abstract void |
setConstituentInputIsReady(Input input)
Used by the framework to inform the MergedInput that one of it's constituent Inputs is ready. |
void |
setInputReadyCallback(InputReadyCallback callback)
|
void |
setNumPhysicalInputs(int numInputs)
Sets the number of physical inputs that this LogicalInput will
receive. |
void |
start()
Start any processing that the Input may need to perform. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.tez.runtime.api.Input |
|---|
getReader |
| Constructor Detail |
|---|
public MergedLogicalInput()
| Method Detail |
|---|
public final void initialize(List<Input> inputs)
public final List<Input> getInputs()
public final List<Event> initialize(TezInputContext inputContext)
throws Exception
InputInput.
initialize in interface InputinputContext - the TezInputContext
Exception - if an error occurs
public final void start()
throws Exception
Input
start in interface InputException
public final void handleEvents(List<Event> inputEvents)
throws Exception
InputEvents, which typically carry
information such as an output being available on the previous vertex.
handleEvents in interface InputinputEvents - the list of Events
Exception
public final List<Event> close()
throws Exception
InputInput
close in interface InputException - if an error occurspublic final void setNumPhysicalInputs(int numInputs)
LogicalInputLogicalInput will
receive. This will be called by the Tez framework before initializing the
LogicalInput
setNumPhysicalInputs in interface LogicalInputnumInputs - the number of physical inputs.public void setInputReadyCallback(InputReadyCallback callback)
protected final void informInputReady()
public abstract void setConstituentInputIsReady(Input input)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||