Class MessageMeta

class MessageMeta

Container for class holding a data table, in practice a cudf DataFrame, with the ability to return both Python and C++ representations of the table.

Public Functions

pybind11::object get_py_table() const

Get the py table object.

Returns

pybind11::object

size_t count() const

Get messages count.

Returns

size_t

TableInfo get_info() const

Get the info object.

Returns

TableInfo

Public Static Functions

static std::shared_ptr<MessageMeta> create_from_python(pybind11::object &&data_table)

Create MessageMeta cpp object from a python object.

Parameters

data_table

Returns

std::shared_ptr<MessageMeta>

static std::shared_ptr<MessageMeta> create_from_cpp(cudf::io::table_with_metadata &&data_table, int index_col_count = 0)

Create MessageMeta cpp object from a cpp object, used internally by create_from_cpp

Parameters
  • data_table

  • index_col_count

Returns

std::shared_ptr<MessageMeta>

© Copyright 2023, NVIDIA. Last updated on Feb 3, 2023.