Skip to content

Commit

Permalink
Add missing overloads for get_info
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Jun 18, 2024
1 parent 96dcd1b commit caccd39
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
4 changes: 4 additions & 0 deletions morpheus/_lib/include/morpheus/messages/meta.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,10 @@ class MORPHEUS_EXPORT SlicedMessageMeta : public MessageMeta

TableInfo get_info() const override;

TableInfo get_info(const std::string& col_name) const override;

TableInfo get_info(const std::vector<std::string>& column_names) const override;

MutableTableInfo get_mutable_info() const override;

std::optional<std::string> ensure_sliceable_index() override;
Expand Down
14 changes: 14 additions & 0 deletions morpheus/_lib/src/messages/meta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,20 @@ TableInfo SlicedMessageMeta::get_info() const
return this->m_data->get_info().get_slice(m_start, m_stop, m_column_names);
}

TableInfo SlicedMessageMeta::get_info(const std::string& col_name) const
{
auto full_info = this->m_data->get_info();

return full_info.get_slice(m_start, m_stop, {col_name});
}

TableInfo SlicedMessageMeta::get_info(const std::vector<std::string>& column_names) const
{
auto full_info = this->m_data->get_info();

return full_info.get_slice(m_start, m_stop, column_names);
}

MutableTableInfo SlicedMessageMeta::get_mutable_info() const
{
return this->m_data->get_mutable_info().get_slice(m_start, m_stop, m_column_names);
Expand Down

0 comments on commit caccd39

Please sign in to comment.