Class ByteBufferCloner
- java.lang.Object
-
- org.apache.cassandra.utils.memory.ByteBufferCloner
-
- All Implemented Interfaces:
Cloner
- Direct Known Subclasses:
HeapCloner
public abstract class ByteBufferCloner extends java.lang.Object implements Cloner
Cloner class that can be use to clone partition elements using on-heap or off-heap buffers.
-
-
Constructor Summary
Constructors Constructor Description ByteBufferCloner()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.nio.ByteBuffer
allocate(int size)
Allocate a slice of the given length.java.nio.ByteBuffer
clone(byte[] bytes)
java.nio.ByteBuffer
clone(java.nio.ByteBuffer buffer)
Clustering<?>
clone(Clustering<?> clustering)
Clones the specified clustering.DecoratedKey
clone(DecoratedKey key)
Clones the specified key.Cell<?>
clone(Cell<?> cell)
Clones the specified cell.<V> java.nio.ByteBuffer
clone(V value, ValueAccessor<V> accessor)
-
-
-
Method Detail
-
allocate
public abstract java.nio.ByteBuffer allocate(int size)
Allocate a slice of the given length.
-
clone
public DecoratedKey clone(DecoratedKey key)
Description copied from interface:Cloner
Clones the specified key.
-
clone
public Clustering<?> clone(Clustering<?> clustering)
Description copied from interface:Cloner
Clones the specified clustering.
-
clone
public Cell<?> clone(Cell<?> cell)
Description copied from interface:Cloner
Clones the specified cell.
-
clone
public final java.nio.ByteBuffer clone(java.nio.ByteBuffer buffer)
-
clone
public final java.nio.ByteBuffer clone(byte[] bytes)
-
clone
public final <V> java.nio.ByteBuffer clone(V value, ValueAccessor<V> accessor)
-
-