Class HeapCloner
- java.lang.Object
-
- org.apache.cassandra.utils.memory.ByteBufferCloner
-
- org.apache.cassandra.utils.memory.HeapCloner
-
- All Implemented Interfaces:
Cloner
public final class HeapCloner extends ByteBufferCloner
Cloner class that can be use to clone partition elements on heap.
-
-
Field Summary
Fields Modifier and Type Field Description static HeapCloner
instance
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.nio.ByteBuffer
allocate(int size)
Allocate a slice of the given length.
-
-
-
Field Detail
-
instance
public static final HeapCloner instance
-
-
Method Detail
-
allocate
public java.nio.ByteBuffer allocate(int size)
Description copied from class:ByteBufferCloner
Allocate a slice of the given length.- Specified by:
allocate
in classByteBufferCloner
-
-