@InterfaceAudience.Private public class MobFile extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
MobFile() |
protected |
MobFile(StoreFile sf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying reader, but do no evict blocks belonging to this file.
|
static MobFile |
create(FileSystem fs,
Path path,
Configuration conf,
CacheConfig cacheConf)
Creates an instance of the MobFile.
|
java.lang.String |
getFileName()
Gets the file name.
|
StoreFileScanner |
getScanner()
Internal use only.
|
void |
open()
Opens the underlying reader.
|
Cell |
readCell(Cell search,
boolean cacheMobBlocks)
Reads a cell from the mob file.
|
Cell |
readCell(Cell search,
boolean cacheMobBlocks,
long readPt)
Reads a cell from the mob file.
|
protected MobFile()
protected MobFile(StoreFile sf)
public StoreFileScanner getScanner() throws java.io.IOException
java.io.IOExceptionpublic Cell readCell(Cell search, boolean cacheMobBlocks) throws java.io.IOException
search - The cell need to be searched in the mob file.cacheMobBlocks - Should this scanner cache blocks.java.io.IOExceptionpublic Cell readCell(Cell search, boolean cacheMobBlocks, long readPt) throws java.io.IOException
search - The cell need to be searched in the mob file.cacheMobBlocks - Should this scanner cache blocks.readPt - the read point.java.io.IOExceptionpublic java.lang.String getFileName()
public void open()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
java.io.IOExceptionpublic static MobFile create(FileSystem fs, Path path, Configuration conf, CacheConfig cacheConf) throws java.io.IOException
fs - The file system.path - The path of the underlying StoreFile.conf - The configuration.cacheConf - The CacheConfig.java.io.IOException