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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Closes the underlying reader, but do no evict blocks belonging to this file.static MobFilecreate(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.voidopen()Opens the underlying reader.Reads a cell from the mob file.Reads a cell from the mob file.
- 
Field Details- 
sf
 
- 
- 
Constructor Details- 
MobFileprotected MobFile()
- 
MobFile
 
- 
- 
Method Details- 
getScannerInternal use only. This is used by the sweeper.- Returns:
- The store file scanner.
- Throws:
- IOException
 
- 
readCellReads 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
 
- 
readCellReads 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
 
- 
getFileNameGets the file name.- Returns:
- The file name.
 
- 
openOpens the underlying reader. It's not thread-safe. Use MobFileCache.openFile() instead.- Throws:
- IOException
 
- 
closeCloses the underlying reader, but do no evict blocks belonging to this file. It's not thread-safe. Use MobFileCache.closeFile() instead.- Throws:
- IOException
 
- 
createpublic 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
 
 
-