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::BoundUnnestExpression Class Reference

Represents a function call that has been bound to a base function. More...

Inheritance diagram for duckdb::BoundUnnestExpression:
Collaboration diagram for duckdb::BoundUnnestExpression:

Public Member Functions

 BoundUnnestExpression (LogicalType return_type)
bool IsFoldable () const override
string ToString () const override
 Convert the Expression to a String.
hash_t Hash () const override
bool Equals (const BaseExpression &other) const override
 Returns true if this expression is equal to another expression.
unique_ptr< Expression > Copy () const override
 Create a copy of this expression.
void Serialize (Serializer &serializer) const override
Public Member Functions inherited from duckdb::Expression
 Expression (ExpressionType type, ExpressionClass expression_class, LogicalType return_type)
bool IsAggregate () const override
 Returns true if this expression is an aggregate or not.
bool IsWindow () const override
 Returns true if the expression has a window function or not.
bool HasSubquery () const override
 Returns true if the query contains a subquery.
bool IsScalar () const override
 Returns true if expression does not contain a group ref or col ref or parameter.
bool HasParameter () const override
 Returns true if the expression has a parameter.
virtual bool IsVolatile () const
virtual bool IsConsistent () const
virtual bool PropagatesNullValues () const
virtual bool CanThrow () const
hash_t Hash () const override
bool Equals (const BaseExpression &other) const override
 Returns true if this expression is equal to another expression.
Public Member Functions inherited from duckdb::BaseExpression
 BaseExpression (ExpressionType type, ExpressionClass expression_class)
 Create an Expression.
ExpressionClass GetExpressionClass () const
 Returns the class of the expression.
ExpressionType GetExpressionType () const
 Returns the type of the expression.
void SetExpressionTypeUnsafe (ExpressionType new_type)
optional_idx GetQueryLocation () const
 Returns the location in the query (if any).
void SetQueryLocation (optional_idx location)
 Sets the location in the query.
bool HasAlias () const
 Returns true if the expression has a non-empty alias.
const string & GetAlias () const
 Returns the alias of the expression.
void SetAlias (const string &alias_p)
 Sets the alias of the expression.
void SetAlias (string &&alias_p)
 Sets the alias of the expression.
void ClearAlias ()
 Clears the alias of the expression.
virtual string GetName () const
 Get the name of the expression.
void Print () const
 Print the expression to stdout.
bool operator== (const BaseExpression &rhs) const
virtual void Verify () const
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const

Static Public Member Functions

static unique_ptr< Expression > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::Expression
static bool Equals (const Expression &left, const Expression &right)
static bool Equals (const unique_ptr< Expression > &left, const unique_ptr< Expression > &right)
static bool ListEquals (const vector< unique_ptr< Expression > > &left, const vector< unique_ptr< Expression > > &right)
static unique_ptr< Expression > Deserialize (Deserializer &deserializer)
Static Public Member Functions inherited from duckdb::BaseExpression
static bool Equals (const BaseExpression &left, const BaseExpression &right)

Public Attributes

unique_ptr< Expression > child
Public Attributes inherited from duckdb::Expression
LogicalType return_type
 The return type of the expression.
unique_ptr< BaseStatistics > verification_stats
 Expression statistics (if any) - ONLY USED FOR VERIFICATION.
Public Attributes inherited from duckdb::BaseExpression
ExpressionType type
 Type of the expression.
ExpressionClass expression_class
 The expression class of the node.
string alias
 The alias of the expression,.
optional_idx query_location
 The location in the query (if any).

Static Public Attributes

static constexpr const ExpressionClass TYPE = ExpressionClass::BOUND_UNNEST

Additional Inherited Members

Protected Member Functions inherited from duckdb::Expression
void CopyProperties (const Expression &other)

Detailed Description

Represents a function call that has been bound to a base function.

Constructor & Destructor Documentation

◆ BoundUnnestExpression()

duckdb::BoundUnnestExpression::BoundUnnestExpression ( LogicalType return_type)
explicit
376820 : Expression(ExpressionType::BOUND_UNNEST, ExpressionClass::BOUND_UNNEST, std::move(return_type)) {
376821}
LogicalType return_type
The return type of the expression.
Definition duckdb.hpp:17743

Member Function Documentation

◆ IsFoldable()

bool duckdb::BoundUnnestExpression::IsFoldable ( ) const
overridevirtual

Reimplemented from duckdb::Expression.

376823 {
376824 return false;
376825}

◆ ToString()

string duckdb::BoundUnnestExpression::ToString ( ) const
overridevirtual

Convert the Expression to a String.

Implements duckdb::BaseExpression.

376827 {
376828 return "UNNEST(" + child->ToString() + ")";
376829}
Here is the call graph for this function:

◆ Hash()

hash_t duckdb::BoundUnnestExpression::Hash ( ) const
overridevirtual

Creates a hash value of this expression. It is important that if two expressions are identical (i.e. Expression::Equals() returns true), that their hash value is identical as well.

Implements duckdb::BaseExpression.

376831 {
376832 hash_t result = Expression::Hash();
376833 return CombineHash(result, duckdb::Hash("unnest"));
376834}
hash_t Hash() const override
Definition duckdb.cpp:377203
uint64_t hash_t
The type used for hashes.
Definition duckdb.hpp:243
hash_t CombineHash(hash_t left, hash_t right)
Combine two hashes by XORing them.
Definition duckdb.hpp:4635
Here is the call graph for this function:

◆ Equals()

bool duckdb::BoundUnnestExpression::Equals ( const BaseExpression & other) const
overridevirtual

Returns true if this expression is equal to another expression.

Reimplemented from duckdb::BaseExpression.

376836 {
376837 if (!Expression::Equals(other_p)) {
376838 return false;
376839 }
376840 auto &other = other_p.Cast<BoundUnnestExpression>();
376841 if (!Expression::Equals(*child, *other.child)) {
376842 return false;
376843 }
376844 return true;
376845}
bool Equals(const BaseExpression &other) const override
Returns true if this expression is equal to another expression.
Definition duckdb.hpp:17762
Here is the call graph for this function:

◆ Copy()

unique_ptr< Expression > duckdb::BoundUnnestExpression::Copy ( ) const
overridevirtual

Create a copy of this expression.

Implements duckdb::Expression.

376847 {
376848 auto copy = make_uniq<BoundUnnestExpression>(return_type);
376849 copy->child = child->Copy();
376850 return std::move(copy);
376851}

◆ Serialize()

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

Reimplemented from duckdb::Expression.

416186 {
416187 Expression::Serialize(serializer);
416188 serializer.WriteProperty<LogicalType>(200, "return_type", return_type);
416189 serializer.WritePropertyWithDefault<unique_ptr<Expression>>(201, "child", child);
416190}

◆ Deserialize()

unique_ptr< Expression > duckdb::BoundUnnestExpression::Deserialize ( Deserializer & deserializer)
static
416192 {
416193 auto return_type = deserializer.ReadProperty<LogicalType>(200, "return_type");
416194 auto result = duckdb::unique_ptr<BoundUnnestExpression>(new BoundUnnestExpression(std::move(return_type)));
416195 deserializer.ReadPropertyWithDefault<unique_ptr<Expression>>(201, "child", result->child);
416196 return std::move(result);
416197}

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