public static class MapReduceGeneratorInputFormat.GeneratorRecordReader extends org.apache.hadoop.mapreduce.RecordReader<MRContainer,MRContainer>
Modifier and Type | Field and Description |
---|---|
(package private) long |
index |
(package private) long |
offset |
(package private) org.apache.hadoop.io.SequenceFile.Reader |
reader |
(package private) long |
size |
Constructor and Description |
---|
MapReduceGeneratorInputFormat.GeneratorRecordReader(org.apache.hadoop.mapreduce.lib.input.FileSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
MRContainer |
getCurrentKey() |
MRContainer |
getCurrentValue() |
float |
getProgress() |
void |
initialize(org.apache.hadoop.mapreduce.InputSplit split,
org.apache.hadoop.mapreduce.TaskAttemptContext context) |
boolean |
nextKeyValue() |
final long offset
final long size
long index
org.apache.hadoop.io.SequenceFile.Reader reader
public MapReduceGeneratorInputFormat.GeneratorRecordReader(org.apache.hadoop.mapreduce.lib.input.FileSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
IOException
public boolean nextKeyValue() throws IOException
nextKeyValue
in class org.apache.hadoop.mapreduce.RecordReader<MRContainer,MRContainer>
IOException
public MRContainer getCurrentKey() throws IOException
getCurrentKey
in class org.apache.hadoop.mapreduce.RecordReader<MRContainer,MRContainer>
IOException
public MRContainer getCurrentValue() throws IOException
getCurrentValue
in class org.apache.hadoop.mapreduce.RecordReader<MRContainer,MRContainer>
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.hadoop.mapreduce.RecordReader<MRContainer,MRContainer>
IOException
public float getProgress() throws IOException
getProgress
in class org.apache.hadoop.mapreduce.RecordReader<MRContainer,MRContainer>
IOException
public void initialize(org.apache.hadoop.mapreduce.InputSplit split, org.apache.hadoop.mapreduce.TaskAttemptContext context) throws IOException
initialize
in class org.apache.hadoop.mapreduce.RecordReader<MRContainer,MRContainer>
IOException
Copyright © 2013–2014 The Apache Software Foundation. All rights reserved.