org.apache.hadoop.hbase
Class RegionLoad

java.lang.Object
  extended by org.apache.hadoop.hbase.RegionLoad

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class RegionLoad
extends Object

Encapsulates per-region load metrics.


Field Summary
protected  ClusterStatusProtos.RegionLoad regionLoadPB
           
 
Constructor Summary
RegionLoad(ClusterStatusProtos.RegionLoad regionLoadPB)
           
 
Method Summary
 long getCompleteSequenceId()
          This does not really belong inside RegionLoad but its being done in the name of expediency.
 long getCurrentCompactedKVs()
           
 float getDataLocality()
           
 int getMemStoreSizeMB()
           
 byte[] getName()
           
 String getNameAsString()
           
 long getReadRequestsCount()
           
 long getRequestsCount()
           
 int getRootIndexSizeKB()
           
 int getStorefileIndexSizeMB()
           
 int getStorefiles()
           
 int getStorefileSizeMB()
           
 int getStores()
           
 int getStoreUncompressedSizeMB()
           
 long getTotalCompactingKVs()
           
 int getTotalStaticBloomSizeKB()
           
 int getTotalStaticIndexSizeKB()
           
 long getWriteRequestsCount()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

regionLoadPB

protected ClusterStatusProtos.RegionLoad regionLoadPB
Constructor Detail

RegionLoad

public RegionLoad(ClusterStatusProtos.RegionLoad regionLoadPB)
Method Detail

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.