@LimitedPrivate({"HDFS","MapReduce"})
@Evolving
public class DirectBufferPool
extends java.lang.Object
| Constructor | Description |
|---|---|
DirectBufferPool() |
| Modifier and Type | Method | Description |
|---|---|---|
java.nio.ByteBuffer |
getBuffer(int size) |
Allocate a direct buffer of the specified size, in bytes.
|
void |
returnBuffer(java.nio.ByteBuffer buf) |
Return a buffer into the pool.
|
public java.nio.ByteBuffer getBuffer(int size)
size - size.public void returnBuffer(java.nio.ByteBuffer buf)
buf - the buffer to returnCopyright © 2008–2025 Apache Software Foundation. All rights reserved.