org.apache.hadoop.hbase.io
Class HBaseMapFile.HBaseReader

java.lang.Object
  extended by org.apache.hadoop.hbase.io.MapFile.Reader
      extended by org.apache.hadoop.hbase.io.HBaseMapFile.HBaseReader
All Implemented Interfaces:
Closeable
Direct Known Subclasses:
BloomFilterMapFile.Reader
Enclosing class:
HBaseMapFile

public static class HBaseMapFile.HBaseReader
extends MapFile.Reader

A reader capable of reading and caching blocks of the data file.


Constructor Summary
HBaseMapFile.HBaseReader(org.apache.hadoop.fs.FileSystem fs, String dirName, org.apache.hadoop.conf.Configuration conf, boolean blockCacheEnabled, HRegionInfo hri)
           
HBaseMapFile.HBaseReader(org.apache.hadoop.fs.FileSystem fs, String dirName, org.apache.hadoop.conf.Configuration conf, HRegionInfo hri)
           
 
Method Summary
protected  SequenceFile.Reader createDataFileReader(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path dataFile, org.apache.hadoop.conf.Configuration conf)
          Override this method to specialize the type of SequenceFile.Reader returned.
 
Methods inherited from class org.apache.hadoop.hbase.io.MapFile.Reader
close, finalKey, get, 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

HBaseMapFile.HBaseReader

public HBaseMapFile.HBaseReader(org.apache.hadoop.fs.FileSystem fs,
                                String dirName,
                                org.apache.hadoop.conf.Configuration conf,
                                HRegionInfo hri)
                         throws IOException
Parameters:
fs -
dirName -
conf -
hri -
Throws:
IOException

HBaseMapFile.HBaseReader

public HBaseMapFile.HBaseReader(org.apache.hadoop.fs.FileSystem fs,
                                String dirName,
                                org.apache.hadoop.conf.Configuration conf,
                                boolean blockCacheEnabled,
                                HRegionInfo hri)
                         throws IOException
Parameters:
fs -
dirName -
conf -
blockCacheEnabled -
hri -
Throws:
IOException
Method Detail

createDataFileReader

protected SequenceFile.Reader createDataFileReader(org.apache.hadoop.fs.FileSystem fs,
                                                   org.apache.hadoop.fs.Path dataFile,
                                                   org.apache.hadoop.conf.Configuration conf)
                                            throws IOException
Description copied from class: MapFile.Reader
Override this method to specialize the type of SequenceFile.Reader returned.

Overrides:
createDataFileReader in class MapFile.Reader
Throws:
IOException


Copyright © 2008 The Apache Software Foundation