java.io.Closeable, java.lang.AutoCloseablepublic static class ArrayFile.Reader extends MapFile.Reader
MapFile.Reader.Option| Constructor | Description |
|---|---|
Reader(FileSystem fs,
java.lang.String file,
Configuration conf) |
Construct an array reader for the named file.
|
| Modifier and Type | Method | Description |
|---|---|---|
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, comparator, createDataFileReader, finalKey, get, getClosest, getClosest, getKeyClass, getValueClass, midKey, next, open, reset, seekpublic Reader(FileSystem fs, java.lang.String file, Configuration conf) throws java.io.IOException
fs - FileSystem.file - file.conf - configuration.java.io.IOException - raised on errors performing I/O.public void seek(long n)
throws java.io.IOException
nth value.n - n key.java.io.IOException - raised on errors performing I/O.public Writable next(Writable value) throws java.io.IOException
value - value.java.io.IOException - raised on errors performing I/O.public long key()
throws java.io.IOException
seek(long), next(Writable), or get(long,Writable).java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.