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

Public Member Functions

 InsertLocalState (ClientContext &context, const vector< LogicalType > &types, const vector< unique_ptr< BoundConstraint > > &bound_constraints)
ConstraintState & GetConstraintState (DataTable &table, TableCatalogEntry &table_ref)
TableDeleteState & GetDeleteState (DataTable &table, TableCatalogEntry &table_ref, ClientContext &context)
Public Member Functions inherited from duckdb::LocalSinkState
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

DataChunk update_chunk
 The chunk containing the tuples that become an update (if DO UPDATE).
TableAppendState local_append_state
PhysicalIndex collection_index
 An index to the optimistic row group collection vector of the local table storage for this transaction.
unique_ptr< OptimisticDataWriter > optimistic_writer
unordered_set< row_t > updated_rows
idx_t update_count = 0
unique_ptr< ConstraintState > constraint_state
const vector< unique_ptr< BoundConstraint > > & bound_constraints
unique_ptr< TableDeleteState > delete_state
 The delete state for ON CONFLICT handling that is rewritten into DELETE + INSERT.
DataChunk append_chunk
 The append chunk for ON CONFLICT handling that is rewritting into DELETE + INSERT.
Public Attributes inherited from duckdb::LocalSinkState
SourcePartitionInfo partition_info
 Source partition info.

Constructor & Destructor Documentation

◆ InsertLocalState()

duckdb::InsertLocalState::InsertLocalState ( ClientContext & context,
const vector< LogicalType > & types,
const vector< unique_ptr< BoundConstraint > > & bound_constraints )
195501 : collection_index(DConstants::INVALID_INDEX), bound_constraints(bound_constraints) {
195502 auto &allocator = Allocator::Get(context);
195503 update_chunk.Initialize(allocator, types);
195504 append_chunk.Initialize(allocator, types);
195505}
DataChunk update_chunk
The chunk containing the tuples that become an update (if DO UPDATE).
Definition duckdb.cpp:192758
PhysicalIndex collection_index
An index to the optimistic row group collection vector of the local table storage for this transactio...
Definition duckdb.cpp:192761
DataChunk append_chunk
The append chunk for ON CONFLICT handling that is rewritting into DELETE + INSERT.
Definition duckdb.cpp:192771
static constexpr const idx_t INVALID_INDEX
The value used to signify an invalid index entry.
Definition duckdb.hpp:1117

Member Function Documentation

◆ GetConstraintState()

ConstraintState & duckdb::InsertLocalState::GetConstraintState ( DataTable & table,
TableCatalogEntry & table_ref )
195507 {
195508 if (!constraint_state) {
195509 constraint_state = table.InitializeConstraintState(table_ref, bound_constraints);
195510 }
195511 return *constraint_state;
195512}

◆ GetDeleteState()

TableDeleteState & duckdb::InsertLocalState::GetDeleteState ( DataTable & table,
TableCatalogEntry & table_ref,
ClientContext & context )
195515 {
195516 if (!delete_state) {
195517 delete_state = table.InitializeDelete(table_ref, context, bound_constraints);
195518 }
195519 return *delete_state;
195520}
unique_ptr< TableDeleteState > delete_state
The delete state for ON CONFLICT handling that is rewritten into DELETE + INSERT.
Definition duckdb.cpp:192769

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