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::TableDataWriter Class Referenceabstract

The table data writer is responsible for writing the data of a table to storage. More...

Inheritance diagram for duckdb::TableDataWriter:
Collaboration diagram for duckdb::TableDataWriter:

Public Member Functions

 TableDataWriter (TableCatalogEntry &table, QueryContext context)
void WriteTableData (Serializer &metadata_serializer)
virtual void WriteUnchangedTable (MetaBlockPointer pointer, const vector< MetaBlockPointer > &metadata_pointers, idx_t total_rows)=0
virtual void FinalizeTable (const TableStatistics &global_stats, DataTableInfo &info, RowGroupCollection &collection, Serializer &serializer)=0
virtual unique_ptr< RowGroupWriter > GetRowGroupWriter (RowGroup &row_group)=0
virtual void AddRowGroup (RowGroupPointer &&row_group_pointer, unique_ptr< RowGroupWriter > writer)
virtual CheckpointOptions GetCheckpointOptions () const =0
virtual void FlushPartialBlocks ()=0
virtual MetadataManager & GetMetadataManager ()=0
optional_idx GetRowGroupCount ()
void SetRowGroupCount (optional_idx row_group_count_p)
bool GetRebuildIndexes () const
void SetRebuildIndexes ()
DatabaseInstance & GetDatabase ()
unique_ptr< TaskExecutor > CreateTaskExecutor ()

Protected Attributes

DuckTableEntry & table
optional_ptr< ClientContext > context
vector< RowGroupPointer > row_group_pointers
 Pointers to the start of each row group.
optional_idx row_group_count
bool rebuild_indexes = false

Detailed Description

The table data writer is responsible for writing the data of a table to storage.

This is meant to encapsulate and abstract:

  • Storage/encoding of table metadata (block pointers)
  • Mapping management of data block locations Abstraction will support, for example: tiering, versioning, or splitting into multiple block managers.

Constructor & Destructor Documentation

◆ TableDataWriter()

duckdb::TableDataWriter::TableDataWriter ( TableCatalogEntry & table,
QueryContext context )
explicit
389278 : table(table_p.Cast<DuckTableEntry>()), context(context.GetClientContext()) {
389279 D_ASSERT(table_p.IsDuckTable());
389280}

◆ ~TableDataWriter()

duckdb::TableDataWriter::~TableDataWriter ( )
virtual
389282 {
389283}

Member Function Documentation

◆ WriteTableData()

void duckdb::TableDataWriter::WriteTableData ( Serializer & metadata_serializer)
389285 {
389286 // start scanning the table and append the data to the uncompressed segments
389287 table.GetStorage().Checkpoint(*this, metadata_serializer);
389288}

◆ AddRowGroup()

void duckdb::TableDataWriter::AddRowGroup ( RowGroupPointer && row_group_pointer,
unique_ptr< RowGroupWriter > writer )
virtual
389290 {
389291 row_group_pointers.push_back(std::move(row_group_pointer));
389292}
vector< RowGroupPointer > row_group_pointers
Pointers to the start of each row group.
Definition duckdb.cpp:389116

◆ GetRowGroupCount()

optional_idx duckdb::TableDataWriter::GetRowGroupCount ( )
inline
389096 {
389097 return row_group_count;
389098 }

◆ SetRowGroupCount()

void duckdb::TableDataWriter::SetRowGroupCount ( optional_idx row_group_count_p)
inline
389099 {
389100 row_group_count = row_group_count_p;
389101 }

◆ GetRebuildIndexes()

bool duckdb::TableDataWriter::GetRebuildIndexes ( ) const
inline
389102 {
389103 return rebuild_indexes;
389104 }

◆ SetRebuildIndexes()

void duckdb::TableDataWriter::SetRebuildIndexes ( )
inline
389105 {
389106 rebuild_indexes = true;
389107 }

◆ GetDatabase()

DatabaseInstance & duckdb::TableDataWriter::GetDatabase ( )
389294 {
389295 return table.ParentCatalog().GetDatabase();
389296}

◆ CreateTaskExecutor()

unique_ptr< TaskExecutor > duckdb::TableDataWriter::CreateTaskExecutor ( )
389298 {
389299 if (context) {
389300 return make_uniq<TaskExecutor>(*context);
389301 }
389302 return make_uniq<TaskExecutor>(TaskScheduler::GetScheduler(GetDatabase()));
389303}

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