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::FileSystemLogType Class Reference
Inheritance diagram for duckdb::FileSystemLogType:
Collaboration diagram for duckdb::FileSystemLogType:

Public Member Functions

 FileSystemLogType ()
 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 FileHandle &handle, const string &op, int64_t bytes, idx_t pos)
static string ConstructLogMessage (const FileHandle &handle, const string &op)

Static Public Attributes

static constexpr const char * NAME = "FileSystem"
static constexpr LogLevel LEVEL = LogLevel::LOG_TRACE

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ FileSystemLogType()

duckdb::FileSystemLogType::FileSystemLogType ( )

Construct the log type.

260704 : LogType(NAME, LEVEL, GetLogType()) {
260705}
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::FileSystemLogType::GetLogType ( )
static
260717 {
260718 LogicalType result;
260719 child_list_t<LogicalType> child_list = {
260720 {"fs", LogicalType::VARCHAR}, {"path", LogicalType::VARCHAR}, {"op", LogicalType::VARCHAR},
260721 {"bytes", LogicalType::BIGINT}, {"pos", LogicalType::BIGINT},
260722 };
260723 return LogicalType::STRUCT(child_list);
260724}

◆ ConstructLogMessage() [1/2]

string duckdb::FileSystemLogType::ConstructLogMessage ( const FileHandle & handle,
const string & op,
int64_t bytes,
idx_t pos )
static
260708 {
260709 return StringUtil::Format("{\"fs\":\"%s\",\"path\":\"%s\",\"op\":\"%s\",\"bytes\":\"%lld\",\"pos\":\"%llu\"}",
260710 handle.file_system.GetName(), handle.path, op, bytes, pos);
260711}
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002

◆ ConstructLogMessage() [2/2]

string duckdb::FileSystemLogType::ConstructLogMessage ( const FileHandle & handle,
const string & op )
static
260712 {
260713 return StringUtil::Format("{\"fs\":\"%s\",\"path\":\"%s\",\"op\":\"%s\"}", handle.file_system.GetName(),
260714 handle.path, op);
260715}

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