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

Public Member Functions

 UpdateLocalState (ClientContext &context, const vector< unique_ptr< Expression > > &expressions, const vector< LogicalType > &table_types, const vector< unique_ptr< Expression > > &bound_defaults, const vector< unique_ptr< BoundConstraint > > &bound_constraints)
TableDeleteState & GetDeleteState (DataTable &table, TableCatalogEntry &tableref, ClientContext &context)
TableUpdateState & GetUpdateState (DataTable &table, TableCatalogEntry &tableref, 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
DataChunk mock_chunk
DataChunk delete_chunk
ExpressionExecutor default_executor
unique_ptr< TableDeleteState > delete_state
unique_ptr< TableUpdateState > update_state
const vector< unique_ptr< BoundConstraint > > & bound_constraints
Public Attributes inherited from duckdb::LocalSinkState
SourcePartitionInfo partition_info
 Source partition info.

Constructor & Destructor Documentation

◆ UpdateLocalState()

duckdb::UpdateLocalState::UpdateLocalState ( ClientContext & context,
const vector< unique_ptr< Expression > > & expressions,
const vector< LogicalType > & table_types,
const vector< unique_ptr< Expression > > & bound_defaults,
const vector< unique_ptr< BoundConstraint > > & bound_constraints )
inline
196997 : default_executor(context, bound_defaults), bound_constraints(bound_constraints) {
196998 // Initialize the update chunk.
196999 auto &allocator = Allocator::Get(context);
197000 vector<LogicalType> update_types;
197001 update_types.reserve(expressions.size());
197002 for (auto &expr : expressions) {
197003 update_types.push_back(expr->return_type);
197004 }
197005 update_chunk.Initialize(allocator, update_types);
197006
197007 // Initialize the mock and delete chunk.
197008 mock_chunk.Initialize(allocator, table_types);
197009 delete_chunk.Initialize(allocator, table_types);
197010 }

Member Function Documentation

◆ GetDeleteState()

TableDeleteState & duckdb::UpdateLocalState::GetDeleteState ( DataTable & table,
TableCatalogEntry & tableref,
ClientContext & context )
inline
197020 {
197021 if (!delete_state) {
197022 delete_state = table.InitializeDelete(tableref, context, bound_constraints);
197023 }
197024 return *delete_state;
197025 }

◆ GetUpdateState()

TableUpdateState & duckdb::UpdateLocalState::GetUpdateState ( DataTable & table,
TableCatalogEntry & tableref,
ClientContext & context )
inline
197027 {
197028 if (!update_state) {
197029 update_state = table.InitializeUpdate(tableref, context, bound_constraints);
197030 }
197031 return *update_state;
197032 }

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