public static class BloomMapFile.Reader extends MapFile.Reader
| 构造器和说明 |
|---|
BloomMapFile.Reader(FileSystem fs,
String dirName,
Configuration conf) |
BloomMapFile.Reader(FileSystem fs,
String dirName,
WritableComparator comparator,
Configuration conf) |
BloomMapFile.Reader(FileSystem fs,
String dirName,
WritableComparator comparator,
Configuration conf,
boolean open) |
| 限定符和类型 | 方法和说明 |
|---|---|
Writable |
get(WritableComparable key,
Writable val)
Fast version of the
MapFile.Reader.get(WritableComparable, Writable) method. |
Filter |
getBloomFilter()
Retrieve the Bloom filter used by this instance of the Reader.
|
boolean |
probablyHasKey(WritableComparable key)
Checks if this MapFile has the indicated key.
|
close, createDataFileReader, finalKey, getClosest, getClosest, getKeyClass, getValueClass, midKey, next, open, reset, seekpublic BloomMapFile.Reader(FileSystem fs, String dirName, Configuration conf) throws IOException
IOExceptionpublic BloomMapFile.Reader(FileSystem fs, String dirName, WritableComparator comparator, Configuration conf, boolean open) throws IOException
IOExceptionpublic BloomMapFile.Reader(FileSystem fs, String dirName, WritableComparator comparator, Configuration conf) throws IOException
IOExceptionpublic boolean probablyHasKey(WritableComparable key) throws IOException
key - key to checkIOExceptionpublic Writable get(WritableComparable key, Writable val) throws IOException
MapFile.Reader.get(WritableComparable, Writable) method. First
it checks the Bloom filter for the existence of the key, and only if
present it performs the real get operation. This yields significant
performance improvements for get operations on sparsely populated files.get 在类中 MapFile.ReaderIOExceptionCopyright © 2009 The Apache Software Foundation