Package org.apache.hadoop.hbase.quotas
Interface RegionSize
- All Superinterfaces:
HeapSize
- All Known Implementing Classes:
RegionSizeImpl
Interface that encapsulates optionally sending a Region's size to the master.
-
Method Summary
Modifier and TypeMethodDescriptionlonggetSize()Returns the size of the region.incrementSize(long delta) Atomically adds the provideddeltato the region size.setSize(long newSize) Updates the size of the Region.
-
Method Details
-
setSize
Updates the size of the Region.- Parameters:
newSize- the new size of the Region- Returns:
this
-
incrementSize
Atomically adds the provideddeltato 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.
-