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

Public Member Functions

 BatchInsertLocalState (ClientContext &context, const vector< LogicalType > &types)
void CreateNewCollection (ClientContext &context, DuckTableEntry &table_entry, const vector< LogicalType > &insert_types)
Public Member Functions inherited from duckdb::LocalSinkState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

idx_t current_index = 0
TableAppendState current_append_state
PhysicalIndex collection_index
unique_ptr< OptimisticDataWriter > optimistic_writer
unique_ptr< ConstraintState > constraint_state
Public Attributes inherited from duckdb::LocalSinkState
SourcePartitionInfo partition_info
 Source partition info.

Constructor & Destructor Documentation

◆ BatchInsertLocalState()

duckdb::BatchInsertLocalState::BatchInsertLocalState ( ClientContext & context,
const vector< LogicalType > & types )
inline
193125 : collection_index(DConstants::INVALID_INDEX) {
193126 }
static constexpr const idx_t INVALID_INDEX
The value used to signify an invalid index entry.
Definition duckdb.hpp:1117

Member Function Documentation

◆ CreateNewCollection()

void duckdb::BatchInsertLocalState::CreateNewCollection ( ClientContext & context,
DuckTableEntry & table_entry,
const vector< LogicalType > & insert_types )
inline
193135 {
193136 if (!optimistic_writer) {
193137 optimistic_writer = make_uniq<OptimisticDataWriter>(context, table_entry.GetStorage());
193138 }
193139 auto collection = optimistic_writer->CreateCollection(table_entry.GetStorage(), insert_types);
193140 auto &row_collection = *collection->collection;
193141 row_collection.InitializeEmpty();
193142 row_collection.InitializeAppend(current_append_state);
193143
193144 auto &data_table = table_entry.GetStorage();
193145 collection_index = data_table.CreateOptimisticCollection(context, std::move(collection));
193146 }

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