public static class ArrayFile.Reader extends MapFile.Reader
| 构造器和说明 |
|---|
ArrayFile.Reader(FileSystem fs,
String file,
Configuration conf)
Construct an array reader for the named file.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Writable |
get(long n,
Writable value)
Return the
nth 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
nth value. |
close, createDataFileReader, finalKey, get, getClosest, getClosest, getKeyClass, getValueClass, midKey, next, open, reset, seekpublic ArrayFile.Reader(FileSystem fs, String file, Configuration conf) throws IOException
IOExceptionpublic void seek(long n)
throws IOException
nth value.IOExceptionpublic Writable next(Writable value) throws IOException
IOExceptionpublic long key()
throws IOException
seek(long), next(Writable), or get(long,Writable).IOExceptionpublic Writable get(long n, Writable value) throws IOException
nth value in the file.IOExceptionCopyright © 2009 The Apache Software Foundation