public class SpatialSampler<K,V>
extends java.lang.Object
| Constructor and Description |
|---|
SpatialSampler(<any> sampler)
Creates a new instance
|
SpatialSampler(double freq, int numSamples, int maxSplitsSampled)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
JGeometryWritable[] |
getSample(AbstractInputDataSet dataSet, InputDataSetConfiguratorHandler confHandler, Configuration conf) |
void |
writeSample(AbstractInputDataSet dataSet, InputDataSetConfiguratorHandler confHandler, Path resultPath, Configuration conf) |
public SpatialSampler(<any> sampler)
sampler - a sampler implementation
public SpatialSampler(double freq,
int numSamples,
int maxSplitsSampled)
freq - the portion to samplenumSamples - maximum number of samples to takemaxSplitsSampled - maximum number of splits to samplepublic JGeometryWritable[] getSample(AbstractInputDataSet dataSet, InputDataSetConfiguratorHandler confHandler, Configuration conf) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionpublic void writeSample(AbstractInputDataSet dataSet, InputDataSetConfiguratorHandler confHandler, Path resultPath, Configuration conf) throws java.io.IOException, java.lang.InterruptedException
java.io.IOExceptionjava.lang.InterruptedExceptionCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.