Package org.apache.arrow.memory.patch
Class ArrowByteBufAllocator
java.lang.Object
io.netty.buffer.AbstractByteBufAllocator
org.apache.arrow.memory.patch.ArrowByteBufAllocator
- All Implemented Interfaces:
io.netty.buffer.ByteBufAllocator
Deprecated.
This class may be removed in a future release.
An implementation of ByteBufAllocator that wraps a Arrow BufferAllocator. This allows the RPC
layer to be accounted and managed using Arrow's BufferAllocator infrastructure. The only thin
different from a typical BufferAllocator is the signature and the fact that this Allocator
returns ExpandableByteBufs which enable otherwise non-expandable ArrowBufs to be expandable.
-
Field Summary
Fields inherited from interface io.netty.buffer.ByteBufAllocator
DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.netty.buffer.ByteBufbuffer()Deprecated.io.netty.buffer.ByteBufbuffer(int initialCapacity) Deprecated.io.netty.buffer.ByteBufbuffer(int initialCapacity, int maxCapacity) Deprecated.io.netty.buffer.CompositeByteBufDeprecated.io.netty.buffer.CompositeByteBufcompositeBuffer(int maxNumComponents) Deprecated.io.netty.buffer.CompositeByteBufDeprecated.io.netty.buffer.CompositeByteBufcompositeDirectBuffer(int maxNumComponents) Deprecated.io.netty.buffer.CompositeByteBufDeprecated.io.netty.buffer.CompositeByteBufcompositeHeapBuffer(int maxNumComponents) Deprecated.io.netty.buffer.ByteBufDeprecated.io.netty.buffer.ByteBufdirectBuffer(int initialCapacity) Deprecated.io.netty.buffer.ByteBufdirectBuffer(int initialCapacity, int maxCapacity) Deprecated.io.netty.buffer.ByteBufDeprecated.io.netty.buffer.ByteBufheapBuffer(int initialCapacity) Deprecated.io.netty.buffer.ByteBufheapBuffer(int initialCapacity, int maxCapacity) Deprecated.io.netty.buffer.ByteBufioBuffer()Deprecated.io.netty.buffer.ByteBufioBuffer(int initialCapacity) Deprecated.io.netty.buffer.ByteBufioBuffer(int initialCapacity, int maxCapacity) Deprecated.booleanDeprecated.protected io.netty.buffer.ByteBufnewDirectBuffer(int initialCapacity, int maxCapacity) Deprecated.protected io.netty.buffer.ByteBufnewHeapBuffer(int initialCapacity, int maxCapacity) Deprecated.unwrap()Deprecated.Methods inherited from class io.netty.buffer.AbstractByteBufAllocator
calculateNewCapacity, toLeakAwareBuffer, toLeakAwareBuffer, toString
-
Constructor Details
-
ArrowByteBufAllocator
Deprecated.
-
-
Method Details
-
unwrap
Deprecated. -
buffer
public io.netty.buffer.ByteBuf buffer()Deprecated.- Specified by:
bufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
bufferin classio.netty.buffer.AbstractByteBufAllocator
-
buffer
public io.netty.buffer.ByteBuf buffer(int initialCapacity) Deprecated.- Specified by:
bufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
bufferin classio.netty.buffer.AbstractByteBufAllocator
-
buffer
public io.netty.buffer.ByteBuf buffer(int initialCapacity, int maxCapacity) Deprecated.- Specified by:
bufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
bufferin classio.netty.buffer.AbstractByteBufAllocator
-
ioBuffer
public io.netty.buffer.ByteBuf ioBuffer()Deprecated.- Specified by:
ioBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
ioBufferin classio.netty.buffer.AbstractByteBufAllocator
-
ioBuffer
public io.netty.buffer.ByteBuf ioBuffer(int initialCapacity) Deprecated.- Specified by:
ioBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
ioBufferin classio.netty.buffer.AbstractByteBufAllocator
-
ioBuffer
public io.netty.buffer.ByteBuf ioBuffer(int initialCapacity, int maxCapacity) Deprecated.- Specified by:
ioBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
ioBufferin classio.netty.buffer.AbstractByteBufAllocator
-
directBuffer
public io.netty.buffer.ByteBuf directBuffer()Deprecated.- Specified by:
directBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
directBufferin classio.netty.buffer.AbstractByteBufAllocator
-
directBuffer
public io.netty.buffer.ByteBuf directBuffer(int initialCapacity) Deprecated.- Specified by:
directBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
directBufferin classio.netty.buffer.AbstractByteBufAllocator
-
directBuffer
public io.netty.buffer.ByteBuf directBuffer(int initialCapacity, int maxCapacity) Deprecated.- Specified by:
directBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
directBufferin classio.netty.buffer.AbstractByteBufAllocator
-
compositeBuffer
public io.netty.buffer.CompositeByteBuf compositeBuffer()Deprecated.- Specified by:
compositeBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
compositeBufferin classio.netty.buffer.AbstractByteBufAllocator
-
compositeBuffer
public io.netty.buffer.CompositeByteBuf compositeBuffer(int maxNumComponents) Deprecated.- Specified by:
compositeBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
compositeBufferin classio.netty.buffer.AbstractByteBufAllocator
-
compositeDirectBuffer
public io.netty.buffer.CompositeByteBuf compositeDirectBuffer()Deprecated.- Specified by:
compositeDirectBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
compositeDirectBufferin classio.netty.buffer.AbstractByteBufAllocator
-
compositeDirectBuffer
public io.netty.buffer.CompositeByteBuf compositeDirectBuffer(int maxNumComponents) Deprecated.- Specified by:
compositeDirectBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
compositeDirectBufferin classio.netty.buffer.AbstractByteBufAllocator
-
isDirectBufferPooled
public boolean isDirectBufferPooled()Deprecated. -
heapBuffer
public io.netty.buffer.ByteBuf heapBuffer()Deprecated.- Specified by:
heapBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
heapBufferin classio.netty.buffer.AbstractByteBufAllocator
-
heapBuffer
public io.netty.buffer.ByteBuf heapBuffer(int initialCapacity) Deprecated.- Specified by:
heapBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
heapBufferin classio.netty.buffer.AbstractByteBufAllocator
-
heapBuffer
public io.netty.buffer.ByteBuf heapBuffer(int initialCapacity, int maxCapacity) Deprecated.- Specified by:
heapBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
heapBufferin classio.netty.buffer.AbstractByteBufAllocator
-
compositeHeapBuffer
public io.netty.buffer.CompositeByteBuf compositeHeapBuffer()Deprecated.- Specified by:
compositeHeapBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
compositeHeapBufferin classio.netty.buffer.AbstractByteBufAllocator
-
compositeHeapBuffer
public io.netty.buffer.CompositeByteBuf compositeHeapBuffer(int maxNumComponents) Deprecated.- Specified by:
compositeHeapBufferin interfaceio.netty.buffer.ByteBufAllocator- Overrides:
compositeHeapBufferin classio.netty.buffer.AbstractByteBufAllocator
-
newHeapBuffer
protected io.netty.buffer.ByteBuf newHeapBuffer(int initialCapacity, int maxCapacity) Deprecated.- Specified by:
newHeapBufferin classio.netty.buffer.AbstractByteBufAllocator
-
newDirectBuffer
protected io.netty.buffer.ByteBuf newDirectBuffer(int initialCapacity, int maxCapacity) Deprecated.- Specified by:
newDirectBufferin classio.netty.buffer.AbstractByteBufAllocator
-