org.apache.nutch.mapReduce
Interface RecordReader


public interface RecordReader

Reads key/value pairs from an input file FileSplit. Implemented by InputFormat implementations.


Method Summary
 void close()
          Close this to future operations.
 long getPos()
          Returns the current position in the input.
 boolean next(Writable key, Writable value)
          Reads the next key/value pair.
 

Method Detail

next

public boolean next(Writable key,
                    Writable value)
             throws IOException
Reads the next key/value pair.

Parameters:
key - the key to read data into
value - the value to read data into
Returns:
true iff a key/value was read, false if at EOF
Throws:
IOException
See Also:
Writable.readFields(DataInput)

getPos

public long getPos()
            throws IOException
Returns the current position in the input.

Throws:
IOException

close

public void close()
           throws IOException
Close this to future operations.

Throws:
IOException


Copyright © 2006 The Apache Software Foundation