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::PivotColumnEntry Struct Reference
Collaboration diagram for duckdb::PivotColumnEntry:

Public Member Functions

bool Equals (const PivotColumnEntry &other) const
PivotColumnEntry Copy () const
void Serialize (Serializer &serializer) const

Static Public Member Functions

static PivotColumnEntry Deserialize (Deserializer &source)

Public Attributes

vector< Value > values
 The set of values to match on (PIVOT only).
unique_ptr< ParsedExpression > expr
 The expression (UNPIVOT only).
string alias
 The alias of the pivot column entry.

Member Function Documentation

◆ Equals()

bool duckdb::PivotColumnEntry::Equals ( const PivotColumnEntry & other) const
350674 {
350675 if (alias != other.alias) {
350676 return false;
350677 }
350678 if (values.size() != other.values.size()) {
350679 return false;
350680 }
350681 for (idx_t i = 0; i < values.size(); i++) {
350682 if (!Value::NotDistinctFrom(values[i], other.values[i])) {
350683 return false;
350684 }
350685 }
350686 return true;
350687}
static DUCKDB_API bool NotDistinctFrom(const Value &lvalue, const Value &rvalue)
Returns true if the values are not distinct from each other, following SQL semantics for NOT DISTINCT...
Definition duckdb.cpp:134034
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
string alias
The alias of the pivot column entry.
Definition duckdb.cpp:197298
vector< Value > values
The set of values to match on (PIVOT only).
Definition duckdb.cpp:197294

◆ Copy()

PivotColumnEntry duckdb::PivotColumnEntry::Copy ( ) const
350726 {
350727 PivotColumnEntry result;
350728 result.values = values;
350729 result.expr = expr ? expr->Copy() : nullptr;
350730 result.alias = alias;
350731 return result;
350732}
unique_ptr< ParsedExpression > expr
The expression (UNPIVOT only).
Definition duckdb.cpp:197296

◆ Serialize()

void duckdb::PivotColumnEntry::Serialize ( Serializer & serializer) const
417596 {
417597 serializer.WritePropertyWithDefault<vector<Value>>(100, "values", values);
417598 serializer.WritePropertyWithDefault<unique_ptr<ParsedExpression>>(101, "star_expr", expr);
417599 serializer.WritePropertyWithDefault<string>(102, "alias", alias);
417600}

◆ Deserialize()

PivotColumnEntry duckdb::PivotColumnEntry::Deserialize ( Deserializer & source)
static
417602 {
417603 PivotColumnEntry result;
417604 deserializer.ReadPropertyWithDefault<vector<Value>>(100, "values", result.values);
417605 deserializer.ReadPropertyWithDefault<unique_ptr<ParsedExpression>>(101, "star_expr", result.expr);
417606 deserializer.ReadPropertyWithDefault<string>(102, "alias", result.alias);
417607 return result;
417608}

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