|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.io.MapFile.Reader
org.apache.hadoop.io.SetFile.Reader
public static class SetFile.Reader
Provide access to an existing set file.
| Constructor Summary | |
|---|---|
SetFile.Reader(FileSystem fs,
String dirName,
Configuration conf)
Construct a set reader for the named set. |
|
SetFile.Reader(FileSystem fs,
String dirName,
WritableComparator comparator,
Configuration conf)
Construct a set reader for the named set using the named comparator. |
|
| Method Summary | |
|---|---|
WritableComparable |
get(WritableComparable key)
Read the matching key from a set into key. |
boolean |
next(WritableComparable key)
Read the next key in a set into key. |
boolean |
seek(WritableComparable key)
Positions the reader at the named key, or if none such exists, at the first entry after the named key. |
| Methods inherited from class org.apache.hadoop.io.MapFile.Reader |
|---|
close, createDataFileReader, finalKey, get, getClosest, getClosest, getKeyClass, getValueClass, midKey, next, open, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SetFile.Reader(FileSystem fs,
String dirName,
Configuration conf)
throws IOException
IOException
public SetFile.Reader(FileSystem fs,
String dirName,
WritableComparator comparator,
Configuration conf)
throws IOException
IOException| Method Detail |
|---|
public boolean seek(WritableComparable key)
throws IOException
MapFile.Reader
seek in class MapFile.ReaderIOException
public boolean next(WritableComparable key)
throws IOException
key. Returns
true if such a key exists and false when at the end of the set.
IOException
public WritableComparable get(WritableComparable key)
throws IOException
key.
Returns key, or null if no match exists.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||