org.apache.hadoop.hbase.io
Class BloomFilterMapFile.Reader
java.lang.Object
org.apache.hadoop.hbase.io.MapFile.Reader
org.apache.hadoop.hbase.io.HBaseMapFile.HBaseReader
org.apache.hadoop.hbase.io.BloomFilterMapFile.Reader
- All Implemented Interfaces:
- Closeable
- Direct Known Subclasses:
- HalfMapFileReader
- Enclosing class:
- BloomFilterMapFile
public static class BloomFilterMapFile.Reader
- extends HBaseMapFile.HBaseReader
Method Summary |
org.apache.hadoop.io.Writable |
get(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Writable val)
Return the value for the named key, or null if none exists. |
int |
getBloomFilterSize()
|
org.apache.hadoop.io.WritableComparable |
getClosest(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Writable val)
Finds the record that is the closest match to the specified key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BloomFilterMapFile.Reader
public BloomFilterMapFile.Reader(org.apache.hadoop.fs.FileSystem fs,
String dirName,
org.apache.hadoop.conf.Configuration conf,
boolean filter,
boolean blockCacheEnabled,
HRegionInfo hri)
throws IOException
- Parameters:
fs
- dirName
- conf
- filter
- blockCacheEnabled
- hri
-
- Throws:
IOException
get
public org.apache.hadoop.io.Writable get(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Writable val)
throws IOException
- Description copied from class:
MapFile.Reader
- Return the value for the named key, or null if none exists.
- Overrides:
get
in class MapFile.Reader
- Throws:
IOException
getClosest
public org.apache.hadoop.io.WritableComparable getClosest(org.apache.hadoop.io.WritableComparable key,
org.apache.hadoop.io.Writable val)
throws IOException
- Description copied from class:
MapFile.Reader
- Finds the record that is the closest match to the specified key.
Returns
key
or if it does not exist, at the first entry
after the named key.
- * @param key - key that we're trying to find
- * @param val - data value if key is found
- * @return - the key that was the closest match or null if eof.
- Overrides:
getClosest
in class MapFile.Reader
- Throws:
IOException
getBloomFilterSize
public int getBloomFilterSize()
- Returns:
- size of the bloom filter
Copyright © 2008 The Apache Software Foundation