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

Public Member Functions

 PartialBlockForIndex (PartialBlockState state, BlockManager &block_manager, const shared_ptr< BlockHandle > &block_handle)
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 Clear () override
void Merge (PartialBlock &other, idx_t offset, idx_t other_size) 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.
virtual void AddSegmentToTail (ColumnData &data, ColumnSegment &segment, uint32_t offset_in_block)
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

◆ PartialBlockForIndex()

duckdb::PartialBlockForIndex::PartialBlockForIndex ( PartialBlockState state,
BlockManager & block_manager,
const shared_ptr< BlockHandle > & block_handle )
156576 : PartialBlock(state, block_manager, block_handle) {
156577}
PartialBlockState state
The current state of a partial block.
Definition duckdb.cpp:11360
shared_ptr< BlockHandle > block_handle
The block handle of the underlying block that this partial block writes to.
Definition duckdb.cpp:11366
BlockManager & block_manager
The block manager of the partial block manager.
Definition duckdb.cpp:11364

◆ ~PartialBlockForIndex()

duckdb::PartialBlockForIndex::~PartialBlockForIndex ( )
inlineoverride
11490{};

Member Function Documentation

◆ Flush()

void duckdb::PartialBlockForIndex::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.

156579 {
156580 FlushInternal(free_space_left);
156581 block_handle = block_manager.ConvertToPersistent(context, state.block_id, std::move(block_handle));
156582 Clear();
156583}

◆ Clear()

void duckdb::PartialBlockForIndex::Clear ( )
overridevirtual

Implements duckdb::PartialBlock.

156589 {
156590 block_handle.reset();
156591}

◆ Merge()

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

Implements duckdb::PartialBlock.

156585 {
156586 throw InternalException("no merge for PartialBlockForIndex");
156587}

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