|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.io.MapFile.Reader org.apache.hadoop.io.BloomMapFile.Reader
public static class BloomMapFile.Reader
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.hadoop.io.MapFile.Reader |
---|
MapFile.Reader.Option |
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.hadoop.io.MapFile.Reader |
---|
close, comparator, createDataFileReader, finalKey, getClosest, getClosest, getKeyClass, getValueClass, midKey, next, open, reset, seek |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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
IOException
Method Detail |
---|
public boolean probablyHasKey(WritableComparable key) throws IOException
key
- key to check
IOException
public 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.Reader
IOException
public org.apache.hadoop.util.bloom.Filter getBloomFilter()
Filter
)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |