@InterfaceAudience.Private public class MobFile extends Object
| Modifier and Type | Field and Description | 
|---|---|
| private HStoreFile | sf | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | MobFile() | 
| protected  | MobFile(HStoreFile 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(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. | 
| 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. | 
private HStoreFile sf
protected MobFile()
protected MobFile(HStoreFile sf)
public StoreFileScanner getScanner() throws IOException
IOExceptionpublic Cell readCell(Cell search, boolean cacheMobBlocks) throws IOException
search - The cell need to be searched in the mob file.cacheMobBlocks - Should this scanner cache blocks.IOExceptionpublic Cell readCell(Cell search, boolean cacheMobBlocks, long readPt) throws IOException
search - The cell need to be searched in the mob file.cacheMobBlocks - Should this scanner cache blocks.readPt - the read point.IOExceptionpublic String getFileName()
public void open() throws IOException
IOExceptionpublic void close() throws IOException
IOExceptionpublic 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
fs - The file system.path - The path of the underlying StoreFile.conf - The configuration.cacheConf - The CacheConfig.IOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.