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
ModifierConstructorDescriptionprotected
OrcMapredRecordReader
(Reader fileReader, Reader.Options options) protected
OrcMapredRecordReader
(Reader fileReader, Reader.Options options, int rowBatchSize) OrcMapredRecordReader
(RecordReader reader, TypeDescription schema) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
long
getPos()
float
boolean
next
(NullWritable key, V value) static WritableComparable
nextValue
(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:
next
in interfaceRecordReader<NullWritable,
V extends WritableComparable> - Throws:
IOException
-
createKey
- Specified by:
createKey
in interfaceRecordReader<NullWritable,
V extends WritableComparable>
-
createValue
- Specified by:
createValue
in interfaceRecordReader<NullWritable,
V extends WritableComparable>
-
getPos
- Specified by:
getPos
in interfaceRecordReader<NullWritable,
V extends WritableComparable> - Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceRecordReader<NullWritable,
V extends WritableComparable> - Throws:
IOException
-
getProgress
- Specified by:
getProgress
in 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)
-