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

java.lang.Object
  extended by org.apache.hadoop.io.MapFile.Reader
      extended by org.apache.hadoop.hbase.migration.nineteen.io.HBaseMapFile.HBaseReader
          extended by org.apache.hadoop.hbase.migration.nineteen.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)
           
 int getBloomFilterSize()
           
 org.apache.hadoop.io.WritableComparable getClosest(org.apache.hadoop.io.WritableComparable key, org.apache.hadoop.io.Writable val)
           
 
Methods inherited from class org.apache.hadoop.io.MapFile.Reader
close, createDataFileReader, 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
Overrides:
get in class org.apache.hadoop.io.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
Overrides:
getClosest in class org.apache.hadoop.io.MapFile.Reader
Throws:
IOException

getBloomFilterSize

public int getBloomFilterSize()
Returns:
size of the bloom filter


Copyright © 2009 The Apache Software Foundation