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

Public Member Functions

 LogicalPrepare (string name_p, shared_ptr< PreparedStatementData > prepared, unique_ptr< LogicalOperator > logical_plan)
idx_t EstimateCardinality (ClientContext &context) override
bool SupportSerialization () const override
 Skips the serialization check in VerifyPlan.
Public Member Functions inherited from duckdb::LogicalOperator
 LogicalOperator (LogicalOperatorType type)
 LogicalOperator (LogicalOperatorType type, vector< unique_ptr< Expression > > expressions)
virtual vector< ColumnBinding > GetColumnBindings ()
virtual idx_t GetRootIndex ()
void PrintColumnBindings ()
void ResolveOperatorTypes ()
 Resolve the types of the logical operator and its children.
virtual string GetName () const
virtual InsertionOrderPreservingMap< string > ParamsToString () const
virtual string ToString (ExplainFormat format=ExplainFormat::DEFAULT) const
DUCKDB_API void Print ()
virtual void Verify (ClientContext &context)
 Debug method: verify that the integrity of expressions & child nodes are maintained.
void AddChild (unique_ptr< LogicalOperator > child)
void SetEstimatedCardinality (idx_t _estimated_cardinality)
void SetParamsEstimatedCardinality (InsertionOrderPreservingMap< string > &result) const
virtual void Serialize (Serializer &serializer) const
virtual unique_ptr< LogicalOperator > Copy (ClientContext &context) const
virtual bool HasProjectionMap () const
virtual vector< idx_t > GetTableIndex () const
 Returns the set of table indexes of this operator.
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Public Attributes

string name
shared_ptr< PreparedStatementData > prepared
Public Attributes inherited from duckdb::LogicalOperator
LogicalOperatorType type
 The type of the logical operator.
vector< unique_ptr< LogicalOperator > > children
 The set of children of the operator.
vector< unique_ptr< Expression > > expressions
 The set of expressions contained within the operator, if any.
vector< LogicalType > types
 The types returned by this logical operator. Set by calling LogicalOperator::ResolveTypes.
idx_t estimated_cardinality
 Estimated Cardinality.
bool has_estimated_cardinality

Static Public Attributes

static constexpr const LogicalOperatorType TYPE = LogicalOperatorType::LOGICAL_PREPARE

Protected Member Functions

void ResolveTypes () override
 Resolve types for this specific operator.
bool RequireOptimizer () const override

Additional Inherited Members

Static Public Member Functions inherited from duckdb::LogicalOperator
static string ColumnBindingsToString (const vector< ColumnBinding > &bindings)
static vector< ColumnBinding > GenerateColumnBindings (idx_t table_idx, idx_t column_count)
static vector< LogicalType > MapTypes (const vector< LogicalType > &types, const vector< idx_t > &projection_map)
static vector< ColumnBinding > MapBindings (const vector< ColumnBinding > &types, const vector< idx_t > &projection_map)
static unique_ptr< LogicalOperator > Deserialize (Deserializer &deserializer)

Constructor & Destructor Documentation

◆ LogicalPrepare()

duckdb::LogicalPrepare::LogicalPrepare ( string name_p,
shared_ptr< PreparedStatementData > prepared,
unique_ptr< LogicalOperator > logical_plan )
inline
205545 : LogicalOperator(LogicalOperatorType::LOGICAL_PREPARE), name(std::move(name_p)),
205546 prepared(std::move(prepared)) {
205547 if (logical_plan) {
205548 children.push_back(std::move(logical_plan));
205549 }
205550 }
vector< unique_ptr< LogicalOperator > > children
The set of children of the operator.
Definition duckdb.hpp:21262

Member Function Documentation

◆ EstimateCardinality()

idx_t duckdb::LogicalPrepare::EstimateCardinality ( ClientContext & context)
overridevirtual

Reimplemented from duckdb::LogicalOperator.

382930 {
382931 return 1;
382932}

◆ SupportSerialization()

bool duckdb::LogicalPrepare::SupportSerialization ( ) const
inlineoverridevirtual

Skips the serialization check in VerifyPlan.

Reimplemented from duckdb::LogicalOperator.

205558 {
205559 return false;
205560 }

◆ ResolveTypes()

void duckdb::LogicalPrepare::ResolveTypes ( )
inlineoverrideprotectedvirtual

Resolve types for this specific operator.

Implements duckdb::LogicalOperator.

205563 {
205564 types.emplace_back(LogicalType::BOOLEAN);
205565 }
vector< LogicalType > types
The types returned by this logical operator. Set by calling LogicalOperator::ResolveTypes.
Definition duckdb.hpp:21266

◆ RequireOptimizer()

bool duckdb::LogicalPrepare::RequireOptimizer ( ) const
inlineoverrideprotectedvirtual

Reimplemented from duckdb::LogicalOperator.

205567 {
205568 if (!prepared->properties.bound_all_parameters || prepared->properties.always_require_rebind) {
205569 return false;
205570 }
205571 return children[0]->RequireOptimizer();
205572 }

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