public class NativeAllocator extends MemtableAllocator
MemtableAllocator.DataReclaimer, MemtableAllocator.SubAllocator
NO_OP
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) |
MemtableAllocator.DataReclaimer |
reclaimer() |
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, setDiscarding
protected NativeAllocator(NativePool pool)
public Row.Builder rowBuilder(OpOrder.Group opGroup)
rowBuilder
in class MemtableAllocator
public DecoratedKey clone(DecoratedKey key, OpOrder.Group writeOp)
clone
in class MemtableAllocator
public MemtableAllocator.DataReclaimer reclaimer()
reclaimer
in class MemtableAllocator
public long allocate(int size, OpOrder.Group opGroup)
public void setDiscarded()
MemtableAllocator
setDiscarded
in class MemtableAllocator
Copyright © 2015 The Apache Software Foundation