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::VacuumInfo Struct Reference
Inheritance diagram for duckdb::VacuumInfo:
Collaboration diagram for duckdb::VacuumInfo:

Public Member Functions

 VacuumInfo (VacuumOptions options)
unique_ptr< VacuumInfo > Copy ()
string ToString () const
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::ParseInfo
 ParseInfo (ParseInfoType info_type)
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::ParseInfo
static unique_ptr< ParseInfo > Deserialize (Deserializer &deserializer)
static string QualifierToString (const string &catalog, const string &schema, const string &name)
static string TypeToString (CatalogType type)

Public Attributes

const VacuumOptions options
vector< string > columns
bool has_table
unique_ptr< TableRef > ref
Public Attributes inherited from duckdb::ParseInfo
ParseInfoType info_type

Static Public Attributes

static constexpr const ParseInfoType TYPE = ParseInfoType::VACUUM_INFO

Constructor & Destructor Documentation

◆ VacuumInfo()

duckdb::VacuumInfo::VacuumInfo ( VacuumOptions options)
explicit
340359 : ParseInfo(TYPE), options(options), has_table(false) {
340360}

Member Function Documentation

◆ Copy()

unique_ptr< VacuumInfo > duckdb::VacuumInfo::Copy ( )
340362 {
340363 auto result = make_uniq<VacuumInfo>(options);
340364 result->has_table = has_table;
340365 if (has_table) {
340366 result->ref = ref->Copy();
340367 }
340368 result->columns = columns;
340369 return result;
340370}

◆ ToString()

string duckdb::VacuumInfo::ToString ( ) const
340372 {
340373 string result = "";
340374 result += "VACUUM";
340375 if (options.analyze) {
340376 result += " ANALYZE";
340377 }
340378 if (ref) {
340379 result += " " + ref->ToString();
340380 if (!columns.empty()) {
340381 vector<string> names;
340382 for (auto &column : columns) {
340383 names.push_back(KeywordHelper::WriteOptionallyQuoted(column));
340384 }
340385 result += "(" + StringUtil::Join(names, ", ") + ")";
340386 }
340387 }
340388 result += ";";
340389 return result;
340390}
static string WriteOptionallyQuoted(const string &text, char quote='"', bool allow_caps = true, KeywordCategory category = KeywordCategory::KEYWORD_NONE)
Writes a string that is optionally quoted + escaped so it can be used as an identifier.
Definition duckdb.cpp:338034
static DUCKDB_API string Join(const vector< string > &input, const string &separator)
Join multiple strings into one string. Components are concatenated by the given separator.
Definition duckdb.cpp:109497

◆ Serialize()

void duckdb::VacuumInfo::Serialize ( Serializer & serializer) const
overridevirtual

Reimplemented from duckdb::ParseInfo.

418615 {
418616 ParseInfo::Serialize(serializer);
418617 serializer.WriteProperty<VacuumOptions>(200, "options", options);
418618 serializer.WritePropertyWithDefault<bool>(201, "has_table", has_table);
418619 serializer.WritePropertyWithDefault<unique_ptr<TableRef>>(202, "ref", ref);
418620 serializer.WritePropertyWithDefault<vector<string>>(203, "columns", columns);
418621}

◆ Deserialize()

unique_ptr< ParseInfo > duckdb::VacuumInfo::Deserialize ( Deserializer & deserializer)
static
418623 {
418624 auto options = deserializer.ReadProperty<VacuumOptions>(200, "options");
418625 auto result = duckdb::unique_ptr<VacuumInfo>(new VacuumInfo(options));
418626 deserializer.ReadPropertyWithDefault<bool>(201, "has_table", result->has_table);
418627 deserializer.ReadPropertyWithDefault<unique_ptr<TableRef>>(202, "ref", result->ref);
418628 deserializer.ReadPropertyWithDefault<vector<string>>(203, "columns", result->columns);
418629 return std::move(result);
418630}

The documentation for this struct was generated from the following file: