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 SummaryFieldsModifier and TypeFieldDescriptionprivate static final longprivate static final org.slf4j.Loggerprivate final AtomicLong
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
heapSizeDescription copied from interface:HeapSizeReturn the approximate 'exclusive deep size' of implementing object. Includes count of payload and hosting object sizings.
- 
setSizeDescription copied from interface:RegionSizeUpdates the size of the Region.- Specified by:
- setSizein interface- RegionSize
- Parameters:
- newSize- the new size of the Region
- Returns:
- this
 
- 
incrementSizeDescription copied from interface:RegionSizeAtomically adds the provideddeltato the region size.- Specified by:
- incrementSizein interface- RegionSize
- Parameters:
- delta- The change in size in bytes of the region.
- Returns:
- this
 
- 
getSizeDescription copied from interface:RegionSizeReturns the size of the region.- Specified by:
- getSizein interface- RegionSize
- Returns:
- The size in bytes.
 
 
-