@InterfaceAudience.Private public class HeapByteBufAllocator extends org.apache.hbase.thirdparty.io.netty.buffer.AbstractByteBufAllocator
In some cases direct buffers are still required, like IO buffers where the buffer will be used in conjunction with a native method call, so we cannot force all buffer usage on heap. But we can strongly prefer it.
Modifier and Type | Field and Description |
---|---|
static HeapByteBufAllocator |
DEFAULT |
private org.apache.hbase.thirdparty.io.netty.buffer.PooledByteBufAllocator |
delegate |
Constructor and Description |
---|
HeapByteBufAllocator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isDirectBufferPooled() |
protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf |
newDirectBuffer(int initialCapacity,
int maxCapacity) |
protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf |
newHeapBuffer(int initialCapacity,
int maxCapacity) |
buffer, buffer, buffer, calculateNewCapacity, compositeBuffer, compositeBuffer, compositeDirectBuffer, compositeDirectBuffer, compositeHeapBuffer, compositeHeapBuffer, directBuffer, directBuffer, directBuffer, heapBuffer, heapBuffer, heapBuffer, ioBuffer, ioBuffer, ioBuffer, toLeakAwareBuffer, toLeakAwareBuffer, toString
public static final HeapByteBufAllocator DEFAULT
private final org.apache.hbase.thirdparty.io.netty.buffer.PooledByteBufAllocator delegate
public HeapByteBufAllocator()
public boolean isDirectBufferPooled()
protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf newHeapBuffer(int initialCapacity, int maxCapacity)
newHeapBuffer
in class org.apache.hbase.thirdparty.io.netty.buffer.AbstractByteBufAllocator
protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf newDirectBuffer(int initialCapacity, int maxCapacity)
newDirectBuffer
in class org.apache.hbase.thirdparty.io.netty.buffer.AbstractByteBufAllocator
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.