Class AbstractAllocator
- java.lang.Object
-
- org.apache.cassandra.utils.memory.AbstractAllocator
-
- Direct Known Subclasses:
ContextAllocator
,HeapAllocator
public abstract class AbstractAllocator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractAllocator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.nio.ByteBuffer
allocate(int size)
java.nio.ByteBuffer
clone(byte[] bytes)
Allocate a slice of the given length.java.nio.ByteBuffer
clone(java.nio.ByteBuffer buffer)
Allocate a slice of the given length.<V> java.nio.ByteBuffer
clone(V value, ValueAccessor<V> accessor)
Row.Builder
cloningBTreeRowBuilder()
-
-
-
Method Detail
-
clone
public java.nio.ByteBuffer clone(java.nio.ByteBuffer buffer)
Allocate a slice of the given length.
-
clone
public java.nio.ByteBuffer clone(byte[] bytes)
Allocate a slice of the given length.
-
clone
public <V> java.nio.ByteBuffer clone(V value, ValueAccessor<V> accessor)
-
allocate
public abstract java.nio.ByteBuffer allocate(int size)
-
cloningBTreeRowBuilder
public Row.Builder cloningBTreeRowBuilder()
-
-