public class NativeAllocator extends MemtableAllocator
The slab allocation reduces heap fragmentation from small long-lived objects.
MemtableAllocator.SubAllocator| Modifier | Constructor and Description |
|---|---|
protected |
NativeAllocator(NativePool pool) |
| Modifier and Type | Method and Description |
|---|---|
long |
allocate(int size,
OpOrder.Group opGroup) |
DecoratedKey |
clone(DecoratedKey key,
OpOrder.Group writeOp) |
EnsureOnHeap |
ensureOnHeap() |
Row.Builder |
rowBuilder(OpOrder.Group opGroup) |
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 Row.Builder rowBuilder(OpOrder.Group opGroup)
rowBuilder in class MemtableAllocatorpublic DecoratedKey clone(DecoratedKey key, OpOrder.Group writeOp)
clone in class MemtableAllocatorpublic EnsureOnHeap ensureOnHeap()
ensureOnHeap in class MemtableAllocatorpublic long allocate(int size,
OpOrder.Group opGroup)
public void setDiscarded()
MemtableAllocatorsetDiscarded in class MemtableAllocatorCopyright © 2018 The Apache Software Foundation