|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Input
Represents an input through which a TezProcessor receives data on an edge.
Input classes must have a 0 argument public constructor for Tez
to construct the Input. Tez will take care of initializing and
closing the Input after a Processor completes.
During initialization, Inputs must specify an initial memory requirement via
TezInputContext.requestInitialMemory
Inputs must also inform the framework once they are ready to be consumed.
This typically means that the Processor will not block when reading from the
corresponding Input. This is done via TezInputContext.inputIsReady.
Inputs choose the policy on when they are ready.
| Method Summary | |
|---|---|
List<Event> |
close()
Closes the Input |
Reader |
getReader()
Gets an instance of the Reader for this Output |
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. |
List<Event> |
initialize(TezInputContext inputContext)
Initializes the Input. |
void |
start()
Start any processing that the Input may need to perform. |
| Method Detail |
|---|
List<Event> initialize(TezInputContext inputContext)
throws Exception
Input.
inputContext - the TezInputContext
Exception - if an error occurs
void start()
throws Exception
Exception
Reader getReader()
throws Exception
Reader for this Output
Reader for this Output
Exception - if an error occurs
void handleEvents(List<Event> inputEvents)
throws Exception
Events, which typically carry
information such as an output being available on the previous vertex.
inputEvents - the list of Events
Exception
List<Event> close()
throws Exception
Input
Exception - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||