@InterfaceAudience.Private public interface RegionSizeStore extends Iterable<Map.Entry<RegionInfo,RegionSize>>, HeapSize
| Modifier and Type | Method and Description | 
|---|---|
void | 
clear()
Removes all entries from the store. 
 | 
RegionSize | 
getRegionSize(RegionInfo regionInfo)
Returns the size for the give region if one exists. 
 | 
void | 
incrementRegionSize(RegionInfo regionInfo,
                   long delta)
Atomically alter the size of a region. 
 | 
boolean | 
isEmpty()
Returns if the store is empty. 
 | 
void | 
put(RegionInfo regionInfo,
   long size)
Atomically sets the given  
size for a region. | 
RegionSize | 
remove(RegionInfo regionInfo)
Removes the mapping for the given key, returning the value if one exists in the store. 
 | 
int | 
size()
Returns the number of entries in the store. 
 | 
forEach, iterator, spliteratorRegionSize getRegionSize(RegionInfo regionInfo)
null is
 returned.regionInfo - The region whose size is being fetched.void put(RegionInfo regionInfo, long size)
size for a region.regionInfo - An identifier for a region.size - The size in bytes of the region.void incrementRegionSize(RegionInfo regionInfo, long delta)
regionInfo - The region to update.delta - The change in size for the region, positive or negative.RegionSize remove(RegionInfo regionInfo)
regionInfo - The key to remove from the storeint size()
boolean isEmpty()
void clear()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.