libcudf
24.04.00
|
A set of cudf::column's of the same size. More...
#include <table.hpp>
Public Member Functions | |
table (table &&)=default | |
Move constructor. | |
table & | operator= (table const &)=delete |
table & | operator= (table &&)=delete |
table (table const &other, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) | |
Construct a new table by copying the contents of another table. More... | |
table (std::vector< std::unique_ptr< column >> &&columns) | |
Moves the contents from a vector of unique_ptr s to columns to construct a new table. More... | |
table (table_view view, rmm::cuda_stream_view stream=cudf::get_default_stream(), rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) | |
Copy the contents of a table_view to construct a new table . More... | |
size_type | num_columns () const noexcept |
Returns the number of columns in the table. More... | |
size_type | num_rows () const noexcept |
Returns the number of rows. More... | |
table_view | view () const |
Returns an immutable, non-owning table_view of the contents of this table . More... | |
operator table_view () const | |
Conversion operator to an immutable, non-owning table_view of the contents of this table . | |
mutable_table_view | mutable_view () |
Returns a mutable, non-owning mutable_table_view of the contents of this table . More... | |
operator mutable_table_view () | |
Conversion operator to a mutable, non-owning mutable_table_view of the contents of this table . | |
std::vector< std::unique_ptr< column > > | release () |
Releases ownership of the column s by returning a vector of unique_ptr s to the constituent columns. More... | |
template<typename InputIterator > | |
table_view | select (InputIterator begin, InputIterator end) const |
Returns a table_view built from a range of column indices. More... | |
table_view | select (std::vector< cudf::size_type > const &column_indices) const |
Returns a table_view with set of specified columns. More... | |
column & | get_column (cudf::size_type column_index) |
Returns a reference to the specified column. More... | |
column const & | get_column (cudf::size_type i) const |
Returns a const reference to the specified column. More... | |
A set of cudf::column's of the same size.
|
explicit |
Construct a new table by copying the contents of another table.
Uses the specified stream
and device_memory_resource for all allocations and copies.
other | The table to copy |
stream | CUDA stream used for device memory operations. |
mr | Device memory resource to use for all device memory allocations |
cudf::table::table | ( | std::vector< std::unique_ptr< column >> && | columns | ) |
Moves the contents from a vector of unique_ptr
s to columns to construct a new table.
columns | The vector of unique_ptr s to columns whose contents will be moved into the new table. |
cudf::table::table | ( | table_view | view, |
rmm::cuda_stream_view | stream = cudf::get_default_stream() , |
||
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() |
||
) |
Copy the contents of a table_view
to construct a new table
.
view | The view whose contents will be copied to create a new table |
stream | CUDA stream used for device memory operations. |
mr | Device memory resource used for allocating the device memory for the new columns |
|
inline |
|
inline |
mutable_table_view cudf::table::mutable_view | ( | ) |
Returns a mutable, non-owning mutable_table_view
of the contents of this table
.
mutable_table_view
of the contents of this table
|
inlinenoexcept |
|
inlinenoexcept |
std::vector<std::unique_ptr<column> > cudf::table::release | ( | ) |
Releases ownership of the column
s by returning a vector of unique_ptr
s to the constituent columns.
After release()
, num_columns() == 0
and num_rows() == 0
unique_ptr
s to the constituent columns
|
inline |
Returns a table_view built from a range of column indices.
std::out_of_range | If any index is outside [0, num_columns()) |
begin | Beginning of the range |
end | Ending of the range |
column_indices
|
inline |
Returns a table_view with set of specified columns.
std::out_of_range | If any element in column_indices is outside [0, num_columns()) |
column_indices | Indices of columns in the table |
column_indices
table_view cudf::table::view | ( | ) | const |
Returns an immutable, non-owning table_view
of the contents of this table
.
table_view
of the contents of this table