Class FooterAwareRecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>

java.lang.Object
io.trino.plugin.hive.util.FooterAwareRecordReader<K,V>
All Implemented Interfaces:
Closeable, AutoCloseable, org.apache.hadoop.mapred.RecordReader<K,V>

public class FooterAwareRecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable> extends Object implements org.apache.hadoop.mapred.RecordReader<K,V>
  • Constructor Details

    • FooterAwareRecordReader

      public FooterAwareRecordReader(org.apache.hadoop.mapred.RecordReader<K,V> delegate, int footerCount, org.apache.hadoop.mapred.JobConf job) throws IOException
      Throws:
      IOException
  • Method Details

    • next

      public boolean next(K key, V value) throws IOException
      Specified by:
      next in interface org.apache.hadoop.mapred.RecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>
      Throws:
      IOException
    • createKey

      public K createKey()
      Specified by:
      createKey in interface org.apache.hadoop.mapred.RecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>
    • createValue

      public V createValue()
      Specified by:
      createValue in interface org.apache.hadoop.mapred.RecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>
    • getPos

      public long getPos() throws IOException
      Specified by:
      getPos in interface org.apache.hadoop.mapred.RecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in interface org.apache.hadoop.mapred.RecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>
      Throws:
      IOException
    • getProgress

      public float getProgress() throws IOException
      Specified by:
      getProgress in interface org.apache.hadoop.mapred.RecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>
      Throws:
      IOException