@InterfaceAudience.Public @InterfaceStability.Evolving public abstract class MergedLogicalInput extends Object implements LogicalInput
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
MergedLogicalInput
implementations must provide a 2 argument public constructor for
Tez to create the Input. The parameters to this constructor are 1) an instance of MergedInputContext
and 2) a list of constituent inputs. Tez will
take care of initializing and closing the Input after a Processor
completes.
Constructor and Description |
---|
MergedLogicalInput(MergedInputContext context,
List<Input> inputs)
Constructor an instance of the MergedLogicalInputs.
|
Modifier and Type | Method and Description |
---|---|
MergedInputContext |
getContext() |
List<Input> |
getInputs() |
protected void |
informInputReady()
Used by the actual MergedInput to notify that it's ready for consumption.
|
abstract void |
setConstituentInputIsReady(Input input)
Used by the framework to inform the MergedInput that one of it's constituent Inputs is ready.
|
void |
start()
Start any processing that the Input may need to perform.
|
public MergedLogicalInput(MergedInputContext context, List<Input> inputs)
context
- the MergedInputContext
which provides
the Input with context information within the running task.inputs
- the list of constituen Inputs.public final MergedInputContext getContext()
public final void start() throws Exception
Input
protected final void informInputReady()
public abstract void setConstituentInputIsReady(Input input)
Copyright © 2015 Apache Software Foundation. All rights reserved.