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

一组大小相同的 cudf::column更多...

#include <table.hpp>

公共成员函数

 table (table &&)=default
 移动构造函数。
 
tableoperator= (table const &)=delete
 
tableoperator= (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。更多...
 
columnget_column (cudf::size_type column_index)
 返回对指定列的引用。更多...
 
column const & get_column (cudf::size_type i) const
 返回对指定列的 const 引用。更多...
 

详细描述

一组大小相同的 cudf::column

定义于文件 table.hpp 的第 40 行。

构造函数和析构函数文档

◆ table() [1/3]

cudf::table::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() 
)
explicit

通过复制另一个 table 的内容来构造一个新的 table。

使用指定的 stream 和 device_memory_resource 进行所有分配和复制。

参数
other要复制的 table
stream用于设备内存操作的 CUDA stream。
mr用于所有设备内存分配的设备内存资源

◆ table() [2/3]

cudf::table::table ( std::vector< std::unique_ptr< column >> &&  columns)

移动 `unique_ptr` 到列的 vector 的内容来构造一个新的 table。

参数
columns要将其内容移动到新 table 中的 `unique_ptr` 到列的 vector。

◆ table() [3/3]

复制 table_view 的内容来构造一个新的 table

参数
view要复制其内容以创建新 table 的 view
stream用于设备内存操作的 CUDA stream。
mr用于为新列分配设备内存的设备内存资源

成员函数文档

◆ get_column() [1/2]

column& cudf::table::get_column ( cudf::size_type  column_index)
inline

返回对指定列的引用。

异常
std::out_of_range如果 i 超出范围 [0, num_columns)
参数
column_index所需列的索引
返回值
对所需列的引用

定义于文件 table.hpp 的第 178 行。

◆ get_column() [2/2]

column const& cudf::table::get_column ( cudf::size_type  i) const
inline

返回对指定列的 const 引用。

异常
std::out_of_range如果 i 超出范围 [0, num_columns)
参数
i所需列的索引
返回值
对所需列的 const 引用

定义于文件 table.hpp 的第 189 行。

◆ mutable_view()

mutable_table_view cudf::table::mutable_view ( )

返回此 table 内容的可变、非拥有的 mutable_table_view

返回值
table 内容的可变、非拥有的 mutable_table_view

◆ num_columns()

size_type cudf::table::num_columns ( ) const
inlinenoexcept

返回 table 中的列数。

返回值
table 中的列数

定义于文件 table.hpp 的第 86 行。

◆ num_rows()

size_type cudf::table::num_rows ( ) const
inlinenoexcept

返回行数。

返回值
行数

定义于文件 table.hpp 的第 93 行。

◆ release()

std::vector<std::unique_ptr<column> > cudf::table::release ( )

通过返回构成列的 `unique_ptr`s 的 vector 来释放对 `column`s 的所有权。

release() 后,num_columns() == 0 且 num_rows() == 0

返回值
构成列的 `unique_ptr`s 的 vector

◆ select() [1/2]

template<typename InputIterator >
table_view cudf::table::select ( InputIterator  begin,
InputIterator  end 
) const
inline

返回由列索引范围构建的 table_view。更多...

异常
std::out_of_range如果任何索引超出 [0, num_columns()) 范围
参数
begin范围的起始
end范围的结束
返回值
由原始 table 中由 `column_indices` 的元素指定的列组成的 table_view

定义于文件 table.hpp 的第 146 行。

◆ select() [2/2]

table_view cudf::table::select ( std::vector< cudf::size_type > const &  column_indices) const
inline

返回包含指定列集合的 table_view。更多...

异常
std::out_of_range如果 `column_indices` 中的任何元素超出 [0, num_columns()) 范围
参数
column_indicestable 中的列索引
返回值
由原始 table 中由 `column_indices` 的元素指定的列组成的 table_view

定义于文件 table.hpp 的第 164 行。

◆ view()

table_view cudf::table::view ( ) const

返回此 table 内容的不可变、非拥有的 table_view

返回值
table 内容的不可变、非拥有的 table_view

此类的文档由以下文件生成