@InterfaceAudience.Public @InterfaceStability.Stable public class InputSampler<K,V> extends InputSampler<K,V>
| Modifier and Type | Class and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
InputSampler(JobConf conf) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> void |
writePartitionFile(JobConf job,
InputSampler.Sampler<K,V> sampler) |
main, run, writePartitionFilepublic InputSampler(JobConf conf)
public static <K,V> void writePartitionFile(JobConf job, InputSampler.Sampler<K,V> sampler) throws IOException, ClassNotFoundException, InterruptedException
Copyright © 2022 Apache Software Foundation. All rights reserved.