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

Public Member Functions

shared_ptr< BlockHandle > GetHandle () const
void SetHandle (ManagedResultSet &managed_result_set, shared_ptr< BlockHandle > handle)
uint32_t Capacity ()

Public Attributes

uint32_t size
 How much space is currently used within the block.
uint32_t capacity
 How much space is available in the block.

Private Attributes

shared_ptr< BlockHandle > handle
 The underlying block handle.
weak_ptr< BlockHandle > weak_handle
 Weak pointer to underlying block handle (if ColumnDataCollectionLifetime::DATABASE_INSTANCE).

Member Function Documentation

◆ GetHandle()

shared_ptr< BlockHandle > duckdb::BlockMetaData::GetHandle ( ) const
114371 {
114372 if (handle) {
114373 return handle;
114374 }
114375 auto res = weak_handle.lock();
114376 if (!res) {
114377 throw ConnectionException("Trying to access a query result after the database instance has been closed");
114378 }
114379 return res;
114380}
weak_ptr< BlockHandle > weak_handle
Weak pointer to underlying block handle (if ColumnDataCollectionLifetime::DATABASE_INSTANCE).
Definition duckdb.hpp:46850
shared_ptr< BlockHandle > handle
The underlying block handle.
Definition duckdb.hpp:46848

◆ SetHandle()

void duckdb::BlockMetaData::SetHandle ( ManagedResultSet & managed_result_set,
shared_ptr< BlockHandle > handle )
114382 {
114383 if (managed_result_set.IsValid()) {
114384 managed_result_set.GetHandles().emplace_back(handle_p);
114385 weak_handle = handle_p;
114386 } else {
114387 handle = std::move(handle_p);
114388 }
114389}

◆ Capacity()

uint32_t duckdb::BlockMetaData::Capacity ( )
114391 {
114392 D_ASSERT(size <= capacity);
114393 return capacity - size;
114394}
uint32_t size
How much space is currently used within the block.
Definition duckdb.hpp:46842
uint32_t capacity
How much space is available in the block.
Definition duckdb.hpp:46844

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