| Package | Description |
|---|---|
| io.netty.buffer | |
| org.apache.arrow.memory |
Memory Allocation, Account and Management
See the README.md file in this directory for detailed information about Arrow's memory
allocation subsystem.
|
| org.apache.arrow.memory.util | |
| org.apache.arrow.memory.util.hash |
| Modifier and Type | Method and Description |
|---|---|
ArrowBuf |
NettyArrowBuf.arrowBuf() |
ArrowBuf |
ArrowBuf.capacity(int newCapacity)
Adjusts the capacity of this buffer.
|
ArrowBuf |
ArrowBuf.clear()
Deprecated.
|
ArrowBuf |
ArrowBuf.readerIndex(int readerIndex)
Set the reader index for this ArrowBuf.
|
ArrowBuf |
ArrowBuf.reallocIfNeeded(int size)
Returns
this if size is less then capacity(), otherwise
delegates to BufferManager.replace(ArrowBuf, int) to get a new buffer. |
ArrowBuf |
ArrowBuf.setIndex(int readerIndex,
int writerIndex)
Deprecated.
|
ArrowBuf |
ArrowBuf.setZero(int index,
int length)
Zero-out the bytes in this ArrowBuf starting at
the given index for the given length.
|
ArrowBuf |
ArrowBuf.slice()
Returns a slice of only the readable bytes in the buffer.
|
ArrowBuf |
ArrowBuf.slice(int index,
int length)
Returns a slice (view) starting at
index with the given length. |
ArrowBuf |
ArrowBuf.writerIndex(int writerIndex)
Set the writer index for this ArrowBuf.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ArrowBuf.getBytes(int index,
ArrowBuf dst,
int dstIndex,
int length)
Copy a given length of data from this ArrowBuf starting at a given index
into a dst ArrowBuf at dstIndex.
|
void |
ArrowBuf.setBytes(int index,
ArrowBuf src)
Copy readableBytes() number of bytes from src ArrowBuf
starting from its readerIndex into this ArrowBuf starting
at the given index.
|
void |
ArrowBuf.setBytes(int index,
ArrowBuf src,
int srcIndex,
int length)
Copy data from src ArrowBuf starting at index srcIndex into this
ArrowBuf at given index.
|
| Constructor and Description |
|---|
NettyArrowBuf(ArrowBuf arrowBuf,
io.netty.buffer.ByteBufAllocator arrowByteBufAllocator,
int length)
Constructs a new instance.
|
| Modifier and Type | Field and Description |
|---|---|
ArrowBuf |
BufferLedger.TransferResult.buffer |
| Modifier and Type | Method and Description |
|---|---|
ArrowBuf |
BaseAllocator.Reservation.allocateBuffer() |
ArrowBuf |
AllocationReservation.allocateBuffer()
Allocate a buffer whose size is the total of all the add()s made.
|
ArrowBuf |
BufferAllocator.buffer(int size)
Allocate a new or reused buffer of the provided size.
|
ArrowBuf |
BaseAllocator.buffer(int initialRequestSize) |
ArrowBuf |
BufferAllocator.buffer(int size,
BufferManager manager)
Allocate a new or reused buffer of the provided size.
|
ArrowBuf |
BaseAllocator.buffer(int initialRequestSize,
BufferManager manager) |
ArrowBuf |
ReferenceManager.deriveBuffer(ArrowBuf sourceBuffer,
int index,
int length)
Derive a new ArrowBuf from a given source ArrowBuf.
|
ArrowBuf |
BufferLedger.deriveBuffer(ArrowBuf sourceBuffer,
int index,
int length)
Derive a new ArrowBuf from a given source ArrowBuf.
|
ArrowBuf |
BufferAllocator.getEmpty()
Get a reference to the empty buffer associated with this allocator.
|
ArrowBuf |
BaseAllocator.getEmpty() |
ArrowBuf |
BufferManager.getManagedBuffer()
Get a managed buffer of indeterminate size.
|
ArrowBuf |
BufferManager.getManagedBuffer(int size)
Get a managed buffer of at least a certain size.
|
ArrowBuf |
OwnershipTransferResult.getTransferredBuffer() |
ArrowBuf |
OwnershipTransferNOOP.getTransferredBuffer() |
ArrowBuf |
BufferLedger.TransferResult.getTransferredBuffer() |
ArrowBuf |
BufferManager.replace(ArrowBuf old,
int newSize)
Replace an old buffer with a new version at least of the provided size.
|
ArrowBuf |
ReferenceManager.retain(ArrowBuf srcBuffer,
BufferAllocator targetAllocator)
Create a new ArrowBuf that is associated with an alternative allocator for the purposes of
memory ownership and accounting.
|
ArrowBuf |
BufferLedger.retain(ArrowBuf srcBuffer,
BufferAllocator target)
Create a new ArrowBuf that is associated with an alternative allocator for the purposes of
memory ownership and accounting.
|
| Modifier and Type | Method and Description |
|---|---|
ArrowBuf |
ReferenceManager.deriveBuffer(ArrowBuf sourceBuffer,
int index,
int length)
Derive a new ArrowBuf from a given source ArrowBuf.
|
ArrowBuf |
BufferLedger.deriveBuffer(ArrowBuf sourceBuffer,
int index,
int length)
Derive a new ArrowBuf from a given source ArrowBuf.
|
ArrowBuf |
BufferManager.replace(ArrowBuf old,
int newSize)
Replace an old buffer with a new version at least of the provided size.
|
ArrowBuf |
ReferenceManager.retain(ArrowBuf srcBuffer,
BufferAllocator targetAllocator)
Create a new ArrowBuf that is associated with an alternative allocator for the purposes of
memory ownership and accounting.
|
ArrowBuf |
BufferLedger.retain(ArrowBuf srcBuffer,
BufferAllocator target)
Create a new ArrowBuf that is associated with an alternative allocator for the purposes of
memory ownership and accounting.
|
OwnershipTransferResult |
ReferenceManager.transferOwnership(ArrowBuf sourceBuffer,
BufferAllocator targetAllocator)
Transfer the memory accounting ownership of this ArrowBuf to another allocator.
|
BufferLedger.TransferResult |
BufferLedger.transferOwnership(ArrowBuf srcBuffer,
BufferAllocator target)
Transfer the memory accounting ownership of this ArrowBuf to another allocator.
|
| Modifier and Type | Method and Description |
|---|---|
ArrowBuf |
ArrowBufPointer.getBuf()
Gets the underlying buffer, or null if the underlying data is invalid or null.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
ByteFunctionHelpers.compare(ArrowBuf left,
int lStart,
int lEnd,
ArrowBuf right,
int rStart,
int rEnd)
Helper function to compare a set of bytes in two ArrowBufs.
|
static int |
ByteFunctionHelpers.compare(ArrowBuf left,
int lStart,
int lEnd,
byte[] right,
int rStart,
int rEnd)
Helper function to compare a set of bytes in ArrowBuf to a ByteArray.
|
static int |
ByteFunctionHelpers.equal(ArrowBuf left,
int lStart,
int lEnd,
ArrowBuf right,
int rStart,
int rEnd)
Helper function to check for equality of bytes in two ArrowBufs.
|
static int |
ByteFunctionHelpers.hash(ArrowBuf buf,
int start,
int end)
Compute hashCode with the given
ArrowBuf and start/end index. |
void |
ArrowBufPointer.set(ArrowBuf buf,
int offset,
int length)
Sets this pointer.
|
| Constructor and Description |
|---|
ArrowBufPointer(ArrowBuf buf,
int offset,
int length)
Constructs an Arrow buffer pointer.
|
ArrowBufPointer(ArrowBuf buf,
int offset,
int length,
ArrowBufHasher hasher)
Constructs an Arrow buffer pointer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
ArrowBufHasher.hashCode(ArrowBuf buf,
int offset,
int length)
Calculates the hash code for a memory region.
|
int |
MurmurHasher.hashCode(ArrowBuf buf,
int offset,
int length) |
int |
SimpleHasher.hashCode(ArrowBuf buf,
int offset,
int length)
Calculates the hash code for a memory region.
|
static int |
MurmurHasher.hashCode(ArrowBuf buf,
int offset,
int length,
int seed)
Calculates the hash code for a memory region.
|
Copyright © 2019 The Apache Software Foundation. All rights reserved.