|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.nutch.io.MapFile.Reader
org.apache.nutch.io.ArrayFile.Reader
Provide access to an existing array file.
Constructor Summary | |
ArrayFile.Reader(NutchFileSystem nfs,
String file)
Construct an array reader for the named file. |
Method Summary | |
Writable |
get(long n,
Writable value)
Return the n th value in the file. |
long |
key()
Returns the key associated with the most recent call to seek(long) , next(Writable) , or get(long,Writable) . |
Writable |
next(Writable value)
Read and return the next value in the file. |
void |
seek(long n)
Positions the reader before its n th value. |
Methods inherited from class org.apache.nutch.io.MapFile.Reader |
close, finalKey, get, getKeyClass, getValueClass, next, reset, seek |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ArrayFile.Reader(NutchFileSystem nfs, String file) throws IOException
Method Detail |
public void seek(long n) throws IOException
n
th value.
IOException
public Writable next(Writable value) throws IOException
IOException
public long key() throws IOException
seek(long)
, next(Writable)
, or get(long,Writable)
.
IOException
public Writable get(long n, Writable value) throws IOException
n
th value in the file.
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |