@InterfaceAudience.Private public class CachedMobFile extends MobFile implements Comparable<CachedMobFile>
| Constructor and Description |
|---|
CachedMobFile(HStoreFile 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(org.apache.hadoop.fs.FileSystem fs,
org.apache.hadoop.fs.Path path,
org.apache.hadoop.conf.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, readCellpublic CachedMobFile(HStoreFile sf)
public static CachedMobFile create(org.apache.hadoop.fs.FileSystem fs, org.apache.hadoop.fs.Path path, org.apache.hadoop.conf.Configuration conf, CacheConfig cacheConf) throws IOException
IOExceptionpublic void access(long accessCount)
public int compareTo(CachedMobFile that)
compareTo in interface Comparable<CachedMobFile>public void open()
throws IOException
open in class MobFileIOExceptionpublic void close()
throws IOException
close in class MobFileIOExceptionpublic long getReferenceCount()
Copyright © 2007–2019 Cloudera. All rights reserved.