Uses of Class
ai.rapids.cudf.HostMemoryBuffer
Packages that use HostMemoryBuffer
-
Uses of HostMemoryBuffer in ai.rapids.cudf
Fields in ai.rapids.cudf declared as HostMemoryBufferModifier and TypeFieldDescriptionHostColumnVectorCore.OffHeapState.data
HostColumnVectorCore.OffHeapState.offsets
HostColumnVectorCore.OffHeapState.valid
Methods in ai.rapids.cudf that return HostMemoryBufferModifier and TypeMethodDescriptionDefaultHostMemoryAllocator.allocate
(long bytes) DefaultHostMemoryAllocator.allocate
(long bytes, boolean preferPinned) HostMemoryAllocator.allocate
(long bytes) Allocate memory, but be sure to close the returned buffer to avoid memory leaks.HostMemoryAllocator.allocate
(long bytes, boolean preferPinned) Allocate memory, but be sure to close the returned buffer to avoid memory leaks.static HostMemoryBuffer
HostMemoryBuffer.allocate
(long bytes) Allocate memory, but be sure to close the returned buffer to avoid memory leaks.static HostMemoryBuffer
HostMemoryBuffer.allocate
(long bytes, boolean preferPinned) Allocate memory, but be sure to close the returned buffer to avoid memory leaks.static HostMemoryBuffer
PinnedMemoryPool.allocate
(long bytes) Factory method to create a host buffer but preferably pointing to pinned memory.static HostMemoryBuffer
PinnedMemoryPool.allocate
(long bytes, HostMemoryAllocator hostMemoryAllocator) Factory method to create a host buffer but preferably pointing to pinned memory.static HostMemoryBuffer
HostMemoryBuffer.allocateRaw
(long bytes) Allocate host memory bypassing the default allocator.HostColumnVectorCore.getData()
Returns the data buffer for a given host side column vectorJCudfSerialization.HostConcatResult.getHostBuffer()
HostColumnVectorCore.getHostBufferFor
(BufferType type) Get access to the raw host buffer for this column.HostColumnVectorCore.getOffsets()
Returns the offset bufferHostColumnVectorCore.getValidity()
Returns the validity buffer for a given host side column vectorabstract HostMemoryBuffer
DataSource.hostRead
(long offset, long amount) Read data from the source at the given offset.MultiBufferDataSource.hostRead
(long offset, long amount) static HostMemoryBuffer
HostMemoryBuffer.mapFile
(File path, FileChannel.MapMode mode, long offset, long length) Create a host buffer that is memory-mapped to a file.final HostMemoryBuffer
HostMemoryBuffer.slice
(long offset, long len) Slice off a part of the host buffer.final HostMemoryBuffer
HostMemoryBuffer.sliceWithCopy
(long offset, long len) Slice off a part of the host buffer, actually making a copy of the data.static HostMemoryBuffer
PinnedMemoryPool.tryAllocate
(long bytes) Factory method to create a pinned host memory buffer.Methods in ai.rapids.cudf with parameters of type HostMemoryBufferModifier and TypeMethodDescriptionstatic ContiguousTable
JCudfSerialization.concatToContiguousTable
(JCudfSerialization.SerializedTableHeader[] headers, HostMemoryBuffer[] dataBuffers) Concatenate multiple tables in host memory into a contiguous table in device memory.JCudfSerialization.concatToHostBuffer
(JCudfSerialization.SerializedTableHeader[] headers, HostMemoryBuffer[] dataBuffers) JCudfSerialization.concatToHostBuffer
(JCudfSerialization.SerializedTableHeader[] headers, HostMemoryBuffer[] dataBuffers, HostMemoryAllocator hostMemoryAllocator) Concatenate multiple tables in host memory into a single host table buffer.final void
BaseDeviceMemoryBuffer.copyFromHostBuffer
(long destOffset, HostMemoryBuffer src, long srcOffset, long length) Copy a subset of src to this buffer starting at destOffset.final void
BaseDeviceMemoryBuffer.copyFromHostBuffer
(long destOffset, HostMemoryBuffer src, long srcOffset, long length, Cuda.Stream stream) Copy a subset of src to this buffer starting at destOffset using the specified CUDA stream.final void
BaseDeviceMemoryBuffer.copyFromHostBuffer
(HostMemoryBuffer src) Copy everything from src to this buffer starting at the beginning of this buffer.final void
BaseDeviceMemoryBuffer.copyFromHostBuffer
(HostMemoryBuffer src, long srcOffset, long length) Copy a subset of src to this buffer starting at the beginning of this.final void
BaseDeviceMemoryBuffer.copyFromHostBuffer
(HostMemoryBuffer src, Cuda.Stream stream) Copy entire host buffer starting at the beginning of this buffer using a CUDA stream.final void
HostMemoryBuffer.copyFromHostBuffer
(long destOffset, HostMemoryBuffer srcData, long srcOffset, long length) Copy the contents of the given buffer to this bufferfinal void
BaseDeviceMemoryBuffer.copyFromHostBufferAsync
(long destOffset, HostMemoryBuffer src, long srcOffset, long length, Cuda.Stream stream) Copy a subset of src to this buffer starting at destOffset using the specified CUDA stream.final void
BaseDeviceMemoryBuffer.copyFromHostBufferAsync
(HostMemoryBuffer src, Cuda.Stream stream) Copy entire host buffer starting at the beginning of this buffer using a CUDA stream.void
HostBufferConsumer.handleBuffer
(HostMemoryBuffer buffer, long len) Consume a buffer.abstract long
DataSource.hostRead
(long offset, HostMemoryBuffer dest) Read data from the source at the given offset into dest.long
MultiBufferDataSource.hostRead
(long offset, HostMemoryBuffer dest) protected void
DataSource.onHostBufferDone
(HostMemoryBuffer buffer) Called when the buffer returned from hostRead is done.static Table
JCudfSerialization.readAndConcat
(JCudfSerialization.SerializedTableHeader[] headers, HostMemoryBuffer[] dataBuffers) static Table
Table.readAvro
(AvroOptions opts, HostMemoryBuffer buffer, long offset, long len) Read Avro formatted data.static Table
Table.readCSV
(Schema schema, CSVOptions opts, HostMemoryBuffer buffer, long offset, long len) Read CSV formatted data.long
HostBufferProvider.readInto
(HostMemoryBuffer buffer, long len) Place data into the given buffer.static TableWithMeta
Table.readJSON
(JSONOptions opts, HostMemoryBuffer buffer, long offset, long len) Read JSON formatted data and infer the column names and schema.static Table
Table.readJSON
(Schema schema, JSONOptions opts, HostMemoryBuffer buffer, long offset, long len) Read JSON formatted data.static Table
Table.readJSON
(Schema schema, JSONOptions opts, HostMemoryBuffer buffer, long offset, long len, int emptyRowCount) Deprecated.This method is deprecated since emptyRowCount is not used.static Table
Table.readORC
(ORCOptions opts, HostMemoryBuffer buffer, long offset, long len) Read ORC formatted data.static Table
Table.readParquet
(ParquetOptions opts, HostMemoryBuffer... buffers) Read parquet formatted data.static Table
Table.readParquet
(ParquetOptions opts, HostMemoryBuffer buffer, long offset, long len) Read parquet formatted data.JCudfSerialization.readTableFrom
(JCudfSerialization.SerializedTableHeader header, HostMemoryBuffer hostBuffer) static void
JCudfSerialization.readTableIntoBuffer
(InputStream in, JCudfSerialization.SerializedTableHeader header, HostMemoryBuffer buffer) After reading a header for a table read the data portion into a host side buffer.static HostColumnVector[]
JCudfSerialization.unpackHostColumnVectors
(JCudfSerialization.SerializedTableHeader header, HostMemoryBuffer hostBuffer) Deserialize a serialized contiguous table into an array of host columns.static void
JCudfSerialization.writeConcatedStream
(JCudfSerialization.SerializedTableHeader[] headers, HostMemoryBuffer[] dataBuffers, OutputStream out) Take the data from multiple batches stored in the parsed headers and the dataBuffer and write it out to out as if it were a single buffer.Constructors in ai.rapids.cudf with parameters of type HostMemoryBufferModifierConstructorDescriptionHostColumnVector
(DType type, long rows, Optional<Long> nullCount, HostMemoryBuffer hostDataBuffer, HostMemoryBuffer hostValidityBuffer, HostMemoryBuffer offsetBuffer, List<HostColumnVectorCore> nestedHcv) Create a new column vector with data populated on the host.HostColumnVectorCore
(DType type, long rows, Optional<Long> nullCount, HostMemoryBuffer data, HostMemoryBuffer validity, HostMemoryBuffer offsets, List<HostColumnVectorCore> nestedChildren) HostConcatResult
(JCudfSerialization.SerializedTableHeader tableHeader, HostMemoryBuffer tableBuffer) MultiBufferDataSource
(HostMemoryAllocator allocator, HostMemoryBuffer... buffers) Create a new data source backed by multiple buffers.MultiBufferDataSource
(HostMemoryBuffer... buffers) Create a new data source backed by multiple buffers.ORCChunkedReader
(long chunkReadLimit, long passReadLimit, long outputRowSizingGranularity, ORCOptions opts, HostMemoryBuffer buffer, long offset, long len) Construct a chunked ORC reader instance, similar toORCChunkedReader(long, long, ORCOptions, HostMemoryBuffer, long, long)
, with an additional parameter to control the granularity of the output table.ORCChunkedReader
(long chunkReadLimit, long passReadLimit, ORCOptions opts, HostMemoryBuffer buffer, long offset, long len) Construct the reader instance from read limits, output row granularity, and a file already loaded in a memory buffer.ParquetChunkedReader
(long chunkSizeByteLimit, long passReadLimit, ParquetOptions opts, HostMemoryBuffer... buffers) Construct the reader instance from a read limit and data in host memory buffers.ParquetChunkedReader
(long chunkSizeByteLimit, long passReadLimit, ParquetOptions opts, HostMemoryBuffer buffer, long offset, long len) Construct the reader instance from a read limit and a file already read in a memory buffer.ParquetChunkedReader
(long chunkSizeByteLimit, ParquetOptions opts, HostMemoryBuffer buffer, long offset, long len) Construct the reader instance from a read limit and a file already read in a memory buffer.