@InterfaceAudience.Private class NonThreadSafeMemStoreSizing extends Object implements MemStoreSizing
ThreadSafeMemStoreSizing
Modifier and Type | Field and Description |
---|---|
private int |
cellsCount |
private long |
dataSize |
private long |
heapSize |
private long |
offHeapSize |
DUD
Constructor and Description |
---|
NonThreadSafeMemStoreSizing() |
NonThreadSafeMemStoreSizing(long dataSize,
long heapSize,
long offHeapSize,
int cellsCount) |
NonThreadSafeMemStoreSizing(MemStoreSize mss) |
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndSetDataSize(long expected,
long updated) |
int |
getCellsCount() |
long |
getDataSize() |
long |
getHeapSize() |
MemStoreSize |
getMemStoreSize() |
long |
getOffHeapSize() |
long |
incMemStoreSize(long dataSizeDelta,
long heapSizeDelta,
long offHeapSizeDelta,
int cellsCountDelta) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
decMemStoreSize, decMemStoreSize, incMemStoreSize
private long dataSize
private long heapSize
private long offHeapSize
private int cellsCount
NonThreadSafeMemStoreSizing()
NonThreadSafeMemStoreSizing(MemStoreSize mss)
NonThreadSafeMemStoreSizing(long dataSize, long heapSize, long offHeapSize, int cellsCount)
public MemStoreSize getMemStoreSize()
getMemStoreSize
in interface MemStoreSizing
MemStoreSizing.getDataSize()
,
MemStoreSizing.getHeapSize()
, and MemStoreSizing.getOffHeapSize()
, in the one go.public long incMemStoreSize(long dataSizeDelta, long heapSizeDelta, long offHeapSizeDelta, int cellsCountDelta)
incMemStoreSize
in interface MemStoreSizing
public boolean compareAndSetDataSize(long expected, long updated)
compareAndSetDataSize
in interface MemStoreSizing
public long getDataSize()
getDataSize
in interface MemStoreSizing
public long getHeapSize()
getHeapSize
in interface MemStoreSizing
public long getOffHeapSize()
getOffHeapSize
in interface MemStoreSizing
public int getCellsCount()
getCellsCount
in interface MemStoreSizing
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.