|
| | FileSystemLogType () |
| | Construct the log type.
|
| | 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 constexpr const char * | NAME = "FileSystem" |
|
static constexpr LogLevel | LEVEL = LogLevel::LOG_TRACE |
|
|
string | name |
|
LogLevel | level |
|
bool | is_structured |
|
LogicalType | type |
◆ 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
◆ GetLogType()
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: