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 implementationpublic 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.IOException
java.lang.InterruptedException
public void writeSample(AbstractInputDataSet dataSet, InputDataSetConfiguratorHandler confHandler, Path resultPath, Configuration conf) throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
Copyright © 2017 Oracle and/or its affiliates. All Rights Reserved.