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

Public Member Functions

 LogicalWindow (idx_t window_index)
vector< ColumnBinding > GetColumnBindings () override
void Serialize (Serializer &serializer) const override
vector< idx_t > GetTableIndex () const override
 Returns the set of table indexes of this operator.
string GetName () const override
Public Member Functions inherited from duckdb::LogicalOperator
 LogicalOperator (LogicalOperatorType type)
 LogicalOperator (LogicalOperatorType type, vector< unique_ptr< Expression > > expressions)
virtual idx_t GetRootIndex ()
void PrintColumnBindings ()
void ResolveOperatorTypes ()
 Resolve the types of the logical operator and its children.
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)
virtual idx_t EstimateCardinality (ClientContext &context)
void SetEstimatedCardinality (idx_t _estimated_cardinality)
void SetParamsEstimatedCardinality (InsertionOrderPreservingMap< string > &result) const
virtual unique_ptr< LogicalOperator > Copy (ClientContext &context) const
virtual bool RequireOptimizer () const
virtual bool SupportSerialization () const
 Allows LogicalOperators to opt out of serialization.
virtual bool HasProjectionMap () const
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< LogicalOperator > Deserialize (Deserializer &deserializer)
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)

Public Attributes

idx_t window_index
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_WINDOW

Protected Member Functions

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

Detailed Description

LogicalAggregate represents an aggregate operation with (optional) GROUP BY operator.

Constructor & Destructor Documentation

◆ LogicalWindow()

duckdb::LogicalWindow::LogicalWindow ( idx_t window_index)
inlineexplicit
206505 : LogicalOperator(LogicalOperatorType::LOGICAL_WINDOW), window_index(window_index) {
206506 }

Member Function Documentation

◆ GetColumnBindings()

vector< ColumnBinding > duckdb::LogicalWindow::GetColumnBindings ( )
overridevirtual

Reimplemented from duckdb::LogicalOperator.

383476 {
383477 auto child_bindings = children[0]->GetColumnBindings();
383478 for (idx_t i = 0; i < expressions.size(); i++) {
383479 child_bindings.emplace_back(window_index, i);
383480 }
383481 return child_bindings;
383482}
vector< unique_ptr< LogicalOperator > > children
The set of children of the operator.
Definition duckdb.hpp:21262
vector< unique_ptr< Expression > > expressions
The set of expressions contained within the operator, if any.
Definition duckdb.hpp:21264
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237

◆ Serialize()

void duckdb::LogicalWindow::Serialize ( Serializer & serializer) const
overridevirtual

Reimplemented from duckdb::LogicalOperator.

417095 {
417096 LogicalOperator::Serialize(serializer);
417097 serializer.WritePropertyWithDefault<idx_t>(200, "window_index", window_index);
417098 serializer.WritePropertyWithDefault<vector<unique_ptr<Expression>>>(201, "expressions", expressions);
417099}

◆ Deserialize()

unique_ptr< LogicalOperator > duckdb::LogicalWindow::Deserialize ( Deserializer & deserializer)
static
417101 {
417102 auto window_index = deserializer.ReadPropertyWithDefault<idx_t>(200, "window_index");
417103 auto result = duckdb::unique_ptr<LogicalWindow>(new LogicalWindow(window_index));
417104 deserializer.ReadPropertyWithDefault<vector<unique_ptr<Expression>>>(201, "expressions", result->expressions);
417105 return std::move(result);
417106}

◆ GetTableIndex()

vector< idx_t > duckdb::LogicalWindow::GetTableIndex ( ) const
overridevirtual

Returns the set of table indexes of this operator.

Reimplemented from duckdb::LogicalOperator.

383491 {
383492 return vector<idx_t> {window_index};
383493}

◆ GetName()

string duckdb::LogicalWindow::GetName ( ) const
overridevirtual

Reimplemented from duckdb::LogicalOperator.

383495 {
383496#ifdef DEBUG
383498 return LogicalOperator::GetName() + StringUtil::Format(" #%llu", window_index);
383499 }
383500#endif
383501 return LogicalOperator::GetName();
383502}
static string Format(const string fmt_str, ARGS... params)
Format a string using printf semantics.
Definition duckdb.hpp:4002
static bool debug_print_bindings
Whether to print bindings when printing the plan (debug mode only).
Definition duckdb.hpp:40040

◆ ResolveTypes()

void duckdb::LogicalWindow::ResolveTypes ( )
overrideprotectedvirtual

Resolve types for this specific operator.

Implements duckdb::LogicalOperator.

383484 {
383485 types.insert(types.end(), children[0]->types.begin(), children[0]->types.end());
383486 for (auto &expr : expressions) {
383487 types.push_back(expr->return_type);
383488 }
383489}
vector< LogicalType > types
The types returned by this logical operator. Set by calling LogicalOperator::ResolveTypes.
Definition duckdb.hpp:21266

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