public static class BlockCacheUtil.CachedBlocksByFile extends Object
Modifier and Type | Field and Description |
---|---|
private NavigableMap<String,NavigableSet<CachedBlock>> |
cachedBlockByFile
Map by filename.
|
private int |
count |
private int |
dataBlockCount |
private long |
dataSize |
static int |
DEFAULT_MAX |
(package private) FastLongHistogram |
hist |
private int |
max
How many blocks to look at before we give up.
|
private long |
now |
private long |
size |
Constructor and Description |
---|
CachedBlocksByFile() |
CachedBlocksByFile(org.apache.hadoop.conf.Configuration c) |
Modifier and Type | Method and Description |
---|---|
AgeSnapshot |
getAgeInCacheSnapshot() |
NavigableMap<String,NavigableSet<CachedBlock>> |
getCachedBlockStatsByFile() |
int |
getCount() |
int |
getDataCount() |
long |
getDataSize() |
long |
getSize() |
boolean |
isFull() |
String |
toString() |
boolean |
update(CachedBlock cb) |
private int count
private int dataBlockCount
private long size
private long dataSize
private final long now
private final int max
public static final int DEFAULT_MAX
private NavigableMap<String,NavigableSet<CachedBlock>> cachedBlockByFile
FastLongHistogram hist
CachedBlocksByFile()
CachedBlocksByFile(org.apache.hadoop.conf.Configuration c)
public boolean update(CachedBlock cb)
cb
- public boolean isFull()
hbase.ui.blockcache.by.file.max
(Default: DEFAULT_MAX).public NavigableMap<String,NavigableSet<CachedBlock>> getCachedBlockStatsByFile()
public int getCount()
public int getDataCount()
public long getSize()
public long getDataSize()
public AgeSnapshot getAgeInCacheSnapshot()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.