A set of cudf::column_view's of the same size. More...
#include <cudf/table/table_view.hpp>
Public Types | |
| using | ColumnView = column_view |
| The type of column view the table contains. | |
Public Types inherited from cudf::detail::table_view_base< column_view > | |
| using | iterator = decltype(std::begin(_columns)) |
| Iterator type for the table. | |
| using | const_iterator = decltype(std::cbegin(_columns)) |
| const iterator type for the table | |
Public Member Functions | |
| table_view (std::vector< table_view > const &views) | |
| Construct a table from a vector of table views. 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< size_type > const &column_indices) const |
| Returns a table_view with set of specified columns. More... | |
Public Member Functions inherited from cudf::detail::table_view_base< column_view > | |
| table_view_base (std::vector< column_view > const &cols) | |
| Construct a table from a vector of column views. More... | |
| table_view_base (std::vector< column_view > const &cols, size_type num_rows) | |
| Construct a table from a vector of column views with an explicit row count. More... | |
| table_view_base (table_view_base const &)=default | |
| Copy constructor. | |
| table_view_base (table_view_base &&)=default | |
| Move constructor. | |
| iterator | begin () noexcept |
Returns an iterator to the first view in the table. More... | |
| const_iterator | begin () const noexcept |
Returns an iterator to the first view in the table. More... | |
| iterator | end () noexcept |
Returns an iterator one past the last column view in the table. More... | |
| const_iterator | end () const noexcept |
Returns an iterator one past the last column view in the table. More... | |
| column_view const & | column (size_type column_index) const |
| Returns a reference to the view of the specified column. More... | |
| size_type | num_columns () const noexcept |
| Returns the number of columns. More... | |
| size_type | num_rows () const noexcept |
| Returns the number of rows. More... | |
| size_type | is_empty () const noexcept |
Returns true if num_columns() returns zero, or false otherwise. More... | |
| table_view_base & | operator= (table_view_base const &)=default |
| Copy assignment operator. More... | |
| table_view_base & | operator= (table_view_base &&)=default |
| Move assignment operator. More... | |
A set of cudf::column_view's of the same size.
If the set of columns is empty, the view's row count may still be non-zero.
All public member functions and constructors are inherited from table_view_base<column_view>.
Definition at line 206 of file table_view.hpp.
| cudf::table_view::table_view | ( | std::vector< table_view > const & | views | ) |
Construct a table from a vector of table views.
std::vector is constructible from a std::initializer_list, this constructor also supports the following usage: | cudf::logic_error | If number of rows mismatch |
| views | The vector of table views to construct the table from |
|
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 Definition at line 246 of file table_view.hpp.
| table_view cudf::table_view::select | ( | std::vector< size_type > const & | column_indices | ) | const |
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