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

Public Member Functions

 ArrowTypeExtensionData (const LogicalType &duckdb_type, const LogicalType &internal_type_p, cast_arrow_duck_t arrow_to_duckdb=nullptr, cast_duck_arrow_t duckdb_to_arrow=nullptr)
 ArrowTypeExtensionData (const LogicalType &duckdb_type)
LogicalType GetInternalType () const
LogicalType GetDuckDBType () const

Static Public Member Functions

static unordered_map< idx_t, const shared_ptr< ArrowTypeExtensionData > > GetExtensionTypes (ClientContext &context, const vector< LogicalType > &duckdb_types)
 This function returns possible extension types to given DuckDB types.

Public Attributes

cast_arrow_duck_t arrow_to_duckdb = nullptr
 (Optional) Callback to function that converts an Arrow Array to a DuckDB Vector
cast_duck_arrow_t duckdb_to_arrow = nullptr
 (Optional) Callback to function that converts a DuckDB Vector to an Arrow Array

Private Attributes

LogicalType duckdb_type
 Original DuckDB Type (e.g., UHUGEINT).
LogicalType internal_type
 Internal type is a type that refers to the produced duckdb vector when consuming the arrow format.

Constructor & Destructor Documentation

◆ ArrowTypeExtensionData() [1/2]

duckdb::ArrowTypeExtensionData::ArrowTypeExtensionData ( const LogicalType & duckdb_type,
const LogicalType & internal_type_p,
cast_arrow_duck_t arrow_to_duckdb = nullptr,
cast_duck_arrow_t duckdb_to_arrow = nullptr )
inlineexplicit
37662 internal_type(internal_type_p) {
37663 }
cast_duck_arrow_t duckdb_to_arrow
(Optional) Callback to function that converts a DuckDB Vector to an Arrow Array
Definition duckdb.hpp:37672
LogicalType internal_type
Internal type is a type that refers to the produced duckdb vector when consuming the arrow format.
Definition duckdb.hpp:37685
cast_arrow_duck_t arrow_to_duckdb
(Optional) Callback to function that converts an Arrow Array to a DuckDB Vector
Definition duckdb.hpp:37670
LogicalType duckdb_type
Original DuckDB Type (e.g., UHUGEINT).
Definition duckdb.hpp:37683

◆ ArrowTypeExtensionData() [2/2]

duckdb::ArrowTypeExtensionData::ArrowTypeExtensionData ( const LogicalType & duckdb_type)
inlineexplicit

Member Function Documentation

◆ GetInternalType()

LogicalType duckdb::ArrowTypeExtensionData::GetInternalType ( ) const
239426 {
239427 return internal_type;
239428}

◆ GetExtensionTypes()

unordered_map< idx_t, const shared_ptr< ArrowTypeExtensionData > > duckdb::ArrowTypeExtensionData::GetExtensionTypes ( ClientContext & context,
const vector< LogicalType > & duckdb_types )
static

This function returns possible extension types to given DuckDB types.

239431 {
239432 unordered_map<idx_t, const shared_ptr<ArrowTypeExtensionData>> extension_types;
239433 const auto &db_config = DBConfig::GetConfig(context);
239434 for (idx_t i = 0; i < duckdb_types.size(); i++) {
239435 if (db_config.HasArrowExtension(duckdb_types[i])) {
239436 extension_types.insert({i, db_config.GetArrowExtension(duckdb_types[i]).GetTypeExtension()});
239437 }
239438 }
239439 return extension_types;
239440}
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
Here is the caller graph for this function:

◆ GetDuckDBType()

LogicalType duckdb::ArrowTypeExtensionData::GetDuckDBType ( ) const
239442 {
239443 return duckdb_type;
239444}

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