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