@InterfaceAudience.Private public class MobFile extends Object
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.
|
protected MobFile()
protected MobFile(HStoreFile sf)
public StoreFileScanner getScanner() throws IOException
IOException
public 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.IOException
public 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.IOException
public String getFileName()
public void open() throws IOException
IOException
public void close() throws IOException
IOException
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
fs
- The file system.path
- The path of the underlying StoreFile.conf
- The configuration.cacheConf
- The CacheConfig.IOException
Copyright © 2007–2019 Cloudera. All rights reserved.