org.apache.hadoop.hbase.io
Class BloomFilterMapFile.Reader

java.lang.Object
  extended by org.apache.hadoop.hbase.io.MapFile.Reader
      extended by org.apache.hadoop.hbase.io.HBaseMapFile.HBaseReader
          extended by 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


Constructor Summary
BloomFilterMapFile.Reader(org.apache.hadoop.fs.FileSystem fs, String dirName, org.apache.hadoop.conf.Configuration conf, boolean filter, boolean blockCacheEnabled, HRegionInfo hri)
           
 
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 org.apache.hadoop.hbase.io.HBaseMapFile.HBaseReader
createDataFileReader
 
Methods inherited from class org.apache.hadoop.hbase.io.MapFile.Reader
close, finalKey, 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

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
Method Detail

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