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 |
(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()
Returns count of blocks in the cache
|
int |
getDataCount() |
long |
getDataSize()
Returns Size of data.
|
long |
getSize()
Returns size of blocks in the cache
|
boolean |
isFull() |
String |
toString() |
boolean |
update(CachedBlock cb)
n * @return True if full....
|
private int count
private int dataBlockCount
private long size
private long dataSize
private final long now
private final int max
private transient NavigableMap<String,NavigableSet<CachedBlock>> cachedBlockByFile
FastLongHistogram hist
CachedBlocksByFile()
CachedBlocksByFile(org.apache.hadoop.conf.Configuration c)
public boolean update(CachedBlock 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–2020 The Apache Software Foundation. All rights reserved.