@InterfaceAudience.Private public class CachedMobFile extends MobFile implements Comparable<CachedMobFile>
Constructor and Description |
---|
CachedMobFile(StoreFile sf) |
Modifier and Type | Method and Description |
---|---|
void |
access(long accessCount) |
void |
close()
Decreases the reference of the underlying reader for the mob file.
|
int |
compareTo(CachedMobFile that) |
static CachedMobFile |
create(FileSystem fs,
Path path,
Configuration conf,
CacheConfig cacheConf) |
boolean |
equals(Object obj) |
long |
getReferenceCount()
Gets the reference of the current mob file.
|
int |
hashCode() |
void |
open()
Opens the mob file if it's not opened yet and increases the reference.
|
getFileName, getScanner, readCell, readCell
public CachedMobFile(StoreFile sf)
public static CachedMobFile create(FileSystem fs, Path path, Configuration conf, CacheConfig cacheConf) throws IOException
IOException
public void access(long accessCount)
public int compareTo(CachedMobFile that)
compareTo
in interface Comparable<CachedMobFile>
public void open() throws IOException
open
in class MobFile
IOException
public void close() throws IOException
close
in class MobFile
IOException
public long getReferenceCount()