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

Public Member Functions

 InMemoryPartialBlock (ColumnData &data, ColumnSegment &segment, PartialBlockState state, BlockManager &block_manager)
void Flush (QueryContext context, const idx_t free_space_left) override
 Flush the block to disk and zero-initialize any free space and uninitialized regions.
void Merge (PartialBlock &other, idx_t offset, idx_t other_size) override
void AddSegmentToTail (ColumnData &data, ColumnSegment &segment, uint32_t offset_in_block) override
void Clear () override
Public Member Functions inherited from duckdb::PartialBlock
 PartialBlock (PartialBlockState state, BlockManager &block_manager, const shared_ptr< BlockHandle > &block_handle)
void AddUninitializedRegion (const idx_t start, const idx_t end)
 Add regions that need zero-initialization to avoid leaking memory.
void FlushInternal (const idx_t free_space_left)
template<class TARGET>
TARGET & Cast ()

Additional Inherited Members

Public Attributes inherited from duckdb::PartialBlock
PartialBlockState state
 The current state of a partial block.
vector< UninitializedRegion > uninitialized_regions
 All uninitialized regions on this block, we need to zero-initialize them when flushing.
BlockManager & block_manager
 The block manager of the partial block manager.
shared_ptr< BlockHandle > block_handle
 The block handle of the underlying block that this partial block writes to.

Constructor & Destructor Documentation

◆ InMemoryPartialBlock()

duckdb::InMemoryPartialBlock::InMemoryPartialBlock ( ColumnData & data,
ColumnSegment & segment,
PartialBlockState state,
BlockManager & block_manager )
432348 : PartialBlock(state, block_manager, segment.block) {
432349 InMemoryPartialBlock::AddSegmentToTail(data, segment, 0);
432350}
PartialBlockState state
The current state of a partial block.
Definition duckdb.cpp:11360
BlockManager & block_manager
The block manager of the partial block manager.
Definition duckdb.cpp:11364

◆ ~InMemoryPartialBlock()

duckdb::InMemoryPartialBlock::~InMemoryPartialBlock ( )
override
432352 {
432353}

Member Function Documentation

◆ Flush()

void duckdb::InMemoryPartialBlock::Flush ( QueryContext context,
const idx_t free_space_left )
overridevirtual

Flush the block to disk and zero-initialize any free space and uninitialized regions.

Implements duckdb::PartialBlock.

432355 {
432356 Clear();
432357}

◆ Merge()

void duckdb::InMemoryPartialBlock::Merge ( PartialBlock & other,
idx_t offset,
idx_t other_size )
overridevirtual

Implements duckdb::PartialBlock.

432359 {
432360 auto &other = other_p.Cast<InMemoryPartialBlock>();
432361 other.Clear();
432362}

◆ AddSegmentToTail()

void duckdb::InMemoryPartialBlock::AddSegmentToTail ( ColumnData & data,
ColumnSegment & segment,
uint32_t offset_in_block )
overridevirtual

Reimplemented from duckdb::PartialBlock.

432364 {
432365 segment.SetBlock(block_handle, offset_in_block);
432366}
shared_ptr< BlockHandle > block_handle
The block handle of the underlying block that this partial block writes to.
Definition duckdb.cpp:11366

◆ Clear()

void duckdb::InMemoryPartialBlock::Clear ( )
overridevirtual

Implements duckdb::PartialBlock.

432368 {
432369 uninitialized_regions.clear();
432370 block_handle.reset();
432371}
vector< UninitializedRegion > uninitialized_regions
All uninitialized regions on this block, we need to zero-initialize them when flushing.
Definition duckdb.cpp:11362

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