public class SplitGrouper extends Object
Constructor and Description |
---|
SplitGrouper() |
Modifier and Type | Method and Description |
---|---|
List<org.apache.tez.dag.api.TaskLocationHint> |
createTaskLocationHints(org.apache.hadoop.mapred.InputSplit[] splits)
Create task location hints from a set of input splits
|
com.google.common.collect.Multimap<Integer,org.apache.hadoop.mapred.InputSplit> |
generateGroupedSplits(org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapred.InputSplit[] splits,
float waves,
int availableSlots)
Generate groups of splits, separated by schema evolution boundaries
|
com.google.common.collect.Multimap<Integer,org.apache.hadoop.mapred.InputSplit> |
generateGroupedSplits(org.apache.hadoop.mapred.JobConf jobConf,
org.apache.hadoop.conf.Configuration conf,
org.apache.hadoop.mapred.InputSplit[] splits,
float waves,
int availableSlots,
String inputName,
boolean groupAcrossFiles)
Generate groups of splits, separated by schema evolution boundaries
|
com.google.common.collect.Multimap<Integer,org.apache.hadoop.mapred.InputSplit> |
group(org.apache.hadoop.conf.Configuration conf,
com.google.common.collect.Multimap<Integer,org.apache.hadoop.mapred.InputSplit> bucketSplitMultimap,
int availableSlots,
float waves)
group splits for each bucket separately - while evenly filling all the
available slots with tasks
|
public com.google.common.collect.Multimap<Integer,org.apache.hadoop.mapred.InputSplit> group(org.apache.hadoop.conf.Configuration conf, com.google.common.collect.Multimap<Integer,org.apache.hadoop.mapred.InputSplit> bucketSplitMultimap, int availableSlots, float waves) throws IOException
IOException
public List<org.apache.tez.dag.api.TaskLocationHint> createTaskLocationHints(org.apache.hadoop.mapred.InputSplit[] splits) throws IOException
splits
- the actual splitsIOException
public com.google.common.collect.Multimap<Integer,org.apache.hadoop.mapred.InputSplit> generateGroupedSplits(org.apache.hadoop.mapred.JobConf jobConf, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.mapred.InputSplit[] splits, float waves, int availableSlots) throws Exception
Exception
public com.google.common.collect.Multimap<Integer,org.apache.hadoop.mapred.InputSplit> generateGroupedSplits(org.apache.hadoop.mapred.JobConf jobConf, org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.mapred.InputSplit[] splits, float waves, int availableSlots, String inputName, boolean groupAcrossFiles) throws Exception
Exception
Copyright © 2017 The Apache Software Foundation. All rights reserved.