K
-V
-public class PointKeyInputFormat<K,V> extends WrapperInputFormat<PointWritable,org.apache.hadoop.io.NullWritable,K,V>
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.mapreduce.RecordReader<PointWritable,org.apache.hadoop.io.NullWritable> |
createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) |
createInternalInputFormat, getFittingInputSplit, getInternalInputFormat, getInternalInputFormatClass, getRecordInfoProvider, getRecordInfoProviderClass, getSplits, setInternalInputFormatClass, setRecordInfoProviderClass
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getFormatMinSplitSize, getInputDirRecursive, getInputPathFilter, getInputPaths, getMaxSplitSize, getMinSplitSize, isSplitable, listStatus, makeSplit, makeSplit, setInputDirRecursive, setInputPathFilter, setInputPaths, setInputPaths, setMaxInputSplitSize, setMinInputSplitSize
public org.apache.hadoop.mapreduce.RecordReader<PointWritable,org.apache.hadoop.io.NullWritable> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws java.io.IOException, java.lang.InterruptedException
createRecordReader
in class org.apache.hadoop.mapreduce.InputFormat<PointWritable,org.apache.hadoop.io.NullWritable>
java.io.IOException
java.lang.InterruptedException