Struct MutableTableInfo

(Latest Version)
struct MutableTableInfo : public morpheus::TableInfoBase

Public Functions

MutableTableInfo(std::shared_ptr<const IDataTable> parent, std::unique_lock<std::shared_mutex> lock, TableInfoData data)

MutableTableInfo(MutableTableInfo &&other) = default

~MutableTableInfo()

MutableTableInfo get_slice(cudf::size_type start, cudf::size_type stop, std::vector<std::string> column_names = {}) &&

Get slice of a data table info based on the start and stop offset address.

Parameters
  • start – : Start offset address (inclusive)

  • stop – : Stop offset address (exclusive)

  • column_names – : Columns of interest

Returns

TableInfo

void insert_columns(const std::vector<std::tuple<std::string, morpheus::DType>> &columns)

TODO(Documentation)

void insert_missing_columns(const std::vector<std::tuple<std::string, morpheus::DType>> &columns)

TODO(Documentation)

pybind11::object checkout_obj()

Allows the python object to be “checked out” which gives exclusive access to the python object during the lifetime of MutableTableInfo. Use this method when it is necessary to make changes to the python object using the python API. The python object must be returned via return_obj before MutableTableInfo goes out of scope.

Returns

pybind11::object

void return_obj(pybind11::object &&obj)

Returns the checked out python object from checkout_obj. Each call to checkout_obj needs a coresponding return_obj call.

Parameters

obj

std::optional<std::string> ensure_sliceable_index()

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}. If has_sliceable_index() == true, this is a no-op.

© Copyright 2023, NVIDIA. Last updated on Apr 11, 2023.