public static class BloomMapFile.Reader extends MapFile.Reader
MapFile.Reader.Option| Constructor and Description |
|---|
BloomMapFile.Reader(FileSystem fs,
String dirName,
Configuration conf)
Deprecated.
|
BloomMapFile.Reader(FileSystem fs,
String dirName,
WritableComparator comparator,
Configuration conf)
Deprecated.
|
BloomMapFile.Reader(FileSystem fs,
String dirName,
WritableComparator comparator,
Configuration conf,
boolean open)
Deprecated.
|
BloomMapFile.Reader(Path dir,
Configuration conf,
SequenceFile.Reader.Option... options) |
| Modifier and Type | Method and Description |
|---|---|
Writable |
get(WritableComparable key,
Writable val)
Fast version of the
MapFile.Reader.get(WritableComparable, Writable) method. |
org.apache.hadoop.util.bloom.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, comparator, createDataFileReader, finalKey, getClosest, getClosest, getKeyClass, getValueClass, midKey, next, open, reset, seekpublic BloomMapFile.Reader(Path dir, Configuration conf, SequenceFile.Reader.Option... options) throws IOException
IOException@Deprecated public BloomMapFile.Reader(FileSystem fs, String dirName, Configuration conf) throws IOException
IOException@Deprecated public BloomMapFile.Reader(FileSystem fs, String dirName, WritableComparator comparator, Configuration conf, boolean open) throws IOException
IOException@Deprecated public 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 in class MapFile.ReaderIOExceptionpublic org.apache.hadoop.util.bloom.Filter getBloomFilter()
Filter)Copyright © 2019 Apache Software Foundation. All Rights Reserved.