Struct TableInfoBase#
Defined in File table_info.hpp
Inheritance Relationships#
Derived Types#
public morpheus::MutableTableInfo
(Struct MutableTableInfo)public morpheus::TableInfo
(Struct TableInfo)
Struct Documentation#
-
struct TableInfoBase#
Subclassed by morpheus::MutableTableInfo, morpheus::TableInfo
Public Functions
-
const cudf::table_view &get_view() const#
Get reference of a cudf table view.
- Returns:
cudf::table_view
-
std::vector<std::string> get_index_names() const#
Get index names of a data table.
- Returns:
std::vector<std::string>
-
std::vector<std::string> get_column_names() const#
Get column names of a data table.
- Returns:
std::vector<std::string>
-
cudf::size_type num_indices() const#
Get the number of indices in a data table.
- Returns:
cudf::size_type
-
cudf::size_type num_columns() const#
Get columns count in a data table.
- Returns:
cudf::size_type
-
cudf::size_type num_rows() const#
Get rows count in a data table.
- Returns:
cudf::size_type
-
const cudf::column_view &get_column(cudf::size_type idx) const#
Returns a reference to the view of the specified column.
- Throws:
std::out_of_range – If
column_index
is out of the range [0, num_columns)- Parameters:
idx – : The index of the desired column
- Returns:
cudf::column_view : A reference to the desired column
- const cudf::column_view &get_column(
- const std::string &column_name
Returns a reference to the view of the specified column.
- Throws:
std::out_of_range – If
column_name
is not one of the column names in the table- Parameters:
column_name – : The name of the desired column
- Returns:
cudf::column_view : A reference to the desired column
-
bool has_sliceable_index() const#
Returns true if the underlying dataframe as a unique index.
- Returns:
bool
-
const std::shared_ptr<const IDataTable> &get_parent() const#
Get the parent data table of this TableInfo.
- Returns:
std::shared_ptr<const IDataTable>
-
const TableInfoData &get_data() const#
Protected Functions
-
TableInfoBase() = default#
- std::shared_ptr<const IDataTable> parent,
- TableInfoData data
-
TableInfoData &get_data()#
-
const cudf::table_view &get_view() const#