org.apache.hadoop.hbase
Class RegionLoad
java.lang.Object
org.apache.hadoop.hbase.RegionLoad
@InterfaceAudience.Public
@InterfaceStability.Evolving
public class RegionLoad
- extends Object
Encapsulates per-region load metrics.
regionLoadPB
protected ClusterStatusProtos.RegionLoad regionLoadPB
RegionLoad
public RegionLoad(ClusterStatusProtos.RegionLoad regionLoadPB)
getName
public byte[] getName()
- Returns:
- the region name
getNameAsString
public String getNameAsString()
- Returns:
- the region name as a string
getStores
public int getStores()
- Returns:
- the number of stores
getStorefiles
public int getStorefiles()
- Returns:
- the number of storefiles
getStorefileSizeMB
public int getStorefileSizeMB()
- Returns:
- the total size of the storefiles, in MB
getMemStoreSizeMB
public int getMemStoreSizeMB()
- Returns:
- the memstore size, in MB
getStorefileIndexSizeMB
public int getStorefileIndexSizeMB()
- Returns:
- the approximate size of storefile indexes on the heap, in MB
getRequestsCount
public long getRequestsCount()
- Returns:
- the number of requests made to region
getReadRequestsCount
public long getReadRequestsCount()
- Returns:
- the number of read requests made to region
getWriteRequestsCount
public long getWriteRequestsCount()
- Returns:
- the number of write requests made to region
getRootIndexSizeKB
public int getRootIndexSizeKB()
- Returns:
- The current total size of root-level indexes for the region, in KB.
getTotalStaticIndexSizeKB
public int getTotalStaticIndexSizeKB()
- Returns:
- The total size of all index blocks, not just the root level, in KB.
getTotalStaticBloomSizeKB
public int getTotalStaticBloomSizeKB()
- Returns:
- The total size of all Bloom filter blocks, not just loaded into the
block cache, in KB.
getTotalCompactingKVs
public long getTotalCompactingKVs()
- Returns:
- the total number of kvs in current compaction
getCurrentCompactedKVs
public long getCurrentCompactedKVs()
- Returns:
- the number of already compacted kvs in current compaction
getCompleteSequenceId
public long getCompleteSequenceId()
- This does not really belong inside RegionLoad but its being done in the name of expediency.
- Returns:
- the completed sequence Id for the region
getStoreUncompressedSizeMB
public int getStoreUncompressedSizeMB()
- Returns:
- the uncompressed size of the storefiles in MB.
getDataLocality
public float getDataLocality()
- Returns:
- the data locality of region in the regionserver.
toString
public String toString()
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.