Package io.archivesunleashed.data
Class ArchiveRecordInputFormat.ArchiveRecordReader
- java.lang.Object
-
- org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,ArchiveRecordWritable>
-
- io.archivesunleashed.data.ArchiveRecordInputFormat.ArchiveRecordReader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- ArchiveRecordInputFormat
public class ArchiveRecordInputFormat.ArchiveRecordReader extends org.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,ArchiveRecordWritable>
Extends RecordReader for Record Reader.
-
-
Constructor Summary
Constructors Constructor Description ArchiveRecordReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.hadoop.io.LongWritable
getCurrentKey()
ArchiveRecordWritable
getCurrentValue()
float
getProgress()
void
initialize(org.apache.hadoop.mapreduce.InputSplit archiveRecordSplit, org.apache.hadoop.mapreduce.TaskAttemptContext context)
boolean
nextKeyValue()
-
-
-
Constructor Detail
-
ArchiveRecordReader
public ArchiveRecordReader()
-
-
Method Detail
-
initialize
public final void initialize(org.apache.hadoop.mapreduce.InputSplit archiveRecordSplit, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
- Specified by:
initialize
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,ArchiveRecordWritable>
- Throws:
IOException
-
nextKeyValue
public final boolean nextKeyValue() throws IOException
- Specified by:
nextKeyValue
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,ArchiveRecordWritable>
- Throws:
IOException
-
getCurrentKey
public final org.apache.hadoop.io.LongWritable getCurrentKey()
- Specified by:
getCurrentKey
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,ArchiveRecordWritable>
-
getCurrentValue
public final ArchiveRecordWritable getCurrentValue()
- Specified by:
getCurrentValue
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,ArchiveRecordWritable>
-
getProgress
public final float getProgress() throws IOException
- Specified by:
getProgress
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,ArchiveRecordWritable>
- Throws:
IOException
-
close
public final void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classorg.apache.hadoop.mapreduce.RecordReader<org.apache.hadoop.io.LongWritable,ArchiveRecordWritable>
- Throws:
IOException
-
-