Package org.apache.hadoop.hbase
Class RegionMetricsBuilder.RegionMetricsImpl
java.lang.Object
org.apache.hadoop.hbase.RegionMetricsBuilder.RegionMetricsImpl
- All Implemented Interfaces:
RegionMetrics
- Enclosing class:
- RegionMetricsBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprivate final long
private final long
private final long
private final Size
private final long
private final long
private final CompactionState
private final long
private final long
private final float
private final float
private final float
private final long
private final Size
private final long
private final int
private final Size
private final byte[]
private final long
private final Size
private final Size
private final int
private final int
private final Size
private final int
private final Size
private final Size
private final long
-
Constructor Summary
ConstructorDescriptionRegionMetricsImpl
(byte[] name, int storeCount, int storeFileCount, int storeRefCount, int maxCompactedStoreFileRefCount, long compactingCellCount, long compactedCellCount, Size storeFileSize, Size memStoreSize, Size indexSize, Size rootLevelIndexSize, Size uncompressedDataIndexSize, Size bloomFilterSize, Size uncompressedStoreFileSize, long writeRequestCount, long readRequestCount, long cpRequestCount, long filteredReadRequestCount, long completedSequenceId, Map<byte[], Long> storeSequenceIds, float dataLocality, long lastMajorCompactionTimestamp, float dataLocalityForSsd, long blocksLocalWeight, long blocksLocalWithSsdWeight, long blocksTotalWeight, CompactionState compactionState, Size regionSizeMB, float currentRegionCachedRatio) -
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 sizelong
Returns the number of read requests made to regionbyte[]
Returns the region nameReturns the total size of the hfiles in the 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 regiontoString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.RegionMetrics
getNameAsString, getRequestCount
-
Field Details
-
name
-
storeCount
-
storeFileCount
-
storeRefCount
-
maxCompactedStoreFileRefCount
-
compactingCellCount
-
compactedCellCount
-
storeFileSize
-
memStoreSize
-
indexSize
-
rootLevelIndexSize
-
uncompressedDataIndexSize
-
bloomFilterSize
-
uncompressedStoreFileSize
-
writeRequestCount
-
readRequestCount
-
cpRequestCount
-
filteredReadRequestCount
-
completedSequenceId
-
storeSequenceIds
-
dataLocality
-
lastMajorCompactionTimestamp
-
dataLocalityForSsd
-
blocksLocalWeight
-
blocksLocalWithSsdWeight
-
blocksTotalWeight
-
compactionState
-
regionSizeMB
-
currentRegionCachedRatio
-
-
Constructor Details
-
RegionMetricsImpl
RegionMetricsImpl(byte[] name, int storeCount, int storeFileCount, int storeRefCount, int maxCompactedStoreFileRefCount, long compactingCellCount, long compactedCellCount, Size storeFileSize, Size memStoreSize, Size indexSize, Size rootLevelIndexSize, Size uncompressedDataIndexSize, Size bloomFilterSize, Size uncompressedStoreFileSize, long writeRequestCount, long readRequestCount, long cpRequestCount, long filteredReadRequestCount, long completedSequenceId, Map<byte[], Long> storeSequenceIds, float dataLocality, long lastMajorCompactionTimestamp, float dataLocalityForSsd, long blocksLocalWeight, long blocksLocalWithSsdWeight, long blocksTotalWeight, CompactionState compactionState, Size regionSizeMB, float currentRegionCachedRatio)
-
-
Method Details
-
getRegionName
Description copied from interface:RegionMetrics
Returns the region name- Specified by:
getRegionName
in interfaceRegionMetrics
-
getStoreCount
Description copied from interface:RegionMetrics
Returns the number of stores- Specified by:
getStoreCount
in interfaceRegionMetrics
-
getStoreFileCount
Description copied from interface:RegionMetrics
Returns the number of storefiles- Specified by:
getStoreFileCount
in interfaceRegionMetrics
-
getStoreRefCount
Description copied from interface:RegionMetrics
Returns the reference count for the stores of this region- Specified by:
getStoreRefCount
in interfaceRegionMetrics
-
getMaxCompactedStoreFileRefCount
Description copied from interface:RegionMetrics
Returns the max reference count for any store file among all compacted stores files of this region- Specified by:
getMaxCompactedStoreFileRefCount
in interfaceRegionMetrics
-
getStoreFileSize
Description copied from interface:RegionMetrics
Returns the total size of the storefiles- Specified by:
getStoreFileSize
in interfaceRegionMetrics
-
getMemStoreSize
Description copied from interface:RegionMetrics
Returns the memstore size- Specified by:
getMemStoreSize
in interfaceRegionMetrics
-
getReadRequestCount
Description copied from interface:RegionMetrics
Returns the number of read requests made to region- Specified by:
getReadRequestCount
in interfaceRegionMetrics
-
getCpRequestCount
Description copied from interface:RegionMetrics
Returns the number of coprocessor service requests made to region- Specified by:
getCpRequestCount
in interfaceRegionMetrics
-
getFilteredReadRequestCount
Description copied from interface:RegionMetrics
Returns the number of filtered read requests made to region- Specified by:
getFilteredReadRequestCount
in interfaceRegionMetrics
-
getWriteRequestCount
Description copied from interface:RegionMetrics
Returns the number of write requests made to region- Specified by:
getWriteRequestCount
in interfaceRegionMetrics
-
getStoreFileIndexSize
Description copied from interface:RegionMetrics
TODO: why we pass the same value to different counters? Currently, the value from getStoreFileIndexSize() is same with getStoreFileRootLevelIndexSize() see HRegionServer#createRegionLoad.- Specified by:
getStoreFileIndexSize
in interfaceRegionMetrics
- Returns:
- The current total size of root-level indexes for the region
-
getStoreFileRootLevelIndexSize
Description copied from interface:RegionMetrics
Returns The current total size of root-level indexes for the region- Specified by:
getStoreFileRootLevelIndexSize
in interfaceRegionMetrics
-
getStoreFileUncompressedDataIndexSize
Description copied from interface:RegionMetrics
Returns The total size of all index blocks, not just the root level- Specified by:
getStoreFileUncompressedDataIndexSize
in interfaceRegionMetrics
-
getBloomFilterSize
Description copied from interface:RegionMetrics
Returns The total size of all Bloom filter blocks, not just loaded into the block cache- Specified by:
getBloomFilterSize
in interfaceRegionMetrics
-
getCompactingCellCount
Description copied from interface:RegionMetrics
Returns the total number of cells in current compaction- Specified by:
getCompactingCellCount
in interfaceRegionMetrics
-
getCompactedCellCount
Description copied from interface:RegionMetrics
Returns the number of already compacted kvs in current compaction- Specified by:
getCompactedCellCount
in interfaceRegionMetrics
-
getCompletedSequenceId
Description copied from interface:RegionMetrics
This does not really belong inside RegionLoad but its being done in the name of expediency.- Specified by:
getCompletedSequenceId
in interfaceRegionMetrics
- Returns:
- the completed sequence Id for the region
-
getStoreSequenceId
Description copied from interface:RegionMetrics
Returns completed sequence id per store.- Specified by:
getStoreSequenceId
in interfaceRegionMetrics
-
getUncompressedStoreFileSize
Description copied from interface:RegionMetrics
Returns the uncompressed size of the storefiles- Specified by:
getUncompressedStoreFileSize
in interfaceRegionMetrics
-
getDataLocality
Description copied from interface:RegionMetrics
Returns the data locality of region in the regionserver.- Specified by:
getDataLocality
in interfaceRegionMetrics
-
getLastMajorCompactionTimestamp
Description copied from interface:RegionMetrics
Returns the timestamp of the oldest hfile for any store of this region.- Specified by:
getLastMajorCompactionTimestamp
in interfaceRegionMetrics
-
getDataLocalityForSsd
Description copied from interface:RegionMetrics
Different from dataLocality,this metric's numerator only include the data stored on ssd- Specified by:
getDataLocalityForSsd
in interfaceRegionMetrics
- Returns:
- the data locality for ssd of region in the regionserver
-
getBlocksLocalWeight
Description copied from interface:RegionMetrics
Returns the data at local weight of this region in the regionserver- Specified by:
getBlocksLocalWeight
in interfaceRegionMetrics
-
getBlocksLocalWithSsdWeight
Description copied from interface:RegionMetrics
Different from blocksLocalWeight,this metric's numerator only include the data stored on ssd- Specified by:
getBlocksLocalWithSsdWeight
in interfaceRegionMetrics
- Returns:
- the data at local with ssd weight of this region in the regionserver
-
getBlocksTotalWeight
Description copied from interface:RegionMetrics
Returns the block total weight of this region- Specified by:
getBlocksTotalWeight
in interfaceRegionMetrics
-
getCompactionState
Description copied from interface:RegionMetrics
Returns the compaction state of this region- Specified by:
getCompactionState
in interfaceRegionMetrics
-
getRegionSizeMB
Description copied from interface:RegionMetrics
Returns the total size of the hfiles in the region- Specified by:
getRegionSizeMB
in interfaceRegionMetrics
-
getCurrentRegionCachedRatio
Description copied from interface:RegionMetrics
Returns current prefetch ratio of this region on this server- Specified by:
getCurrentRegionCachedRatio
in interfaceRegionMetrics
-
toString
-