Package org.apache.orc.mapreduce
Class OrcMapreduceRecordReader<V extends WritableComparable>
java.lang.Object
org.apache.hadoop.mapreduce.RecordReader<NullWritable,V>
org.apache.orc.mapreduce.OrcMapreduceRecordReader<V>
- Type Parameters:
V- the root type of the file
- All Implemented Interfaces:
Closeable,AutoCloseable
public class OrcMapreduceRecordReader<V extends WritableComparable>
extends RecordReader<NullWritable,V>
This record reader implements the org.apache.hadoop.mapreduce API.
It is in the org.apache.orc.mapred package to share implementation with
the mapred API record reader.
-
Constructor Summary
ConstructorsConstructorDescriptionOrcMapreduceRecordReader(Reader fileReader, Reader.Options options) OrcMapreduceRecordReader(Reader fileReader, Reader.Options options, int rowBatchSize) OrcMapreduceRecordReader(RecordReader reader, TypeDescription schema) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()floatvoidinitialize(InputSplit inputSplit, TaskAttemptContext taskAttemptContext) boolean
-
Constructor Details
-
OrcMapreduceRecordReader
- Throws:
IOException
-
OrcMapreduceRecordReader
- Throws:
IOException
-
OrcMapreduceRecordReader
public OrcMapreduceRecordReader(Reader fileReader, Reader.Options options, int rowBatchSize) throws IOException - Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classRecordReader<NullWritable,V extends WritableComparable> - Throws:
IOException
-
initialize
- Specified by:
initializein classRecordReader<NullWritable,V extends WritableComparable>
-
nextKeyValue
- Specified by:
nextKeyValuein classRecordReader<NullWritable,V extends WritableComparable> - Throws:
IOExceptionInterruptedException
-
getCurrentKey
- Specified by:
getCurrentKeyin classRecordReader<NullWritable,V extends WritableComparable> - Throws:
IOExceptionInterruptedException
-
getCurrentValue
- Specified by:
getCurrentValuein classRecordReader<NullWritable,V extends WritableComparable> - Throws:
IOExceptionInterruptedException
-
getProgress
- Specified by:
getProgressin classRecordReader<NullWritable,V extends WritableComparable> - Throws:
IOException
-