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::DefaultGenerator Class Referenceabstract
Inheritance diagram for duckdb::DefaultGenerator:
Collaboration diagram for duckdb::DefaultGenerator:

Public Member Functions

 DefaultGenerator (Catalog &catalog)
 
virtual unique_ptr< CatalogEntryCreateDefaultEntry (ClientContext &context, const string &entry_name)
 Creates a default entry with the specified name, or returns nullptr if no such entry can be generated.
 
virtual unique_ptr< CatalogEntryCreateDefaultEntry (CatalogTransaction transaction, const string &entry_name)
 
virtual vector< string > GetDefaultEntries ()=0
 Get a list of all default entries in the generator.
 
virtual bool LockDuringCreate () const
 

Public Attributes

Catalogcatalog
 
atomic< bool > created_all_entries
 

Constructor & Destructor Documentation

◆ DefaultGenerator()

duckdb::DefaultGenerator::DefaultGenerator ( Catalog catalog)
explicit
24273 : catalog(catalog), created_all_entries(false) {
24274}

◆ ~DefaultGenerator()

duckdb::DefaultGenerator::~DefaultGenerator ( )
virtual
24275 {
24276}

Member Function Documentation

◆ CreateDefaultEntry() [1/2]

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

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

Reimplemented in duckdb::DefaultTypeGenerator, duckdb::DefaultTableFunctionGenerator, duckdb::DefaultCoordinateSystemGenerator, duckdb::DefaultFunctionGenerator, and duckdb::DefaultViewGenerator.

24278 {
24279 throw InternalException("CreateDefaultEntry with ClientContext called but not supported in this generator");
24280}

◆ CreateDefaultEntry() [2/2]

unique_ptr< CatalogEntry > duckdb::DefaultGenerator::CreateDefaultEntry ( CatalogTransaction  transaction,
const string &  entry_name 
)
virtual
24283 {
24284 if (!transaction.context) {
24285 // no context - cannot create default entry
24286 return nullptr;
24287 }
24288 return CreateDefaultEntry(*transaction.context, entry_name);
24289}
virtual unique_ptr< CatalogEntry > CreateDefaultEntry(ClientContext &context, const string &entry_name)
Creates a default entry with the specified name, or returns nullptr if no such entry can be generated...
Definition duckdb.cpp:24278

◆ GetDefaultEntries()

virtual vector< string > duckdb::DefaultGenerator::GetDefaultEntries ( )
pure virtual

◆ LockDuringCreate()

virtual bool duckdb::DefaultGenerator::LockDuringCreate ( ) const
inlinevirtual

Whether or not we should keep the lock while calling CreateDefaultEntry If this is set to false, CreateDefaultEntry might be called multiple times in parallel also for the same entry Otherwise it will be called exactly once per entry

27652 {
27653 return false;
27654 }

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