Uses of Class
org.apache.arrow.memory.ArrowBuf
-
Packages that use ArrowBuf Package Description org.apache.arrow.memory org.apache.arrow.vector.util -
-
Uses of ArrowBuf in org.apache.arrow.memory
Subclasses of ArrowBuf in org.apache.arrow.memory Modifier and Type Class Description classDatabricksArrowBufA ByteBuffer-backed implementation of ArrowBuf that does not use unsafe memory operations.Methods in org.apache.arrow.memory that return ArrowBuf Modifier and Type Method Description ArrowBufDatabricksBufferAllocator. buffer(long size)ArrowBufDatabricksBufferAllocator. buffer(long size, org.apache.arrow.memory.BufferManager manager)ArrowBufArrowBuf. capacity(long newCapacity)Adjusts the capacity of this buffer.ArrowBufDatabricksArrowBuf. capacity(long newCapacity)ArrowBufArrowBuf. clear()ArrowBufDatabricksArrowBuf. clear()ArrowBufDatabricksBufferAllocator. getEmpty()ArrowBufArrowBuf. readerIndex(long readerIndex)Set the reader index for this ArrowBuf.ArrowBufDatabricksArrowBuf. readerIndex(long readerIndex)ArrowBufArrowBuf. reallocIfNeeded(long size)Returnsthisif size is less thancapacity(), otherwise delegates toBufferManager.replace(ArrowBuf, long)to get a new buffer.ArrowBufDatabricksArrowBuf. reallocIfNeeded(long size)ArrowBufArrowBuf. setOne(int index, int length)Deprecated.usesetOne(long, long)instead.ArrowBufArrowBuf. setOne(long index, long length)Sets all bits to one in the specified range.ArrowBufDatabricksArrowBuf. setOne(int index, int length)Deprecated.ArrowBufDatabricksArrowBuf. setOne(long index, long length)ArrowBufArrowBuf. setZero(long index, long length)Zero-out the bytes in this ArrowBuf starting at the given index for the given length.ArrowBufDatabricksArrowBuf. setZero(long index, long length)ArrowBufArrowBuf. slice()Returns a slice of only the readable bytes in the buffer.ArrowBufArrowBuf. slice(long index, long length)Returns a slice (view) starting atindexwith the givenlength.ArrowBufDatabricksArrowBuf. slice()ArrowBufDatabricksArrowBuf. slice(long index, long length)ArrowBufDatabricksBufferAllocator. wrapForeignAllocation(org.apache.arrow.memory.ForeignAllocation allocation)ArrowBufArrowBuf. writerIndex(long writerIndex)Set the writer index for this ArrowBuf.ArrowBufDatabricksArrowBuf. writerIndex(long writerIndex)Methods in org.apache.arrow.memory with parameters of type ArrowBuf Modifier and Type Method Description voidArrowBuf. getBytes(long index, ArrowBuf dst, long dstIndex, int length)Copy a given length of data from this ArrowBuf starting at a given index into a dst ArrowBuf at dstIndex.voidDatabricksArrowBuf. getBytes(long index, ArrowBuf dst, long dstIndex, int length)voidArrowBuf. setBytes(long index, ArrowBuf src)Copy readableBytes() number of bytes from src ArrowBuf starting from its readerIndex into this ArrowBuf starting at the given index.voidArrowBuf. setBytes(long index, ArrowBuf src, long srcIndex, long length)Copy data from src ArrowBuf starting at index srcIndex into this ArrowBuf at given index.voidDatabricksArrowBuf. setBytes(long index, ArrowBuf src)voidDatabricksArrowBuf. setBytes(long index, ArrowBuf src, long srcIndex, long length) -
Uses of ArrowBuf in org.apache.arrow.vector.util
Methods in org.apache.arrow.vector.util with parameters of type ArrowBuf Modifier and Type Method Description static BigDecimalDecimalUtility. getBigDecimalFromArrowBuf(ArrowBuf bytebuf, int index, int scale, int byteWidth)Read an ArrowType.Decimal at the given value index in the ArrowBuf and convert to a BigDecimal with the given scale.static byte[]DecimalUtility. getByteArrayFromArrowBuf(ArrowBuf bytebuf, int index, int byteWidth)Read an ArrowType.Decimal from the ArrowBuf at the given value index and return it as a byte array.static voidDecimalUtility. writeBigDecimalToArrowBuf(BigDecimal value, ArrowBuf bytebuf, int index, int byteWidth)Write the given BigDecimal to the ArrowBuf at the given value index.static voidDecimalUtility. writeByteArrayToArrowBuf(byte[] bytes, ArrowBuf bytebuf, int index, int byteWidth)Write the given byte array to the ArrowBuf at the given value index.static voidDecimalUtility. writeLongToArrowBuf(long value, ArrowBuf bytebuf, int index, int byteWidth)Write the given long to the ArrowBuf at the given value index.
-