@InterfaceAudience.Public @InterfaceStability.Stable public class InputSampler<K,V> extends Configured implements Tool
TotalOrderPartitioner.| 限定符和类型 | 类和说明 |
|---|---|
static class |
InputSampler.IntervalSampler<K,V>
Sample from s splits at regular intervals.
|
static class |
InputSampler.RandomSampler<K,V>
Sample from random points in the input.
|
static interface |
InputSampler.Sampler<K,V>
Interface to sample using an
InputFormat. |
static class |
InputSampler.SplitSampler<K,V>
Samples the first n records from s splits.
|
| 构造器和说明 |
|---|
InputSampler(Configuration conf) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
main(String[] args) |
int |
run(String[] args)
Driver for InputSampler from the command line.
|
static <K,V> void |
writePartitionFile(Job job,
InputSampler.Sampler<K,V> sampler)
Write a partition file for the given job, using the Sampler provided.
|
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic InputSampler(Configuration conf)
public static <K,V> void writePartitionFile(Job job, 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 © 2009 The Apache Software Foundation