public abstract class MemtableAllocator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
MemtableAllocator.DataReclaimer |
static class |
MemtableAllocator.SubAllocator
Mark the BB as unused, permitting it to be reclaimed
|
Modifier and Type | Field and Description |
---|---|
static MemtableAllocator.DataReclaimer |
NO_OP |
Modifier and Type | Method and Description |
---|---|
abstract Cell |
clone(Cell cell,
CFMetaData cfm,
OpOrder.Group writeOp) |
abstract CounterCell |
clone(CounterCell cell,
CFMetaData cfm,
OpOrder.Group writeOp) |
abstract DecoratedKey |
clone(DecoratedKey key,
OpOrder.Group opGroup) |
abstract DeletedCell |
clone(DeletedCell cell,
CFMetaData cfm,
OpOrder.Group writeOp) |
abstract ExpiringCell |
clone(ExpiringCell cell,
CFMetaData cfm,
OpOrder.Group writeOp) |
boolean |
isLive() |
MemtableAllocator.SubAllocator |
offHeap() |
MemtableAllocator.SubAllocator |
onHeap() |
abstract MemtableAllocator.DataReclaimer |
reclaimer() |
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
|
public static final MemtableAllocator.DataReclaimer NO_OP
public abstract Cell clone(Cell cell, CFMetaData cfm, OpOrder.Group writeOp)
public abstract CounterCell clone(CounterCell cell, CFMetaData cfm, OpOrder.Group writeOp)
public abstract DeletedCell clone(DeletedCell cell, CFMetaData cfm, OpOrder.Group writeOp)
public abstract ExpiringCell clone(ExpiringCell cell, CFMetaData cfm, OpOrder.Group writeOp)
public abstract DecoratedKey clone(DecoratedKey key, OpOrder.Group opGroup)
public abstract MemtableAllocator.DataReclaimer reclaimer()
public MemtableAllocator.SubAllocator onHeap()
public MemtableAllocator.SubAllocator offHeap()
public void setDiscarding()
public void setDiscarded()
public boolean isLive()
Copyright © 2014 The Apache Software Foundation