公共成员函数 | 所有成员列表
cudf::test::structs_column_wrapper 类参考

column_wrapper 派生类,用于封装结构体列。更多...

#include <column_wrapper.hpp>

cudf::test::structs_column_wrapper 的继承图
cudf::test::detail::column_wrapper

公共成员函数

 structs_column_wrapper (std::vector< std::unique_ptr< cudf::column >> &&child_columns, std::vector< bool > const &validity={})
 从指定的前置构造子列列表构造结构体列。更多...
 
 structs_column_wrapper (std::initializer_list< std::reference_wrapper< detail::column_wrapper >> child_column_wrappers, std::vector< bool > const &validity={})
 从子列的列包装器列表构造结构体列。更多...
 
template<typename V >
 structs_column_wrapper (std::initializer_list< std::reference_wrapper< detail::column_wrapper >> child_column_wrappers, V validity_iter)
 从子列的列包装器列表构造结构体列。更多...
 
- 公共成员函数继承自 cudf::test::detail::column_wrapper
 operator column_view () const
 column_view 的隐式转换操作符。更多...
 
 operator mutable_column_view ()
 mutable_column_view 的隐式转换操作符。更多...
 
std::unique_ptr< cudf::columnrelease ()
 释放内部 unique_ptr 到被包装的列。更多...
 

其他继承成员

- 保护属性继承自 cudf::test::detail::column_wrapper
std::unique_ptr< cudf::columnwrapped {}
 被包装的列。
 

详细描述

column_wrapper 派生类,用于封装结构体列。

定义位于文件 column_wrapper.hpp1824 行。

构造函数和析构函数文档

◆ structs_column_wrapper() [1/3]

cudf::test::structs_column_wrapper::structs_column_wrapper ( std::vector< std::unique_ptr< cudf::column >> &&  child_columns,
std::vector< bool > const &  validity = {} 
)
inline

从指定的前置构造子列列表构造结构体列。

子列被此处构造的结构体列“接管”。

使用示例

// 以下代码构造一个 struct< int, string > 列。
auto child_int_col = fixed_width_column_wrapper<int32_t>{ 1, 2, 3, 4, 5 }.release();
auto child_string_col = string_column_wrapper {"All", "the", "leaves", "are",
"brown"}.release();
std::vector<std::unique_ptr<column>> child_columns;
child_columns.push_back(std::move(child_int_col));
child_columns.push_back(std::move(child_string_col));
child_cols,
{1,0,1,0,1} // 有效性。
};
auto struct_col {structs_col.release()};
structs_column_wrapper(std::vector< std::unique_ptr< cudf::column >> &&child_columns, std::vector< bool > const &validity={})
从指定的前置构造子列列表构造结构体列。
参数
child_columns前置构造的子列向量
validity表示列有效性值的布尔值向量

定义位于文件 column_wrapper.hpp1853 行。

◆ structs_column_wrapper() [2/3]

cudf::test::structs_column_wrapper::structs_column_wrapper ( std::initializer_list< std::reference_wrapper< detail::column_wrapper >>  child_column_wrappers,
std::vector< bool > const &  validity = {} 
)
inline

从子列的列包装器列表构造结构体列。

使用示例

// 以下代码构造一个 struct< int, string > 列。
fixed_width_column_wrapper<int32_t> child_int_col_wrapper{ 1, 2, 3, 4, 5 };
string_column_wrapper child_string_col_wrapper {"All", "the", "leaves", "are", "brown"};
{child_int_col_wrapper, child_string_col_wrapper}
{1,0,1,0,1} // 有效性。
};
auto struct_col {structs_col.release()};
参数
child_column_wrappers子列包装器列表
validity表示列有效性值的布尔值向量

定义位于文件 column_wrapper.hpp1879 行。

◆ structs_column_wrapper() [3/3]

template<typename V >
cudf::test::structs_column_wrapper::structs_column_wrapper ( std::initializer_list< std::reference_wrapper< detail::column_wrapper >>  child_column_wrappers,
validity_iter 
)
inline

从子列的列包装器列表构造结构体列。

使用示例

// 以下代码构造一个 struct< int, string > 列。
fixed_width_column_wrapper<int32_t> child_int_col_wrapper{ 1, 2, 3, 4, 5 };
string_column_wrapper child_string_col_wrapper {"All", "the", "leaves", "are", "brown"};
{child_int_col_wrapper, child_string_col_wrapper}
cudf::detail::make_counting_transform_iterator(0, [](auto i){ return i%2; }) // 有效性。
};
auto struct_col {structs_col.release()};
参数
child_column_wrappers子列包装器列表
validity_iter返回每行有效性布尔值的迭代器

定义位于文件 column_wrapper.hpp1916 行。


本类的文档由以下文件生成: