K -V -public class PointKeyInputFormat<K,V> extends BaseCompositeInputFormat<PointWritable,org.apache.hadoop.io.NullWritable>
InputFormat implementation that returns each input record with spatial information as single point. If the record's geometry is different than point, a centroid is calculated. This class is used along with KMeansSampler.iInputFormat| Constructor and Description |
|---|
PointKeyInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.hadoop.mapred.RecordReader<PointWritable,org.apache.hadoop.io.NullWritable> |
getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf conf, org.apache.hadoop.mapred.Reporter reporter) |
createInternalInputFormat, createRecordInfoProvider, getInternalInputFormat, getInternalInputFormatClass, getRecordInfoProvider, getRecordInfoProviderClass, getSplits, setInternalInputFormatClass, setRecordInfoProviderClasspublic org.apache.hadoop.mapred.RecordReader<PointWritable,org.apache.hadoop.io.NullWritable> getRecordReader(org.apache.hadoop.mapred.InputSplit split, org.apache.hadoop.mapred.JobConf conf, org.apache.hadoop.mapred.Reporter reporter) throws java.io.IOException
java.io.IOExceptionCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.