public class TezInputHelper
extends java.lang.Object
Constructor and Description |
---|
TezInputHelper() |
Modifier and Type | Method and Description |
---|---|
static Pair<java.lang.Long,java.lang.Boolean> |
createSplitsProto(org.apache.tez.mapreduce.hadoop.InputSplitInfo inputSplitInfo,
org.apache.hadoop.conf.Configuration conf,
org.apache.tez.mapreduce.protos.MRRuntimeProtos.MRSplitsProto.Builder splitsBuilder,
long spillThreshold)
Creates MRSplitsProto from inputSplitInfo and adds into splitsBuilder.
|
static org.apache.tez.mapreduce.hadoop.InputSplitInfoMem |
generateInputSplitsToMem(org.apache.hadoop.conf.Configuration conf)
This method creates input splits similar to
MRInputHelpers.generateInputSplitsToMem(org.apache.hadoop.conf.Configuration, boolean, int)
but only does it for mapreduce API and does not do grouping of splits or create
MRRuntimeProtos.MRSplitsProto
which is an expensive operation. |
public static org.apache.tez.mapreduce.hadoop.InputSplitInfoMem generateInputSplitsToMem(org.apache.hadoop.conf.Configuration conf) throws java.io.IOException, java.lang.ClassNotFoundException, java.lang.InterruptedException
MRInputHelpers.generateInputSplitsToMem(org.apache.hadoop.conf.Configuration, boolean, int)
but only does it for mapreduce API and does not do grouping of splits or create
MRRuntimeProtos.MRSplitsProto
which is an expensive operation.conf
- an instance of Configuration. This
Configuration instance should contain adequate information to
be able to generate splits - like the InputFormat being used and
related configuration.InputSplitInfoMem
which supports a subset
of the APIs defined on InputSplitInfo
java.io.IOException
java.lang.ClassNotFoundException
java.lang.InterruptedException
public static Pair<java.lang.Long,java.lang.Boolean> createSplitsProto(org.apache.tez.mapreduce.hadoop.InputSplitInfo inputSplitInfo, org.apache.hadoop.conf.Configuration conf, org.apache.tez.mapreduce.protos.MRRuntimeProtos.MRSplitsProto.Builder splitsBuilder, long spillThreshold)
inputSplitInfo
- conf
- splitsBuilder
- spillThreshold
- Copyright © 2007-2025 The Apache Software Foundation