Struct MutableTableInfo#
Defined in File table_info.hpp
Inheritance Relationships#
Base Type#
public morpheus::TableInfoBase(Struct TableInfoBase)
Struct Documentation#
-
struct MutableTableInfo : public morpheus::TableInfoBase#
Public Functions
- 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:
- 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)
-
std::unique_ptr<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 viareturn_objbeforeMutableTableInfogoes out of scope.- Returns:
std::unique_ptr<pybind11::object>
-
void return_obj(std::unique_ptr<pybind11::object> &&obj)#
Returns the checked out python object from
checkout_obj. Each call tocheckout_objneeds a corespondingreturn_objcall.- 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}. Ifhas_sliceable_index() == true, this is a no-op.