Interface RegionMetrics

All Known Implementing Classes:
RegionLoad, RegionMetricsBuilder.RegionMetricsImpl

@Public public interface RegionMetrics
Encapsulates per-region load metrics.
  • Method Details

    • getRegionName

      byte[] getRegionName()
      Returns the region name
    • getStoreCount

      Returns the number of stores
    • getStoreFileCount

      Returns the number of storefiles
    • getStoreFileSize

      Returns the total size of the storefiles
    • getMemStoreSize

      Returns the memstore size
    • getReadRequestCount

      Returns the number of read requests made to region
    • getWriteRequestCount

      Returns the number of write requests made to region
    • getRequestCount

      default long getRequestCount()
      Returns the number of write requests and read requests made to region
    • getNameAsString

      Returns the region name as a string
    • 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

      Returns the total number of cells in current compaction
    • getCompactedCellCount

      Returns the number of already compacted kvs in current compaction
    • 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

      Returns completed sequence id per store.
    • getUncompressedStoreFileSize

      Returns the uncompressed size of the storefiles
    • 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

      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

      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

      Returns the data at local weight of this region in the regionserver
    • 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

      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

      Returns current prefetch ratio of this region on this server