Package org.apache.orc.mapred
Class OrcMapredRecordReader<V extends WritableComparable>
java.lang.Object
org.apache.orc.mapred.OrcMapredRecordReader<V>
- Type Parameters:
V- the root type of the file
- All Implemented Interfaces:
Closeable,AutoCloseable,RecordReader<NullWritable,V>
public class OrcMapredRecordReader<V extends WritableComparable>
extends Object
implements RecordReader<NullWritable,V>
This record reader implements the org.apache.hadoop.mapred API.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOrcMapredRecordReader(Reader fileReader, Reader.Options options) protectedOrcMapredRecordReader(Reader fileReader, Reader.Options options, int rowBatchSize) OrcMapredRecordReader(RecordReader reader, TypeDescription schema) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()longgetPos()floatbooleannext(NullWritable key, V value) static WritableComparablenextValue(org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int row, TypeDescription schema, Object previous)
-
Constructor Details
-
OrcMapredRecordReader
- Throws:
IOException
-
OrcMapredRecordReader
- Throws:
IOException
-
OrcMapredRecordReader
protected OrcMapredRecordReader(Reader fileReader, Reader.Options options, int rowBatchSize) throws IOException - Throws:
IOException
-
-
Method Details
-
next
- Specified by:
nextin interfaceRecordReader<NullWritable,V extends WritableComparable> - Throws:
IOException
-
createKey
- Specified by:
createKeyin interfaceRecordReader<NullWritable,V extends WritableComparable>
-
createValue
- Specified by:
createValuein interfaceRecordReader<NullWritable,V extends WritableComparable>
-
getPos
- Specified by:
getPosin interfaceRecordReader<NullWritable,V extends WritableComparable> - Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceRecordReader<NullWritable,V extends WritableComparable> - Throws:
IOException
-
getProgress
- Specified by:
getProgressin interfaceRecordReader<NullWritable,V extends WritableComparable> - Throws:
IOException
-
nextValue
public static WritableComparable nextValue(org.apache.hadoop.hive.ql.exec.vector.ColumnVector vector, int row, TypeDescription schema, Object previous)
-