@InterfaceAudience.Public
@InterfaceStability.Evolving
public class MultiMRInput
extends org.apache.tez.mapreduce.input.base.MRInputBase
Constructor and Description |
---|
MultiMRInput(org.apache.tez.runtime.api.InputContext inputContext,
int numPhysicalInputs) |
Modifier and Type | Method and Description |
---|---|
List<org.apache.tez.runtime.api.Event> |
close() |
static org.apache.tez.mapreduce.input.MultiMRInput.MultiMRInputConfigBuilder |
createConfigBuilder(org.apache.hadoop.conf.Configuration conf,
Class<?> inputFormat)
Create an
MultiMRInput.MultiMRInputConfigBuilder to configure a MultiMRInput |
Collection<org.apache.tez.runtime.library.api.KeyValueReader> |
getKeyValueReaders() |
org.apache.tez.runtime.api.Reader |
getReader() |
void |
handleEvents(List<org.apache.tez.runtime.api.Event> inputEvents) |
List<org.apache.tez.runtime.api.Event> |
initialize() |
void |
start() |
public MultiMRInput(org.apache.tez.runtime.api.InputContext inputContext, int numPhysicalInputs)
public static org.apache.tez.mapreduce.input.MultiMRInput.MultiMRInputConfigBuilder createConfigBuilder(org.apache.hadoop.conf.Configuration conf, @Nullable Class<?> inputFormat)
MultiMRInput.MultiMRInputConfigBuilder
to configure a MultiMRInput
The preferred usage model is to provide all of the parameters, and use methods to configure
the Input.
For legacy applications, which may already have a fully configured Configuration
instance, the inputFormat can be specified as null
Typically, this will be used along with a custom VertexManagerPlugin
or InputInitializer
to generate the multiple inputs to be
used by each task. If this is not setup, this will work the same as MRInput
Grouping of splits is disabled by default.conf
- Configuration for the MRInput
. This configuration instance will be
modified in placeinputFormat
- InputFormat derived class. This can be null. If the InputFormat specified
is
null, the provided configuration should be complete.MultiMRInput.MultiMRInputConfigBuilder
public List<org.apache.tez.runtime.api.Event> initialize() throws IOException
initialize
in interface org.apache.tez.runtime.api.InputFrameworkInterface
initialize
in class org.apache.tez.mapreduce.input.base.MRInputBase
IOException
public Collection<org.apache.tez.runtime.library.api.KeyValueReader> getKeyValueReaders() throws InterruptedException, IOException
InterruptedException
IOException
public org.apache.tez.runtime.api.Reader getReader() throws Exception
getReader
in interface org.apache.tez.runtime.api.Input
getReader
in class org.apache.tez.mapreduce.input.base.MRInputBase
Exception
public void handleEvents(List<org.apache.tez.runtime.api.Event> inputEvents) throws Exception
Exception
Copyright © 2024 Apache Software Foundation. All rights reserved.