public class SpatialSampler<K,V>
extends java.lang.Object
| Constructor and Description |
|---|
SpatialSampler(double freq, int numSamples, int maxSplitsSampled) |
SpatialSampler(org.apache.hadoop.mapred.lib.InputSampler.Sampler<JGeometryWritable,org.apache.hadoop.io.NullWritable> sampler) |
| Modifier and Type | Method and Description |
|---|---|
JGeometryWritable[] |
getSample(AbstractInputDataSet dataSet, InputDataSetConfiguratorHandler confHandler, org.apache.hadoop.conf.Configuration conf) |
void |
writeSample(AbstractInputDataSet dataSet, InputDataSetConfiguratorHandler confHandler, org.apache.hadoop.fs.Path resultPath, org.apache.hadoop.conf.Configuration conf) |
public SpatialSampler(double freq,
int numSamples,
int maxSplitsSampled)
public SpatialSampler(org.apache.hadoop.mapred.lib.InputSampler.Sampler<JGeometryWritable,org.apache.hadoop.io.NullWritable> sampler)
public JGeometryWritable[] getSample(AbstractInputDataSet dataSet, InputDataSetConfiguratorHandler confHandler, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOExceptionpublic void writeSample(AbstractInputDataSet dataSet, InputDataSetConfiguratorHandler confHandler, org.apache.hadoop.fs.Path resultPath, org.apache.hadoop.conf.Configuration conf) throws java.io.IOException
java.io.IOExceptionCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.