Package org.apache.hadoop.hbase.quotas
Class RegionSizeImpl
java.lang.Object
org.apache.hadoop.hbase.quotas.RegionSizeImpl
- All Implemented Interfaces:
HeapSize,RegionSize
An object encapsulating a Region's size and whether it's been reported to the master since the
value last changed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final longprivate static final org.slf4j.Loggerprivate final AtomicLong -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetSize()Returns the size of the region.longheapSize()Return the approximate 'exclusive deep size' of implementing object.incrementSize(long delta) Atomically adds the provideddeltato the region size.setSize(long newSize) Updates the size of the Region.
-
Field Details
-
LOG
-
HEAP_SIZE
-
size
-
-
Constructor Details
-
RegionSizeImpl
-
-
Method Details
-
heapSize
Description copied from interface:HeapSizeReturn the approximate 'exclusive deep size' of implementing object. Includes count of payload and hosting object sizings. -
setSize
Description copied from interface:RegionSizeUpdates the size of the Region.- Specified by:
setSizein interfaceRegionSize- Parameters:
newSize- the new size of the Region- Returns:
this
-
incrementSize
Description copied from interface:RegionSizeAtomically adds the provideddeltato the region size.- Specified by:
incrementSizein interfaceRegionSize- Parameters:
delta- The change in size in bytes of the region.- Returns:
this
-
getSize
Description copied from interface:RegionSizeReturns the size of the region.- Specified by:
getSizein interfaceRegionSize- Returns:
- The size in bytes.
-