Package org.apache.hadoop.hbase
Class RegionLoad
java.lang.Object
org.apache.hadoop.hbase.RegionLoad
- All Implemented Interfaces:
RegionMetrics
Deprecated.
Encapsulates per-region load metrics.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RegionMetricsDeprecated.protected org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.RegionLoadDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionRegionLoad(RegionMetrics metrics) Deprecated.RegionLoad(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.RegionLoad regionLoadPB) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionlongDeprecated.Returns the data at local weight of this region in the regionserverlongDeprecated.Different from blocksLocalWeight,this metric's numerator only include the data stored on ssdlongDeprecated.Returns the block total weight of this regionDeprecated.Returns The total size of all Bloom filter blocks, not just loaded into the block cachelongDeprecated.Returns the number of already compacted kvs in current compactionlongDeprecated.Returns the total number of cells in current compactionDeprecated.Returns the compaction state of this regionlongDeprecated.This does not really belong inside RegionLoad but its being done in the name of expediency.longDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetCompletedSequenceId()instead.longDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetCompactedCellCount()instead.floatDeprecated.Returns current prefetch ratio of this region on this serverfloatDeprecated.Returns the data locality of region in the regionserver.floatDeprecated.Different from dataLocality,this metric's numerator only include the data stored on ssdlongDeprecated.Returns the number of filtered read requests made to regionlongDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetFilteredReadRequestCount()instead.longDeprecated.Returns the timestamp of the oldest hfile for any store of this region.longDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetLastMajorCompactionTimestamp()instead.intDeprecated.Returns the max reference count for any store file among all compacted stores files of this regionDeprecated.Returns the memstore sizeintDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetMemStoreSize()instead.byte[]getName()Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionName()instead.longDeprecated.Returns the number of read requests made to regionlongDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetReadRequestCount()instead.byte[]Deprecated.Returns the region nameDeprecated.Returns the total size of the hfiles in the regionlongDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UseRegionMetrics.getRequestCount()instead.intDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreFileRootLevelIndexSize()instead.List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.StoreSequenceId>Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreSequenceId()instead.intDeprecated.Returns the number of storesintDeprecated.Returns the number of storefilesDeprecated.TODO: why we pass the same value to different counters? Currently, the value from getStoreFileIndexSize() is same with getStoreFileRootLevelIndexSize() see HRegionServer#createRegionLoad.intDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreFileRootLevelIndexSize()instead.intDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 ((HBASE-3935)).Deprecated.Returns The current total size of root-level indexes for the regionintDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreFileCount()instead.Deprecated.Returns the total size of the storefilesintDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreFileSize()instead.Deprecated.Returns The total size of all index blocks, not just the root levelintDeprecated.Returns the reference count for the stores of this regionintDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreCount()instead.Deprecated.Returns completed sequence id per store.intDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetUncompressedStoreFileSize()instead.longDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetCompactingCellCount()instead.intDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetBloomFilterSize()instead.intDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreFileUncompressedDataIndexSize()instead.Deprecated.Returns the uncompressed size of the storefileslongDeprecated.Returns the number of write requests made to regionlongDeprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetWriteRequestCount()instead.toString()Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.RegionMetrics
getNameAsString, getRequestCount
-
Field Details
-
regionLoadPB
protected org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.RegionLoad regionLoadPBDeprecated. -
metrics
Deprecated.
-
-
Constructor Details
-
RegionLoad
public RegionLoad(org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.RegionLoad regionLoadPB) Deprecated. -
RegionLoad
RegionLoad(RegionMetrics metrics) Deprecated.
-
-
Method Details
-
getName
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetRegionName()instead.- Returns:
- the region name
-
getRegionName
Deprecated.Description copied from interface:RegionMetricsReturns the region name- Specified by:
getRegionNamein interfaceRegionMetrics
-
getStoreCount
Deprecated.Description copied from interface:RegionMetricsReturns the number of stores- Specified by:
getStoreCountin interfaceRegionMetrics
-
getStoreFileCount
Deprecated.Description copied from interface:RegionMetricsReturns the number of storefiles- Specified by:
getStoreFileCountin interfaceRegionMetrics
-
getStoreFileSize
Deprecated.Description copied from interface:RegionMetricsReturns the total size of the storefiles- Specified by:
getStoreFileSizein interfaceRegionMetrics
-
getMemStoreSize
Deprecated.Description copied from interface:RegionMetricsReturns the memstore size- Specified by:
getMemStoreSizein interfaceRegionMetrics
-
getReadRequestCount
Deprecated.Description copied from interface:RegionMetricsReturns the number of read requests made to region- Specified by:
getReadRequestCountin interfaceRegionMetrics
-
getFilteredReadRequestCount
Deprecated.Description copied from interface:RegionMetricsReturns the number of filtered read requests made to region- Specified by:
getFilteredReadRequestCountin interfaceRegionMetrics
-
getStoreFileIndexSize
Deprecated.Description copied from interface:RegionMetricsTODO: why we pass the same value to different counters? Currently, the value from getStoreFileIndexSize() is same with getStoreFileRootLevelIndexSize() see HRegionServer#createRegionLoad.- Specified by:
getStoreFileIndexSizein interfaceRegionMetrics- Returns:
- The current total size of root-level indexes for the region
-
getWriteRequestCount
Deprecated.Description copied from interface:RegionMetricsReturns the number of write requests made to region- Specified by:
getWriteRequestCountin interfaceRegionMetrics
-
getStoreFileRootLevelIndexSize
Deprecated.Description copied from interface:RegionMetricsReturns The current total size of root-level indexes for the region- Specified by:
getStoreFileRootLevelIndexSizein interfaceRegionMetrics
-
getStoreFileUncompressedDataIndexSize
Deprecated.Description copied from interface:RegionMetricsReturns The total size of all index blocks, not just the root level- Specified by:
getStoreFileUncompressedDataIndexSizein interfaceRegionMetrics
-
getBloomFilterSize
Deprecated.Description copied from interface:RegionMetricsReturns The total size of all Bloom filter blocks, not just loaded into the block cache- Specified by:
getBloomFilterSizein interfaceRegionMetrics
-
getCompactingCellCount
Deprecated.Description copied from interface:RegionMetricsReturns the total number of cells in current compaction- Specified by:
getCompactingCellCountin interfaceRegionMetrics
-
getCompactedCellCount
Deprecated.Description copied from interface:RegionMetricsReturns the number of already compacted kvs in current compaction- Specified by:
getCompactedCellCountin interfaceRegionMetrics
-
getCompletedSequenceId
Deprecated.Description copied from interface:RegionMetricsThis does not really belong inside RegionLoad but its being done in the name of expediency.- Specified by:
getCompletedSequenceIdin interfaceRegionMetrics- Returns:
- the completed sequence Id for the region
-
getStoreSequenceId
Deprecated.Description copied from interface:RegionMetricsReturns completed sequence id per store.- Specified by:
getStoreSequenceIdin interfaceRegionMetrics
-
getUncompressedStoreFileSize
Deprecated.Description copied from interface:RegionMetricsReturns the uncompressed size of the storefiles- Specified by:
getUncompressedStoreFileSizein interfaceRegionMetrics
-
getStores
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreCount()instead.- Returns:
- the number of stores
-
getStorefiles
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreFileCount()instead.- Returns:
- the number of storefiles
-
getStorefileSizeMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreFileSize()instead.- Returns:
- the total size of the storefiles, in MB
-
getMemStoreSizeMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetMemStoreSize()instead.- Returns:
- the memstore size, in MB
-
getStorefileIndexSizeMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 ((HBASE-3935)). UsegetStoreFileRootLevelIndexSize()instead. -
getStorefileIndexSizeKB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreFileRootLevelIndexSize()instead. -
getRequestsCount
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UseRegionMetrics.getRequestCount()instead.- Returns:
- the number of requests made to region
-
getReadRequestsCount
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetReadRequestCount()instead.- Returns:
- the number of read requests made to region
-
getFilteredReadRequestsCount
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetFilteredReadRequestCount()instead.- Returns:
- the number of filtered read requests made to region
-
getWriteRequestsCount
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetWriteRequestCount()instead.- Returns:
- the number of write requests made to region
-
getRootIndexSizeKB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreFileRootLevelIndexSize()instead.- Returns:
- The current total size of root-level indexes for the region, in KB.
-
getTotalStaticIndexSizeKB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreFileUncompressedDataIndexSize()instead.- Returns:
- The total size of all index blocks, not just the root level, in KB.
-
getTotalStaticBloomSizeKB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetBloomFilterSize()instead.- Returns:
- The total size of all Bloom filter blocks, not just loaded into the block cache, in KB.
-
getTotalCompactingKVs
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetCompactingCellCount()instead.- Returns:
- the total number of kvs in current compaction
-
getCurrentCompactedKVs
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetCompactedCellCount()instead.- Returns:
- the number of already compacted kvs in current compaction
-
getCompleteSequenceId
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetCompletedSequenceId()instead.This does not really belong inside RegionLoad but its being done in the name of expediency.- Returns:
- the completed sequence Id for the region
-
getStoreCompleteSequenceId
@Deprecated public List<org.apache.hadoop.hbase.shaded.protobuf.generated.ClusterStatusProtos.StoreSequenceId> getStoreCompleteSequenceId()Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetStoreSequenceId()instead.- Returns:
- completed sequence id per store.
-
getStoreUncompressedSizeMB
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetUncompressedStoreFileSize()instead.- Returns:
- the uncompressed size of the storefiles in MB.
-
getDataLocality
Deprecated.Returns the data locality of region in the regionserver.- Specified by:
getDataLocalityin interfaceRegionMetrics
-
getLastMajorCompactionTimestamp
Deprecated.Description copied from interface:RegionMetricsReturns the timestamp of the oldest hfile for any store of this region.- Specified by:
getLastMajorCompactionTimestampin interfaceRegionMetrics
-
getLastMajorCompactionTs
Deprecated.As of release 2.0.0, this will be removed in HBase 3.0.0 UsegetLastMajorCompactionTimestamp()instead.- Returns:
- the timestamp of the oldest hfile for any store of this region.
-
getStoreRefCount
Deprecated.Returns the reference count for the stores of this region- Specified by:
getStoreRefCountin interfaceRegionMetrics
-
getMaxCompactedStoreFileRefCount
Deprecated.Description copied from interface:RegionMetricsReturns the max reference count for any store file among all compacted stores files of this region- Specified by:
getMaxCompactedStoreFileRefCountin interfaceRegionMetrics
-
getDataLocalityForSsd
Deprecated.Description copied from interface:RegionMetricsDifferent from dataLocality,this metric's numerator only include the data stored on ssd- Specified by:
getDataLocalityForSsdin interfaceRegionMetrics- Returns:
- the data locality for ssd of region in the regionserver
-
getBlocksLocalWeight
Deprecated.Description copied from interface:RegionMetricsReturns the data at local weight of this region in the regionserver- Specified by:
getBlocksLocalWeightin interfaceRegionMetrics
-
getBlocksLocalWithSsdWeight
Deprecated.Description copied from interface:RegionMetricsDifferent from blocksLocalWeight,this metric's numerator only include the data stored on ssd- Specified by:
getBlocksLocalWithSsdWeightin interfaceRegionMetrics- Returns:
- the data at local with ssd weight of this region in the regionserver
-
getBlocksTotalWeight
Deprecated.Description copied from interface:RegionMetricsReturns the block total weight of this region- Specified by:
getBlocksTotalWeightin interfaceRegionMetrics
-
getCompactionState
Deprecated.Description copied from interface:RegionMetricsReturns the compaction state of this region- Specified by:
getCompactionStatein interfaceRegionMetrics
-
getRegionSizeMB
Deprecated.Description copied from interface:RegionMetricsReturns the total size of the hfiles in the region- Specified by:
getRegionSizeMBin interfaceRegionMetrics
-
getCurrentRegionCachedRatio
Deprecated.Description copied from interface:RegionMetricsReturns current prefetch ratio of this region on this server- Specified by:
getCurrentRegionCachedRatioin interfaceRegionMetrics
-
toString
Deprecated.
-
RegionMetricsinstead.