Interface RegionSize

All Superinterfaces:
HeapSize
All Known Implementing Classes:
RegionSizeImpl

@Private public interface RegionSize extends HeapSize
Interface that encapsulates optionally sending a Region's size to the master.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the size of the region.
    incrementSize(long delta)
    Atomically adds the provided delta to the region size.
    setSize(long newSize)
    Updates the size of the Region.

    Methods inherited from interface org.apache.hadoop.hbase.io.HeapSize

    heapSize
  • Method Details

    • setSize

      RegionSize setSize(long newSize)
      Updates the size of the Region.
      Parameters:
      newSize - the new size of the Region
      Returns:
      this
    • incrementSize

      Atomically adds the provided delta to the region size.
      Parameters:
      delta - The change in size in bytes of the region.
      Returns:
      this
    • getSize

      long getSize()
      Returns the size of the region.
      Returns:
      The size in bytes.