public final class ContextAllocator extends AbstractAllocator implements com.google.common.base.Function<Cell,Cell>
Constructor and Description |
---|
ContextAllocator(OpOrder.Group opGroup,
PoolAllocator allocator,
ColumnFamilyStore cfs) |
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
allocate(int size) |
Cell |
apply(Cell column) |
java.nio.ByteBuffer |
clone(java.nio.ByteBuffer buffer)
Allocate a slice of the given length.
|
float |
ownershipRatio() |
long |
owns() |
long |
reclaiming() |
public ContextAllocator(OpOrder.Group opGroup, PoolAllocator allocator, ColumnFamilyStore cfs)
public java.nio.ByteBuffer clone(java.nio.ByteBuffer buffer)
AbstractAllocator
clone
in class AbstractAllocator
public java.nio.ByteBuffer allocate(int size)
allocate
in class AbstractAllocator
public long owns()
owns
in class AbstractAllocator
public float ownershipRatio()
ownershipRatio
in class AbstractAllocator
public long reclaiming()
reclaiming
in class AbstractAllocator
Copyright © 2014 The Apache Software Foundation