public class NativeAllocator extends MemtableAllocator
The slab allocation reduces heap fragmentation from small long-lived objects.
MemtableAllocator.DataReclaimer, MemtableAllocator.SubAllocatorNO_OP| Modifier | Constructor and Description |
|---|---|
protected |
NativeAllocator(NativePool pool) |
| Modifier and Type | Method and Description |
|---|---|
long |
allocate(int size,
OpOrder.Group opGroup) |
Cell |
clone(Cell cell,
CFMetaData cfm,
OpOrder.Group writeOp) |
CounterCell |
clone(CounterCell cell,
CFMetaData cfm,
OpOrder.Group writeOp) |
DecoratedKey |
clone(DecoratedKey key,
OpOrder.Group writeOp) |
DeletedCell |
clone(DeletedCell cell,
CFMetaData cfm,
OpOrder.Group writeOp) |
ExpiringCell |
clone(ExpiringCell cell,
CFMetaData cfm,
OpOrder.Group writeOp) |
MemtableAllocator.DataReclaimer |
reclaimer() |
void |
setDiscarded()
Indicate the memory and resources owned by this allocator are no longer referenced,
and can be reclaimed/reused.
|
isLive, offHeap, onHeap, setDiscardingprotected NativeAllocator(NativePool pool)
public Cell clone(Cell cell, CFMetaData cfm, OpOrder.Group writeOp)
clone in class MemtableAllocatorpublic CounterCell clone(CounterCell cell, CFMetaData cfm, OpOrder.Group writeOp)
clone in class MemtableAllocatorpublic DeletedCell clone(DeletedCell cell, CFMetaData cfm, OpOrder.Group writeOp)
clone in class MemtableAllocatorpublic ExpiringCell clone(ExpiringCell cell, CFMetaData cfm, OpOrder.Group writeOp)
clone in class MemtableAllocatorpublic DecoratedKey clone(DecoratedKey key, OpOrder.Group writeOp)
clone in class MemtableAllocatorpublic MemtableAllocator.DataReclaimer reclaimer()
reclaimer in class MemtableAllocatorpublic long allocate(int size,
OpOrder.Group opGroup)
public void setDiscarded()
MemtableAllocatorsetDiscarded in class MemtableAllocatorCopyright © 2018 The Apache Software Foundation