Class CombineShapeReader
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<ShapeKey,PrimitiveShape>
org.apache.sedona.core.formatMapper.shapefileParser.shapes.CombineShapeReader
- All Implemented Interfaces:
Closeable,AutoCloseable
public class CombineShapeReader
extends org.apache.hadoop.mapreduce.RecordReader<ShapeKey,PrimitiveShape>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()floatvoidinitialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) cut the combined split into FileSplit for .shp, .shx and .dbfboolean
-
Constructor Details
-
CombineShapeReader
public CombineShapeReader()
-
-
Method Details
-
initialize
public void initialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException, InterruptedException cut the combined split into FileSplit for .shp, .shx and .dbf- Specified by:
initializein classorg.apache.hadoop.mapreduce.RecordReader<ShapeKey,PrimitiveShape> - Parameters:
split-context-- Throws:
IOExceptionInterruptedException
-
nextKeyValue
- Specified by:
nextKeyValuein classorg.apache.hadoop.mapreduce.RecordReader<ShapeKey,PrimitiveShape> - Throws:
IOException
-
getCurrentKey
- Specified by:
getCurrentKeyin classorg.apache.hadoop.mapreduce.RecordReader<ShapeKey,PrimitiveShape>
-
getCurrentValue
- Specified by:
getCurrentValuein classorg.apache.hadoop.mapreduce.RecordReader<ShapeKey,PrimitiveShape>
-
getProgress
public float getProgress()- Specified by:
getProgressin classorg.apache.hadoop.mapreduce.RecordReader<ShapeKey,PrimitiveShape>
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classorg.apache.hadoop.mapreduce.RecordReader<ShapeKey,PrimitiveShape> - Throws:
IOException
-