Package org.apache.hadoop.hbase
Interface RegionMetrics
- All Known Implementing Classes:
RegionMetricsBuilder.RegionMetricsImpl
Encapsulates per-region load metrics.
-
Method Summary
Modifier and TypeMethodDescriptionlong
Returns the data at local weight of this region in the regionserverlong
Different from blocksLocalWeight,this metric's numerator only include the data stored on ssdlong
Returns the block total weight of this regionReturns The total size of all Bloom filter blocks, not just loaded into the block cachelong
Returns the number of already compacted kvs in current compactionlong
Returns the total number of cells in current compactionReturns the compaction state of this regionlong
This does not really belong inside RegionLoad but its being done in the name of expediency.long
Returns the number of coprocessor service requests made to regionfloat
Returns current prefetch ratio of this region on this serverfloat
Returns the data locality of region in the regionserver.float
Different from dataLocality,this metric's numerator only include the data stored on ssdlong
Returns the number of filtered read requests made to regionlong
Returns the timestamp of the oldest hfile for any store of this region.int
Returns the max reference count for any store file among all compacted stores files of this regionReturns the memstore sizedefault String
Returns the region name as a stringlong
Returns the number of read requests made to regionbyte[]
Returns the region nameReturns the total size of the hfiles in the regiondefault long
Returns the number of write requests and read requests and coprocessor service requests made to regionint
Returns the number of storesint
Returns the number of storefilesTODO: why we pass the same value to different counters? Currently, the value from getStoreFileIndexSize() is same with getStoreFileRootLevelIndexSize() see HRegionServer#createRegionLoad.Returns The current total size of root-level indexes for the regionReturns the total size of the storefilesReturns The total size of all index blocks, not just the root levelint
Returns the reference count for the stores of this regionReturns completed sequence id per store.Returns the uncompressed size of the storefileslong
Returns the number of write requests made to region
-
Method Details
-
getRegionName
byte[] getRegionName()Returns the region name -
getStoreCount
int getStoreCount()Returns the number of stores -
getStoreFileCount
int getStoreFileCount()Returns the number of storefiles -
getStoreFileSize
Returns the total size of the storefiles -
getMemStoreSize
Returns the memstore size -
getReadRequestCount
long getReadRequestCount()Returns the number of read requests made to region -
getWriteRequestCount
long getWriteRequestCount()Returns the number of write requests made to region -
getCpRequestCount
long getCpRequestCount()Returns the number of coprocessor service requests made to region -
getRequestCount
Returns the number of write requests and read requests and coprocessor service requests made to region -
getNameAsString
Returns the region name as a string -
getFilteredReadRequestCount
long getFilteredReadRequestCount()Returns the number of filtered read requests made to region -
getStoreFileIndexSize
TODO: why we pass the same value to different counters? Currently, the value from getStoreFileIndexSize() is same with getStoreFileRootLevelIndexSize() see HRegionServer#createRegionLoad.- Returns:
- The current total size of root-level indexes for the region
-
getStoreFileRootLevelIndexSize
Returns The current total size of root-level indexes for the region -
getStoreFileUncompressedDataIndexSize
Returns The total size of all index blocks, not just the root level -
getBloomFilterSize
Returns The total size of all Bloom filter blocks, not just loaded into the block cache -
getCompactingCellCount
long getCompactingCellCount()Returns the total number of cells in current compaction -
getCompactedCellCount
long getCompactedCellCount()Returns the number of already compacted kvs in current compaction -
getCompletedSequenceId
long getCompletedSequenceId()This does not really belong inside RegionLoad but its being done in the name of expediency.- Returns:
- the completed sequence Id for the region
-
getStoreSequenceId
Map<byte[],Long> getStoreSequenceId()Returns completed sequence id per store. -
getUncompressedStoreFileSize
Returns the uncompressed size of the storefiles -
getDataLocality
float getDataLocality()Returns the data locality of region in the regionserver. -
getLastMajorCompactionTimestamp
Returns the timestamp of the oldest hfile for any store of this region. -
getStoreRefCount
int getStoreRefCount()Returns the reference count for the stores of this region -
getMaxCompactedStoreFileRefCount
Returns the max reference count for any store file among all compacted stores files of this region -
getDataLocalityForSsd
float getDataLocalityForSsd()Different from dataLocality,this metric's numerator only include the data stored on ssd- Returns:
- the data locality for ssd of region in the regionserver
-
getBlocksLocalWeight
long getBlocksLocalWeight()Returns the data at local weight of this region in the regionserver -
getBlocksLocalWithSsdWeight
long getBlocksLocalWithSsdWeight()Different from blocksLocalWeight,this metric's numerator only include the data stored on ssd- Returns:
- the data at local with ssd weight of this region in the regionserver
-
getBlocksTotalWeight
long getBlocksTotalWeight()Returns the block total weight of this region -
getCompactionState
Returns the compaction state of this region -
getRegionSizeMB
Returns the total size of the hfiles in the region -
getCurrentRegionCachedRatio
float getCurrentRegionCachedRatio()Returns current prefetch ratio of this region on this server
-