@InterfaceAudience.Private public interface MemStoreSizing
Consider a store with 100MB of key-values allocated on-heap and 20MB of metadata allocated on-heap. The counters are <100MB, 120MB, 0>, respectively.
Consider a store with 100MB of key-values allocated off-heap and 20MB of metadata allocated on-heap (e.g, CAM index). The counters are <100MB, 20MB, 100MB>, respectively.
Consider a store with 100MB of key-values from which 95MB are allocated off-heap and 5MB are allocated on-heap (e.g., due to upserts) and 20MB of metadata from which 15MB allocated off-heap (e.g, CCM index) and 5MB allocated on-heap (e.g, CSLM index in active). The counters are <100MB, 10MB, 110MB>, respectively.
LikeTimeRangeTracker
, it has thread-safe and non-thread-safe implementations.Modifier and Type | Field and Description |
---|---|
static MemStoreSizing |
DUD |
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndSetDataSize(long expected,
long updated) |
default long |
decMemStoreSize(long dataSizeDelta,
long heapSizeDelta,
long offHeapSizeDelta,
int cellsCountDelta)
Returns The new dataSize ONLY as a convenience
|
default long |
decMemStoreSize(MemStoreSize delta) |
int |
getCellsCount() |
long |
getDataSize() |
long |
getHeapSize() |
MemStoreSize |
getMemStoreSize() |
long |
getOffHeapSize() |
long |
incMemStoreSize(long dataSizeDelta,
long heapSizeDelta,
long offHeapSizeDelta,
int cellsCountDelta)
Returns The new dataSize ONLY as a convenience
|
default long |
incMemStoreSize(MemStoreSize delta) |
static final MemStoreSizing DUD
long incMemStoreSize(long dataSizeDelta, long heapSizeDelta, long offHeapSizeDelta, int cellsCountDelta)
default long incMemStoreSize(MemStoreSize delta)
default long decMemStoreSize(long dataSizeDelta, long heapSizeDelta, long offHeapSizeDelta, int cellsCountDelta)
default long decMemStoreSize(MemStoreSize delta)
boolean compareAndSetDataSize(long expected, long updated)
long getDataSize()
long getHeapSize()
long getOffHeapSize()
int getCellsCount()
MemStoreSize getMemStoreSize()
getDataSize()
,
getHeapSize()
, and getOffHeapSize()
, in the one go.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.