@InterfaceAudience.Public @InterfaceStability.Stable public class InputSampler<K,V> extends Configured implements Tool
TotalOrderPartitioner
.Constructor and Description |
---|
InputSampler(Configuration conf) |
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
int |
run(String[] args)
Driver for InputSampler from the command line.
|
static <K,V> void |
writePartitionFile(Job job,
org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler<K,V> sampler)
Write a partition file for the given job, using the Sampler provided.
|
getConf, setConf
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConf, setConf
public InputSampler(Configuration conf)
public static <K,V> void writePartitionFile(Job job, org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler<K,V> sampler) throws IOException, ClassNotFoundException, InterruptedException
TotalOrderPartitioner.getPartitionFile(org.apache.hadoop.conf.Configuration)
.public int run(String[] args) throws Exception
writePartitionFile(org.apache.hadoop.mapreduce.Job, org.apache.hadoop.mapreduce.lib.partition.InputSampler.Sampler<K, V>)
.Copyright © 2021 Apache Software Foundation. All rights reserved.