|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.io.hfile.BlockCacheColumnFamilySummary
public class BlockCacheColumnFamilySummary
BlockCacheColumnFamilySummary represents a summary of the blockCache usage
at Table/ColumnFamily granularity.
As ColumnFamilies are owned by Tables, a summary by ColumnFamily implies that
the owning Table is included in the summarization.
Constructor Summary | |
---|---|
BlockCacheColumnFamilySummary()
Default constructor for Writable |
|
BlockCacheColumnFamilySummary(String table,
String columnFamily)
|
Method Summary | |
---|---|
int |
compareTo(BlockCacheColumnFamilySummary o)
|
static BlockCacheColumnFamilySummary |
create(BlockCacheColumnFamilySummary e)
Creates a new BlockCacheSummaryEntry |
static BlockCacheColumnFamilySummary |
createFromStoreFilePath(org.apache.hadoop.fs.Path path)
Construct a BlockCacheSummaryEntry from a full StoreFile Path The path is expected to be in the format of... |
boolean |
equals(Object obj)
|
int |
getBlocks()
|
String |
getColumnFamily()
|
long |
getHeapSize()
|
String |
getTable()
|
int |
hashCode()
|
void |
incrementBlocks()
Increments the number of blocks in the cache for this entry |
void |
incrementHeapSize(long heapSize)
|
void |
readFields(DataInput in)
|
void |
setBlocks(int blocks)
|
void |
setColumnFamily(String columnFamily)
|
void |
setHeapSize(long heapSize)
|
void |
setTable(String table)
|
String |
toString()
|
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BlockCacheColumnFamilySummary()
public BlockCacheColumnFamilySummary(String table, String columnFamily)
table
- tablecolumnFamily
- columnFamilyMethod Detail |
---|
public String getTable()
public void setTable(String table)
table
- (table that owns the cached block)public String getColumnFamily()
public void setColumnFamily(String columnFamily)
columnFamily
- (columnFamily that owns the cached block)public int getBlocks()
public void setBlocks(int blocks)
blocks
- in the cachepublic long getHeapSize()
public void incrementBlocks()
public void incrementHeapSize(long heapSize)
heapSize
- to incrementpublic void setHeapSize(long heapSize)
heapSize
- (total heapSize for the table/CF)public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public static BlockCacheColumnFamilySummary createFromStoreFilePath(org.apache.hadoop.fs.Path path)
hdfs://localhost:51169/user/userid/-ROOT-/70236052/info/3944417774205889744... where:
path
- (full StoreFile Path)
public int compareTo(BlockCacheColumnFamilySummary o)
compareTo
in interface Comparable<BlockCacheColumnFamilySummary>
public static BlockCacheColumnFamilySummary create(BlockCacheColumnFamilySummary e)
e
- BlockCacheSummaryEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |