A set of cudf::column's of the same size.
More...
#include <table.hpp>
A set of cudf::column's of the same size.
Definition at line 40 of file table.hpp.
◆ table() [1/3]
Construct a new table by copying the contents of another table.
Uses the specified stream
and device_memory_resource for all allocations and copies.
- Parameters
-
other | The table to copy |
stream | CUDA stream used for device memory operations. |
mr | Device memory resource to use for all device memory allocations |
◆ table() [2/3]
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.
- Parameters
-
columns | The vector of unique_ptr s to columns whose contents will be moved into the new table. |
◆ table() [3/3]
Copy the contents of a table_view
to construct a new table
.
- Parameters
-
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 |
◆ get_column() [1/2]
Returns a reference to the specified column.
- Exceptions
-
std::out_of_range | If i is out of the range [0, num_columns) |
- Parameters
-
column_index | Index of the desired column |
- Returns
- A reference to the desired column
Definition at line 178 of file table.hpp.
◆ get_column() [2/2]
Returns a const reference to the specified column.
- Exceptions
-
std::out_of_range | If i is out of the range [0, num_columns) |
- Parameters
-
i | Index of the desired column |
- Returns
- A const reference to the desired column
Definition at line 189 of file table.hpp.
◆ mutable_view()
◆ num_columns()
Returns the number of columns in the table.
- Returns
- The number of columns in the table
Definition at line 86 of file table.hpp.
◆ num_rows()
Returns the number of rows.
- Returns
- The number of rows
Definition at line 93 of file table.hpp.
◆ release()
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
- Returns
- A vector of
unique_ptr
s to the constituent columns
◆ select() [1/2]
template<typename InputIterator >
table_view cudf::table::select |
( |
InputIterator |
begin, |
|
|
InputIterator |
end |
|
) |
| const |
|
inline |
Returns a table_view built from a range of column indices.
- Exceptions
-
- Parameters
-
begin | Beginning of the range |
end | Ending of the range |
- Returns
- A table_view consisting of columns from the original table specified by the elements of
column_indices
Definition at line 146 of file table.hpp.
◆ select() [2/2]
Returns a table_view with set of specified columns.
- Exceptions
-
std::out_of_range | If any element in column_indices is outside [0, num_columns()) |
- Parameters
-
column_indices | Indices of columns in the table |
- Returns
- A table_view consisting of columns from the original table specified by the elements of
column_indices
Definition at line 164 of file table.hpp.
◆ view()
Returns an immutable, non-owning table_view
of the contents of this table
.
- Returns
- An immutable, non-owning
table_view
of the contents of this table
The documentation for this class was generated from the following file: