Class SlicedMessageMeta
Defined in File meta.hpp
Base Type
public morpheus::MessageMeta
(Class MessageMeta)
-
class SlicedMessageMeta : public morpheus::MessageMeta
Operates similarly to MessageMeta, except it applies a filter on the columns and rows. Used by Serialization to filter columns without copying the entire DataFrame.
Public Functions
-
virtual TensorIndex count() const override
Get the row count of the underlying DataFrame.
- Returns
TensorIndex
-
virtual TableInfo get_info(const std::string &col_name) const override
Get the info object for a specific column.
- Parameters
col_name – The name of the column to slice
- Returns
TableInfo The table info containing only the column specified
-
virtual TableInfo get_info(const std::vector<std::string> &column_names) const override
Get the info object for a specific set of columns.
- Parameters
column_names – The names of the columns to slice
- Returns
TableInfo The table info containing only the columns specified, in the order specified
-
virtual MutableTableInfo get_mutable_info() const override
TODO(Documentation)
-
virtual std::optional<std::string> ensure_sliceable_index() override
Replaces the index in the underlying dataframe if the existing one is not unique and monotonic. The old index will be preserved in a column named
_index_{old_index.name}
. Ifhas_sliceable_index() == true
, this is a no-op.- Returns
std::string The name of the column with the old index or nullopt if no changes were made.
-
virtual TensorIndex count() const override