Package org.apache.hadoop.hbase.mob
Class MobFile
java.lang.Object
org.apache.hadoop.hbase.mob.MobFile
- Direct Known Subclasses:
CachedMobFile
The mob file.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes the underlying reader, but do no evict blocks belonging to this file.static MobFile
create
(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, CacheConfig cacheConf) Creates an instance of the MobFile.Gets the file name.Internal use only.void
open()
Opens the underlying reader.Reads a cell from the mob file.Reads a cell from the mob file.
-
Field Details
-
sf
-
-
Constructor Details
-
MobFile
protected MobFile() -
MobFile
-
-
Method Details
-
getScanner
Internal use only. This is used by the sweeper.- Returns:
- The store file scanner.
- Throws:
IOException
-
readCell
Reads a cell from the mob file.- Parameters:
search
- The cell need to be searched in the mob file.cacheMobBlocks
- Should this scanner cache blocks.- Returns:
- The cell in the mob file.
- Throws:
IOException
-
readCell
Reads a cell from the mob file.- Parameters:
search
- The cell need to be searched in the mob file.cacheMobBlocks
- Should this scanner cache blocks.readPt
- the read point.- Returns:
- The cell in the mob file.
- Throws:
IOException
-
getFileName
Gets the file name.- Returns:
- The file name.
-
open
Opens the underlying reader. It's not thread-safe. Use MobFileCache.openFile() instead.- Throws:
IOException
-
close
Closes the underlying reader, but do no evict blocks belonging to this file. It's not thread-safe. Use MobFileCache.closeFile() instead.- Throws:
IOException
-
create
public static MobFile create(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, CacheConfig cacheConf) throws IOException Creates an instance of the MobFile.- Parameters:
fs
- The file system.path
- The path of the underlying StoreFile.conf
- The configuration.cacheConf
- The CacheConfig.- Returns:
- An instance of the MobFile.
- Throws:
IOException
-