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

Public Member Functions

 ResultSetManager (DatabaseInstance &db)
ManagedResultSet Add (ColumnDataAllocator &allocator)
void Remove (ColumnDataAllocator &allocator)

Static Public Member Functions

static ResultSetManager & Get (ClientContext &context)
static ResultSetManager & Get (DatabaseInstance &db)

Private Attributes

mutex lock
weak_ptr< DatabaseInstance > db
reference_map_t< ColumnDataAllocator, unique_ptr< vector< shared_ptr< BlockHandle > > > > open_results

Constructor & Destructor Documentation

◆ ResultSetManager()

duckdb::ResultSetManager::ResultSetManager ( DatabaseInstance & db)
explicit
299684 : db(db_p.shared_from_this()) {
299685}

Member Function Documentation

◆ Get() [1/2]

ResultSetManager & duckdb::ResultSetManager::Get ( ClientContext & context)
static
299687 {
299688 return Get(*context.db);
299689}

◆ Get() [2/2]

ResultSetManager & duckdb::ResultSetManager::Get ( DatabaseInstance & db)
static
299691 {
299692 return db_p.GetResultSetManager();
299693}

◆ Add()

ManagedResultSet duckdb::ResultSetManager::Add ( ColumnDataAllocator & allocator)
299695 {
299696 lock_guard<mutex> guard(lock);
299697 auto &handles = *open_results.emplace(allocator, make_uniq<vector<shared_ptr<BlockHandle>>>()).first->second;
299698 return ManagedResultSet(db, handles);
299699}

◆ Remove()

void duckdb::ResultSetManager::Remove ( ColumnDataAllocator & allocator)
299701 {
299702 lock_guard<mutex> guard(lock);
299703 open_results.erase(allocator);
299704}

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