ContiguousTable#
- public final class ContiguousTable implements AutoCloseable#
A table that is backed by a single contiguous device buffer.
This makes transfers of the data much simpler.
Method Summary
Close the contiguous table instance and its underlying resources.
Get the device buffer backing the contiguous table data.
Get the byte buffer containing the host metadata describing the schema and layout of the contiguous table.
Returns the number of rows in the table.
Get the table instance, reconstructing it from the metadata if necessary.
Methods
- public long getRowCount()#
Returns the number of rows in the table.
This accessor avoids manifesting the Table instance if only the row count is needed.
- public DeviceMemoryBuffer getBuffer()#
Get the device buffer backing the contiguous table data.
- public ByteBuffer getMetadataDirectBuffer()#
Get the byte buffer containing the host metadata describing the schema and layout of the contiguous table.
NOTE: This is a direct byte buffer that is backed by the underlying native metadata instance and therefore is only valid to be used while this contiguous table instance is valid. Attempts to cache and access the resulting buffer after this instance has been destroyed will result in undefined behavior including the possibility of segmentation faults or data corruption.
- public void close()#
Close the contiguous table instance and its underlying resources.