Package io.trino.plugin.hive.util
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 Summary
Constructors Constructor Description FooterAwareRecordReader(org.apache.hadoop.mapred.RecordReader<K,V> delegate, int footerCount, org.apache.hadoop.mapred.JobConf job)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()KcreateKey()VcreateValue()longgetPos()floatgetProgress()booleannext(K key, V value)
-
-
-
Constructor Detail
-
FooterAwareRecordReader
public FooterAwareRecordReader(org.apache.hadoop.mapred.RecordReader<K,V> delegate, int footerCount, org.apache.hadoop.mapred.JobConf job) throws IOException
- Throws:
IOException
-
-
Method Detail
-
next
public boolean next(K key, V value) throws IOException
- Specified by:
nextin interfaceorg.apache.hadoop.mapred.RecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>- Throws:
IOException
-
createKey
public K createKey()
-
createValue
public V createValue()
-
getPos
public long getPos() throws IOException- Specified by:
getPosin interfaceorg.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:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.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:
getProgressin interfaceorg.apache.hadoop.mapred.RecordReader<K extends org.apache.hadoop.io.WritableComparable<?>,V extends org.apache.hadoop.io.Writable>- Throws:
IOException
-
-