Class ShapeInputFormat
- java.lang.Object
-
- org.apache.hadoop.mapreduce.InputFormat<K,V>
-
- org.apache.hadoop.mapreduce.lib.input.FileInputFormat<K,V>
-
- org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat<ShapeKey,PrimitiveShape>
-
- org.apache.sedona.core.formatMapper.shapefileParser.shapes.ShapeInputFormat
-
public class ShapeInputFormat extends org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat<ShapeKey,PrimitiveShape>
-
-
Constructor Summary
Constructors Constructor Description ShapeInputFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.hadoop.mapreduce.RecordReader<ShapeKey,PrimitiveShape>
createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context)
List<org.apache.hadoop.mapreduce.InputSplit>
getSplits(org.apache.hadoop.mapreduce.JobContext job)
protected boolean
isSplitable(org.apache.hadoop.mapreduce.JobContext context, org.apache.hadoop.fs.Path file)
enforce isSplitable() to return false so that every getSplits() only return one InputSplit-
Methods inherited from class org.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat
createPool, createPool, getFileBlockLocations, setMaxSplitSize, setMinSplitSizeNode, setMinSplitSizeRack
-
Methods inherited from class org.apache.hadoop.mapreduce.lib.input.FileInputFormat
addInputPath, addInputPathRecursively, addInputPaths, computeSplitSize, getBlockIndex, getFormatMinSplitSize, getInputDirRecursive, getInputPathFilter, getInputPaths, getMaxSplitSize, getMinSplitSize, listStatus, makeSplit, makeSplit, setInputDirRecursive, setInputPathFilter, setInputPaths, setInputPaths, setMaxInputSplitSize, setMinInputSplitSize
-
-
-
-
Method Detail
-
createRecordReader
public org.apache.hadoop.mapreduce.RecordReader<ShapeKey,PrimitiveShape> createRecordReader(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
- Specified by:
createRecordReader
in classorg.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat<ShapeKey,PrimitiveShape>
- Throws:
IOException
-
isSplitable
protected boolean isSplitable(org.apache.hadoop.mapreduce.JobContext context, org.apache.hadoop.fs.Path file)
enforce isSplitable() to return false so that every getSplits() only return one InputSplit- Overrides:
isSplitable
in classorg.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat<ShapeKey,PrimitiveShape>
- Parameters:
context
-file
-- Returns:
-
getSplits
public List<org.apache.hadoop.mapreduce.InputSplit> getSplits(org.apache.hadoop.mapreduce.JobContext job) throws IOException
- Overrides:
getSplits
in classorg.apache.hadoop.mapreduce.lib.input.CombineFileInputFormat<ShapeKey,PrimitiveShape>
- Throws:
IOException
-
-