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

Public Member Functions

 DefaultViewGenerator (Catalog &catalog, SchemaCatalogEntry &schema)
unique_ptr< CatalogEntry > CreateDefaultEntry (ClientContext &context, const string &entry_name) override
 Creates a default entry with the specified name, or returns nullptr if no such entry can be generated.
vector< string > GetDefaultEntries () override
 Get a list of all default entries in the generator.
Public Member Functions inherited from duckdb::DefaultGenerator
 DefaultGenerator (Catalog &catalog)
virtual unique_ptr< CatalogEntry > CreateDefaultEntry (CatalogTransaction transaction, const string &entry_name)
virtual bool LockDuringCreate () const

Public Attributes

SchemaCatalogEntry & schema
Public Attributes inherited from duckdb::DefaultGenerator
Catalog & catalog
atomic< bool > created_all_entries

Constructor & Destructor Documentation

◆ DefaultViewGenerator()

duckdb::DefaultViewGenerator::DefaultViewGenerator ( Catalog & catalog,
SchemaCatalogEntry & schema )
25253 : DefaultGenerator(catalog), schema(schema) {
25254}

Member Function Documentation

◆ CreateDefaultEntry()

unique_ptr< CatalogEntry > duckdb::DefaultViewGenerator::CreateDefaultEntry ( ClientContext & context,
const string & entry_name )
overridevirtual

Creates a default entry with the specified name, or returns nullptr if no such entry can be generated.

Reimplemented from duckdb::DefaultGenerator.

25256 {
25257 auto info = GetDefaultView(context, schema.name, entry_name);
25258 if (info) {
25259 return make_uniq_base<CatalogEntry, ViewCatalogEntry>(catalog, schema, *info);
25260 }
25261 return nullptr;
25262}

◆ GetDefaultEntries()

vector< string > duckdb::DefaultViewGenerator::GetDefaultEntries ( )
overridevirtual

Get a list of all default entries in the generator.

Implements duckdb::DefaultGenerator.

25264 {
25265 vector<string> result;
25266 for (idx_t index = 0; internal_views[index].name != nullptr; index++) {
25267 if (internal_views[index].schema == schema.name) {
25268 result.emplace_back(internal_views[index].name);
25269 }
25270 }
25271 return result;
25272}
index
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

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