Interface PinotDataBufferMemoryManager
-
- All Superinterfaces:
AutoCloseable,Closeable
public interface PinotDataBufferMemoryManager extends Closeable
Interface for memory manager that allocates/manages PinotDataBuffer. At the moment, this is far from a memory manager, and is just an allocator.
-
-
Method Summary
Modifier and Type Method Description PinotDataBufferallocate(long size, String allocationContext)Allocates and returns a PinotDataBuffer of specified size with native byte order.longgetTotalAllocatedBytes()Returns total size of memory allocated in bytes.
-
-
-
Method Detail
-
allocate
PinotDataBuffer allocate(long size, String allocationContext)
Allocates and returns a PinotDataBuffer of specified size with native byte order.- Parameters:
size- Size of the data buffer to be allocated.allocationContext- Context for allocation.- Returns:
- Allocated data buffer.
-
getTotalAllocatedBytes
long getTotalAllocatedBytes()
Returns total size of memory allocated in bytes.- Returns:
- Total memory size in bytes.
-
-