@InterfaceAudience.Public
public interface InputFrameworkInterface
This interface has methods which are used by the Tez framework to control the Input.
During initialization, Inputs must specify an initial memory requirement via
InputContext
.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 InputContext
.inputIsReady.
Inputs choose the policy on when they are ready.
Input implementations are expected to derive from AbstractLogicalInput
Modifier and Type | Method and Description |
---|---|
List<Event> |
close()
Closes the
Input |
void |
handleEvents(List<Event> inputEvents)
Handles user and system generated
Event s, which typically carry
information such as an output being available on the previous vertex. |
List<Event> |
initialize()
Initializes the
Input . |
List<Event> initialize() throws Exception
Input
.Exception
- if an error occursvoid handleEvents(List<Event> inputEvents) throws Exception
Event
s, which typically carry
information such as an output being available on the previous vertex.Copyright © 2016 Apache Software Foundation. All rights reserved.