一组大小相同的 cudf::column。 更多...
#include <table.hpp>
公共成员函数 | |
table (table &&)=default | |
移动构造函数。 | |
table & | operator= (table const &)=delete |
table & | operator= (table &&)=delete |
table (table const &other, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
通过复制另一个 table 的内容来构造一个新的 table。 更多... | |
table (std::vector< std::unique_ptr< column >> &&columns) | |
移动 `unique_ptr` 到列的 vector 的内容来构造一个新的 table。 更多... | |
table (table_view view, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::device_async_resource_ref mr=cudf::get_current_device_resource_ref()) | |
复制 table_view 的内容来构造一个新的 table 。 更多... | |
size_type | num_columns () const noexcept |
返回 table 中的列数。更多... | |
size_type | num_rows () const noexcept |
返回行数。更多... | |
table_view | view () const |
返回此 table 内容的不可变、非拥有的 table_view 。更多... | |
operator table_view () const | |
转换为此 table 内容的不可变、非拥有的 table_view 的转换运算符。 | |
mutable_table_view | mutable_view () |
返回此 table 内容的可变、非拥有的 mutable_table_view 。更多... | |
operator mutable_table_view () | |
转换为此 table 内容的可变、非拥有的 mutable_table_view 的转换运算符。 | |
std::vector< std::unique_ptr< column > > | release () |
通过返回构成列的 `unique_ptr`s 的 vector 来释放对 `column`s 的所有权。更多... | |
template<typename InputIterator > | |
table_view | select (InputIterator begin, InputIterator end) const |
返回由列索引范围构建的 table_view 。更多... | |
table_view | select (std::vector< cudf::size_type > const &column_indices) const |
返回包含指定列集合的 table_view 。更多... | |
column & | get_column (cudf::size_type column_index) |
返回对指定列的引用。更多... | |
column const & | get_column (cudf::size_type i) const |
返回对指定列的 const 引用。更多... | |
一组大小相同的 cudf::column。
|
explicit |
通过复制另一个 table 的内容来构造一个新的 table。
使用指定的 stream
和 device_memory_resource 进行所有分配和复制。
other | 要复制的 table |
stream | 用于设备内存操作的 CUDA stream。 |
mr | 用于所有设备内存分配的设备内存资源 |
cudf::table::table | ( | std::vector< std::unique_ptr< column >> && | columns | ) |
移动 `unique_ptr` 到列的 vector 的内容来构造一个新的 table。
columns | 要将其内容移动到新 table 中的 `unique_ptr` 到列的 vector。 |
cudf::table::table | ( | table_view | view, |
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::device_async_resource_ref | mr = cudf::get_current_device_resource_ref() |
||
) |
复制 table_view
的内容来构造一个新的 table
。
view | 要复制其内容以创建新 table 的 view |
stream | 用于设备内存操作的 CUDA stream。 |
mr | 用于为新列分配设备内存的设备内存资源 |
|
inline |
|
inline |
mutable_table_view cudf::table::mutable_view | ( | ) |
返回此 table
内容的可变、非拥有的 mutable_table_view
。
table
内容的可变、非拥有的 mutable_table_view
|
inlinenoexcept |
std::vector<std::unique_ptr<column> > cudf::table::release | ( | ) |
通过返回构成列的 `unique_ptr`s 的 vector 来释放对 `column`s 的所有权。
在 release()
后,num_columns()
== 0 且 num_rows()
== 0
|
inline |
返回由列索引范围构建的 table_view
。更多...
std::out_of_range | 如果任何索引超出 [0, num_columns()) 范围 |
begin | 范围的起始 |
end | 范围的结束 |
table_view
|
inline |
返回包含指定列集合的 table_view
。更多...
std::out_of_range | 如果 `column_indices` 中的任何元素超出 [0, num_columns()) 范围 |
column_indices | table 中的列索引 |
table_view
table_view cudf::table::view | ( | ) | const |
返回此 table
内容的不可变、非拥有的 table_view
。
table
内容的不可变、非拥有的 table_view