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
ConstructorDescriptionOrcMapreduceRecordReader
(Reader fileReader, Reader.Options options) OrcMapreduceRecordReader
(Reader fileReader, Reader.Options options, int rowBatchSize) OrcMapreduceRecordReader
(RecordReader reader, TypeDescription schema) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
float
void
initialize
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classRecordReader<NullWritable,
V extends WritableComparable> - Throws:
IOException
-
initialize
- Specified by:
initialize
in classRecordReader<NullWritable,
V extends WritableComparable>
-
nextKeyValue
- Specified by:
nextKeyValue
in classRecordReader<NullWritable,
V extends WritableComparable> - Throws:
IOException
InterruptedException
-
getCurrentKey
- Specified by:
getCurrentKey
in classRecordReader<NullWritable,
V extends WritableComparable> - Throws:
IOException
InterruptedException
-
getCurrentValue
- Specified by:
getCurrentValue
in classRecordReader<NullWritable,
V extends WritableComparable> - Throws:
IOException
InterruptedException
-
getProgress
- Specified by:
getProgress
in classRecordReader<NullWritable,
V extends WritableComparable> - Throws:
IOException
-