public class NettyBufferPool extends Object implements org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
PooledByteBufAllocator
with strict control over the number of
created arenas.Constructor and Description |
---|
NettyBufferPool(int numberOfArenas)
Creates Netty's buffer pool with the specified number of direct arenas.
|
Modifier and Type | Method and Description |
---|---|
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
buffer() |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
buffer(int initialCapacity) |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
buffer(int initialCapacity,
int maxCapacity) |
int |
calculateNewCapacity(int minNewCapacity,
int maxCapacity) |
org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf |
compositeBuffer() |
org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf |
compositeBuffer(int maxNumComponents) |
org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf |
compositeDirectBuffer() |
org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf |
compositeDirectBuffer(int maxNumComponents) |
org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf |
compositeHeapBuffer() |
org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf |
compositeHeapBuffer(int maxNumComponents) |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
directBuffer() |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
directBuffer(int initialCapacity) |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
directBuffer(int initialCapacity,
int maxCapacity) |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
heapBuffer() |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
heapBuffer(int initialCapacity) |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
heapBuffer(int initialCapacity,
int maxCapacity) |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
ioBuffer() |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
ioBuffer(int initialCapacity) |
org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf |
ioBuffer(int initialCapacity,
int maxCapacity) |
boolean |
isDirectBufferPooled() |
public NettyBufferPool(int numberOfArenas)
numberOfArenas
- Number of arenas (recommended: 2 * number of task slots)public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf buffer()
buffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf buffer(int initialCapacity)
buffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf buffer(int initialCapacity, int maxCapacity)
buffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf ioBuffer()
ioBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf ioBuffer(int initialCapacity)
ioBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf ioBuffer(int initialCapacity, int maxCapacity)
ioBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf heapBuffer()
heapBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf heapBuffer(int initialCapacity)
heapBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf heapBuffer(int initialCapacity, int maxCapacity)
heapBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf directBuffer()
directBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf directBuffer(int initialCapacity)
directBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.ByteBuf directBuffer(int initialCapacity, int maxCapacity)
directBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf compositeBuffer()
compositeBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf compositeBuffer(int maxNumComponents)
compositeBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf compositeHeapBuffer()
compositeHeapBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf compositeHeapBuffer(int maxNumComponents)
compositeHeapBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf compositeDirectBuffer()
compositeDirectBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public org.apache.paimon.shade.netty4.io.netty.buffer.CompositeByteBuf compositeDirectBuffer(int maxNumComponents)
compositeDirectBuffer
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public boolean isDirectBufferPooled()
isDirectBufferPooled
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
public int calculateNewCapacity(int minNewCapacity, int maxCapacity)
calculateNewCapacity
in interface org.apache.paimon.shade.netty4.io.netty.buffer.ByteBufAllocator
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.