@InterfaceAudience.Public public abstract class AbstractLogicalInput extends Object implements LogicalInput, LogicalInputFrameworkInterface
Input
classes must provide a 2 argument public constructor for Tez to create the
Input. The parameters to this constructor are 1) an instance of
InputContext
and 2) an integer which is used to
setup the number of physical inputs that the logical input will see.
Tez will take care of initializing and closing the Input after a Processor
completes.
Constructor and Description |
---|
AbstractLogicalInput(InputContext inputContext,
int numPhysicalInputs)
Constructor an instance of the LogicalInput.
|
Modifier and Type | Method and Description |
---|---|
InputContext |
getContext()
Return ahe
InputContext for this specific instance of
the LogicalInput |
int |
getNumPhysicalInputs()
Get the number of physical inputs that this LogicalInput will receive.
|
float |
getProgress() |
abstract List<Event> |
initialize()
Initializes the
Input . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close, handleEvents
public AbstractLogicalInput(InputContext inputContext, int numPhysicalInputs)
inputContext
- the InputContext
which provides
the Input with context information within the running task.numPhysicalInputs
- the number of physical inputs that the logical input will
receive. This is typically determined by Edge Routing.public abstract List<Event> initialize() throws Exception
InputFrameworkInterface
Input
.initialize
in interface InputFrameworkInterface
Exception
- if an error occurspublic final int getNumPhysicalInputs()
public final InputContext getContext()
InputContext
for this specific instance of
the LogicalInputInputContext
for the inputpublic float getProgress() throws ProgressFailedException, InterruptedException
Copyright © 2024 Apache Software Foundation. All rights reserved.