Class MemStoreSize

java.lang.Object
org.apache.hadoop.hbase.regionserver.MemStoreSize

@LimitedPrivate("Coprocesssor") public class MemStoreSize extends Object
Data structure of three longs. Convenient package in which to carry current state of three counters.

Immutable!

See Also:
  • Field Details

    • dataSize

      private final long dataSize
      'dataSize' tracks the Cell's data bytes size alone (Key bytes, value bytes). A cell's data can be in on heap or off heap area depending on the MSLAB and its configuration to be using on heap or off heap LABs
    • heapSize

      private final long heapSize
      'getHeapSize' tracks all Cell's heap size occupancy. This will include Cell POJO heap overhead. When Cells in on heap area, this will include the cells data size as well.
    • offHeapSize

      private final long offHeapSize
      off-heap size: the aggregated size of all data that is allocated off-heap including all key-values that reside off-heap and the metadata that resides off-heap
    • cellsCount

      private final int cellsCount
  • Constructor Details

    • MemStoreSize

      Package private constructor.
    • MemStoreSize

      MemStoreSize(long dataSize, long heapSize, long offHeapSize, int cellsCount)
      Package private constructor.
    • MemStoreSize

      MemStoreSize(MemStoreSize memStoreSize)
      Package private constructor.
  • Method Details