@InterfaceAudience.Private public class BlockCacheColumnFamilySummary extends Object implements org.apache.hadoop.io.Writable, Comparable<BlockCacheColumnFamilySummary>
Constructor and Description |
---|
BlockCacheColumnFamilySummary()
Default constructor for Writable
|
BlockCacheColumnFamilySummary(String table,
String columnFamily) |
Modifier and Type | Method and Description |
---|---|
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) |
public BlockCacheColumnFamilySummary()
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 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
- BlockCacheSummaryEntryCopyright © 2013 The Apache Software Foundation. All rights reserved.