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

Public Member Functions

ExtraPersistentColumnDataType GetType () const
template<class TARGET>
TARGET & Cast ()
template<class TARGET>
const TARGET & Cast () const
void Serialize (Serializer &serializer) const

Static Public Member Functions

static unique_ptr< ExtraPersistentColumnData > Deserialize (Deserializer &deserializer)

Protected Member Functions

 ExtraPersistentColumnData (ExtraPersistentColumnDataType type_p)

Private Attributes

ExtraPersistentColumnDataType type

Constructor & Destructor Documentation

◆ ExtraPersistentColumnData()

duckdb::ExtraPersistentColumnData::ExtraPersistentColumnData ( ExtraPersistentColumnDataType type_p)
inlineexplicitprotected
49520 : type(type_p) {
49521 }

Member Function Documentation

◆ GetType()

ExtraPersistentColumnDataType duckdb::ExtraPersistentColumnData::GetType ( ) const
inline
49497 {
49498 return type;
49499 }

◆ Cast() [1/2]

template<class TARGET>
TARGET & duckdb::ExtraPersistentColumnData::Cast ( )
inline
49504 {
49505 D_ASSERT(type == TARGET::TYPE);
49506 DynamicCastCheck<TARGET>(this);
49507 return reinterpret_cast<TARGET &>(*this);
49508 }

◆ Cast() [2/2]

template<class TARGET>
const TARGET & duckdb::ExtraPersistentColumnData::Cast ( ) const
inline
49510 {
49511 D_ASSERT(type == TARGET::TYPE);
49512 DynamicCastCheck<TARGET>(this);
49513 return reinterpret_cast<const TARGET &>(*this);
49514 }

◆ Serialize()

void duckdb::ExtraPersistentColumnData::Serialize ( Serializer & serializer) const
429882 {
429883 serializer.WritePropertyWithDefault(100, "type", type, ExtraPersistentColumnDataType::INVALID);
429884 switch (GetType()) {
429885 case ExtraPersistentColumnDataType::VARIANT: {
429886 const auto &variant_data = Cast<VariantPersistentColumnData>();
429887 serializer.WriteProperty<LogicalType>(101, "storage_type", variant_data.logical_type);
429888 } break;
429889 case ExtraPersistentColumnDataType::GEOMETRY: {
429890 const auto &geometry_data = Cast<GeometryPersistentColumnData>();
429891 serializer.WritePropertyWithDefault(101, "storage_type", geometry_data.storage_type, GeometryStorageType::WKB);
429892 } break;
429893 default:
429894 throw InternalException("Unknown PersistentColumnData type");
429895 }
429896}

◆ Deserialize()

unique_ptr< ExtraPersistentColumnData > duckdb::ExtraPersistentColumnData::Deserialize ( Deserializer & deserializer)
static
429897 {
429898 auto type = deserializer.ReadPropertyWithExplicitDefault<ExtraPersistentColumnDataType>(
429899 100, "type", ExtraPersistentColumnDataType::INVALID);
429900 switch (type) {
429901 case ExtraPersistentColumnDataType::VARIANT: {
429902 auto storage_type =
429903 deserializer.ReadPropertyWithExplicitDefault<LogicalType>(101, "storage_type", LogicalType());
429904 return make_uniq<VariantPersistentColumnData>(storage_type);
429905 }
429906 case ExtraPersistentColumnDataType::GEOMETRY: {
429907 const auto storage_type = deserializer.ReadPropertyWithExplicitDefault<GeometryStorageType>(
429908 101, "storage_type", GeometryStorageType::WKB);
429909 return make_uniq<GeometryPersistentColumnData>(storage_type);
429910 }
429911 default:
429912 throw InternalException("Unknown PersistentColumnData type");
429913 }
429914}

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