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