22 #include <cuda_runtime.h>
24 namespace cudf::detail {
60 "lists_column_device_view 仅支持列表");
63 "lists_column_device_view 仅支持列表");
设备数据的不可变、非拥有视图,表示为元素列,易于复制且...
column_device_view child(size_type child_index) const noexcept
返回指定的子列。
T element(size_type element_index) const noexcept
返回指定索引处元素的引用。
CUDF_HOST_DEVICE column_device_view slice(size_type offset, size_type size) const noexcept
获取一个新的 column_device_view,它是当前列的一个切片。
const_iterator< T > end() const
返回指向列中最后一个元素之后元素的迭代器。
constexpr CUDF_HOST_DEVICE type_id id() const noexcept
返回类型标识符。
CUDF_HOST_DEVICE data_type type() const noexcept
返回元素类型。
CUDF_HOST_DEVICE size_type size() const noexcept
返回列中的元素数量。
bool is_null(size_type element_index) const noexcept
返回指定元素是否为空。
CUDF_HOST_DEVICE size_type offset() const noexcept
返回第一个元素相对于基础内存分配的索引,即...
CUDF_HOST_DEVICE bool nullable() const noexcept
指示列是否可以包含空元素,即是否已分配位掩码。
给定一个 column_device_view,此类实例为此复合列提供了一个包装器,用于...
column_device_view offsets() const
获取底层列表列的偏移量列。
CUDF_HOST_DEVICE lists_column_device_view(column_device_view const &underlying_)
从 column device view 构造一个新的 lists column device view 对象。
lists_column_device_view(lists_column_device_view &&)=default
移动构造函数。
column_device_view get_sliced_child() const
获取底层列表列的子列,并应用了偏移量和大小。
lists_column_device_view & operator=(lists_column_device_view const &)=default
复制赋值运算符。
lists_column_device_view & operator=(lists_column_device_view &&)=default
移动赋值运算符。
size_type offset_at(size_type idx) const
获取给定行索引处的列表偏移值,同时考虑列偏移量。
lists_column_device_view(lists_column_device_view const &)=default
复制构造函数。
column_device_view child() const
获取底层列表列的子列。
static constexpr size_type child_column_index
子列的索引。
static constexpr size_type offsets_column_index
偏移量列的索引。
#define CUDF_EXPECTS(...)
用于检查 (前置) 条件的宏,当条件不满足时抛出异常。
int32_t size_type
列和表的行索引类型。
cudf::lists_column_view 的类定义。
#define CUDF_HOST_DEVICE
指示函数或方法可在主机和设备上使用。