edu.umd.cloud9.collection.line
Class TextDocumentInputFormat.TextDocumentLineRecordReader

java.lang.Object
  extended by edu.umd.cloud9.collection.line.TextDocumentInputFormat.TextDocumentLineRecordReader
All Implemented Interfaces:
RecordReader<LongWritable,TextDocument>
Enclosing class:
TextDocumentInputFormat

public static class TextDocumentInputFormat.TextDocumentLineRecordReader
extends Object
implements RecordReader<LongWritable,TextDocument>


Constructor Summary
TextDocumentInputFormat.TextDocumentLineRecordReader(Configuration job, FileSplit split)
           
 
Method Summary
 void close()
           
 LongWritable createKey()
           
 TextDocument createValue()
           
 long getPos()
           
 float getProgress()
           
 boolean next(LongWritable key, TextDocument value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextDocumentInputFormat.TextDocumentLineRecordReader

public TextDocumentInputFormat.TextDocumentLineRecordReader(Configuration job,
                                                            FileSplit split)
                                                     throws IOException
Throws:
IOException
Method Detail

createKey

public LongWritable createKey()
Specified by:
createKey in interface RecordReader<LongWritable,TextDocument>

createValue

public TextDocument createValue()
Specified by:
createValue in interface RecordReader<LongWritable,TextDocument>

getPos

public long getPos()
            throws IOException
Specified by:
getPos in interface RecordReader<LongWritable,TextDocument>
Throws:
IOException

close

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

getProgress

public float getProgress()
Specified by:
getProgress in interface RecordReader<LongWritable,TextDocument>

next

public boolean next(LongWritable key,
                    TextDocument value)
Specified by:
next in interface RecordReader<LongWritable,TextDocument>