java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<ShapeKey,String>
org.apache.sedona.core.formatMapper.shapefileParser.shapes.DbfFileReader
All Implemented Interfaces:
Closeable, AutoCloseable

public class DbfFileReader extends org.apache.hadoop.mapreduce.RecordReader<ShapeKey,String>
  • Constructor Details

    • DbfFileReader

      public DbfFileReader()
  • Method Details

    • initialize

      public void initialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
      Specified by:
      initialize in class org.apache.hadoop.mapreduce.RecordReader<ShapeKey,String>
      Throws:
      IOException
    • initialize

      public void initialize(org.apache.hadoop.fs.FSDataInputStream stream) throws IOException
      Throws:
      IOException
    • getFieldDescriptors

      public List<FieldDescriptor> getFieldDescriptors()
    • nextKeyValue

      public boolean nextKeyValue() throws IOException
      Specified by:
      nextKeyValue in class org.apache.hadoop.mapreduce.RecordReader<ShapeKey,String>
      Throws:
      IOException
    • getCurrentKey

      public ShapeKey getCurrentKey()
      Specified by:
      getCurrentKey in class org.apache.hadoop.mapreduce.RecordReader<ShapeKey,String>
    • getCurrentFieldBytes

      public List<byte[]> getCurrentFieldBytes()
    • getCurrentValue

      public String getCurrentValue()
      Specified by:
      getCurrentValue in class org.apache.hadoop.mapreduce.RecordReader<ShapeKey,String>
    • getProgress

      public float getProgress()
      Specified by:
      getProgress in class org.apache.hadoop.mapreduce.RecordReader<ShapeKey,String>
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class org.apache.hadoop.mapreduce.RecordReader<ShapeKey,String>
      Throws:
      IOException