public class NativeAllocator extends MemtableAllocator
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) |
DecoratedKey |
clone(DecoratedKey key,
OpOrder.Group writeOp) |
MemtableAllocator.DataReclaimer |
reclaimer() |
Row.Builder |
rowBuilder(CFMetaData metadata,
OpOrder.Group opGroup,
boolean isStatic) |
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(CFMetaData metadata, OpOrder.Group opGroup, boolean isStatic)
rowBuilder 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 © 2015 The Apache Software Foundation