Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
Loading...
Searching...
No Matches
duckdb::CheckpointLogType Class Reference
Inheritance diagram for duckdb::CheckpointLogType:
Collaboration diagram for duckdb::CheckpointLogType:

Public Member Functions

 CheckpointLogType ()
 Construct the log type.
Public Member Functions inherited from duckdb::LogType
 LogType (const string &name_p, const LogLevel &level_p)
 Construct an unstructured type.
 LogType (const string &name_p, const LogLevel &level_p, LogicalType structured_type)
 Construct a structured type.

Static Public Member Functions

static LogicalType GetLogType ()
static string ConstructLogMessage (const AttachedDatabase &db, DataTableInfo &table, idx_t segment_idx, idx_t merge_count, idx_t target_count, idx_t merge_rows, idx_t row_start)
 Vacuum.
static string ConstructLogMessage (const AttachedDatabase &db, DataTableInfo &table, idx_t segment_idx, RowGroup &row_group, idx_t row_group_start)
 Checkpoint.

Static Public Attributes

static constexpr const char * NAME = "Checkpoint"
static constexpr LogLevel LEVEL = LogLevel::LOG_DEBUG

Static Private Member Functions

static string CreateLog (const AttachedDatabase &db, DataTableInfo &table, const char *op, vector< Value > map_keys, vector< Value > map_values)

Additional Inherited Members

Public Attributes inherited from duckdb::LogType
string name
LogLevel level
bool is_structured
LogicalType type

Constructor & Destructor Documentation

◆ CheckpointLogType()

duckdb::CheckpointLogType::CheckpointLogType ( )

Construct the log type.

260856 : LogType(NAME, LEVEL, GetLogType()) {
260857}
LogType(const string &name_p, const LogLevel &level_p)
Construct an unstructured type.
Definition duckdb.hpp:39081
Here is the call graph for this function:

Member Function Documentation

◆ GetLogType()

LogicalType duckdb::CheckpointLogType::GetLogType ( )
static
260859 {
260860 child_list_t<LogicalType> child_list = {
260861 {"database", LogicalType::VARCHAR},
260862 {"schema", LogicalType::VARCHAR},
260863 {"table", LogicalType::VARCHAR},
260864 {"type", LogicalType::VARCHAR},
260865 {"info", LogicalType::MAP(LogicalType::VARCHAR, LogicalType::VARCHAR)},
260866 };
260867 return LogicalType::STRUCT(child_list);
260868}

◆ ConstructLogMessage() [1/2]

string duckdb::CheckpointLogType::ConstructLogMessage ( const AttachedDatabase & db,
DataTableInfo & table,
idx_t segment_idx,
idx_t merge_count,
idx_t target_count,
idx_t merge_rows,
idx_t row_start )
static

Vacuum.

260885 {
260886 vector<Value> map_keys = {"segment_idx", "merge_count", "target_count", "merge_rows", "row_start"};
260887 vector<Value> map_values = {to_string(segment_idx), to_string(merge_count), to_string(target_count),
260888 to_string(merge_rows), to_string(row_start)};
260889 return CreateLog(db, table, "vacuum", std::move(map_keys), std::move(map_values));
260890}
std::string to_string(const T &value)
Definition duckdb.cpp:19425
Here is the call graph for this function:

◆ ConstructLogMessage() [2/2]

string duckdb::CheckpointLogType::ConstructLogMessage ( const AttachedDatabase & db,
DataTableInfo & table,
idx_t segment_idx,
RowGroup & row_group,
idx_t row_group_start )
static

Checkpoint.

260893 {
260894 vector<Value> map_keys = {"segment_idx", "start", "count"};
260895 vector<Value> map_values = {to_string(segment_idx), to_string(row_group_start), to_string(row_group.count.load())};
260896 return CreateLog(db, table, "checkpoint", std::move(map_keys), std::move(map_values));
260897}
Here is the call graph for this function:

◆ CreateLog()

string duckdb::CheckpointLogType::CreateLog ( const AttachedDatabase & db,
DataTableInfo & table,
const char * op,
vector< Value > map_keys,
vector< Value > map_values )
staticprivate
260871 {
260872 child_list_t<Value> child_list = {
260873 {"database", db.name},
260874 {"schema", table.GetSchemaName()},
260875 {"table", table.GetTableName()},
260876 {"type", op_name},
260877 {"info", Value::MAP(LogicalType::VARCHAR, LogicalType::VARCHAR, std::move(map_keys), std::move(map_values))},
260878 };
260879
260880 return Value::STRUCT(std::move(child_list)).ToString();
260881}
DUCKDB_API string ToString() const
Convert this value to a string.
Definition duckdb.cpp:133318
static DUCKDB_API Value MAP(const LogicalType &child_type, vector< Value > values)
Create a map value with the given entries.
Definition duckdb.cpp:132466
static DUCKDB_API Value STRUCT(child_list_t< Value > values)
Create a struct value with given list of entries.
Definition duckdb.cpp:132434
db

The documentation for this class was generated from the following files: