Class MemtableAllocator
- java.lang.Object
-
- org.apache.cassandra.utils.memory.MemtableAllocator
-
- Direct Known Subclasses:
MemtableBufferAllocator
,NativeAllocator
public abstract class MemtableAllocator extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MemtableAllocator.SubAllocator
Mark the BB as unused, permitting it to be reclaimed
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Cloner
cloner(OpOrder.Group opGroup)
abstract EnsureOnHeap
ensureOnHeap()
boolean
isLive()
MemtableAllocator.SubAllocator
offHeap()
MemtableAllocator.SubAllocator
onHeap()
void
setDiscarded()
Indicate the memory and resources owned by this allocator are no longer referenced, and can be reclaimed/reused.void
setDiscarding()
Mark this allocator reclaiming; this will permit any outstanding allocations to temporarily overshoot the maximum memory limit so that flushing can begin immediately
-
-
-
Method Detail
-
ensureOnHeap
public abstract EnsureOnHeap ensureOnHeap()
-
cloner
public abstract Cloner cloner(OpOrder.Group opGroup)
-
onHeap
public MemtableAllocator.SubAllocator onHeap()
-
offHeap
public MemtableAllocator.SubAllocator offHeap()
-
setDiscarding
public void setDiscarding()
Mark this allocator reclaiming; this will permit any outstanding allocations to temporarily overshoot the maximum memory limit so that flushing can begin immediately
-
setDiscarded
public void setDiscarded()
Indicate the memory and resources owned by this allocator are no longer referenced, and can be reclaimed/reused.
-
isLive
public boolean isLive()
-
-