|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Output
Represents an Output through which a TezProcessor writes information on an edge.
Output implementations must have a 0 argument public constructor
for Tez to construct the Output. Tez will take care of
initializing and closing the Input after a Processor completes.
During initialization, Outputs must specify an initial memory requirement via
TezOutputContext.requestInitialMemory
| Method Summary | |
|---|---|
List<Event> |
close()
Closes the Output |
Writer |
getWriter()
Gets an instance of the Writer in an Output |
void |
handleEvents(List<Event> outputEvents)
Handles user and system generated Events, which typically carry
information such as a downstream vertex being ready to consume input. |
List<Event> |
initialize(TezOutputContext outputContext)
Initializes the Output |
void |
start()
Start any processing that the Output may need to perform. |
| Method Detail |
|---|
List<Event> initialize(TezOutputContext outputContext)
throws Exception
Output
outputContext - the TezOutputContext
Exception - if an error occurs
void start()
throws Exception
Exception
Writer getWriter()
throws Exception
Writer in an Output
Writer in an Output
Exception - if an error occursvoid handleEvents(List<Event> outputEvents)
Events, which typically carry
information such as a downstream vertex being ready to consume input.
outputEvents - the list of Events
List<Event> close()
throws Exception
Output
Exception - if an error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||