edu.umd.cloud9.collection.trecweb
Class TrecWebDocumentInputFormat.TrecWebDocumentRecordReader

java.lang.Object
  extended by org.apache.hadoop.mapreduce.RecordReader<LongWritable,WebDocument>
      extended by edu.umd.cloud9.collection.trecweb.TrecWebDocumentInputFormat.TrecWebDocumentRecordReader
All Implemented Interfaces:
Closeable
Enclosing class:
TrecWebDocumentInputFormat

public static class TrecWebDocumentInputFormat.TrecWebDocumentRecordReader
extends RecordReader<LongWritable,WebDocument>


Constructor Summary
TrecWebDocumentInputFormat.TrecWebDocumentRecordReader()
           
 
Method Summary
 void close()
           
 LongWritable getCurrentKey()
           
 WebDocument getCurrentValue()
           
 float getProgress()
           
 void initialize(InputSplit split, TaskAttemptContext context)
           
 boolean nextKeyValue()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrecWebDocumentInputFormat.TrecWebDocumentRecordReader

public TrecWebDocumentInputFormat.TrecWebDocumentRecordReader()
Method Detail

initialize

public void initialize(InputSplit split,
                       TaskAttemptContext context)
                throws IOException,
                       InterruptedException
Specified by:
initialize in class RecordReader<LongWritable,WebDocument>
Throws:
IOException
InterruptedException

getCurrentKey

public LongWritable getCurrentKey()
                           throws IOException,
                                  InterruptedException
Specified by:
getCurrentKey in class RecordReader<LongWritable,WebDocument>
Throws:
IOException
InterruptedException

getCurrentValue

public WebDocument getCurrentValue()
                            throws IOException,
                                   InterruptedException
Specified by:
getCurrentValue in class RecordReader<LongWritable,WebDocument>
Throws:
IOException
InterruptedException

nextKeyValue

public boolean nextKeyValue()
                     throws IOException,
                            InterruptedException
Specified by:
nextKeyValue in class RecordReader<LongWritable,WebDocument>
Throws:
IOException
InterruptedException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class RecordReader<LongWritable,WebDocument>
Throws:
IOException

getProgress

public float getProgress()
                  throws IOException,
                         InterruptedException
Specified by:
getProgress in class RecordReader<LongWritable,WebDocument>
Throws:
IOException
InterruptedException