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

Public Member Functions

 ArrowType (LogicalType type_p, unique_ptr< ArrowTypeInfo > type_info=nullptr)
 From a DuckDB type.
 
 ArrowType (string error_message_p, bool not_implemented_p=false)
 
LogicalType GetDuckType (bool use_dictionary=false) const
 
void SetDictionary (unique_ptr< ArrowType > dictionary)
 
bool HasDictionary () const
 
const ArrowTypeGetDictionary () const
 
bool RunEndEncoded () const
 
void SetRunEndEncoded ()
 
template<class T >
const T & GetTypeInfo () const
 
void ThrowIfInvalid () const
 
bool HasExtension () const
 
ArrowArrayPhysicalType GetPhysicalType () const
 

Static Public Member Functions

static unique_ptr< ArrowTypeGetTypeFromFormat (string &format)
 
static unique_ptr< ArrowTypeGetTypeFromFormat (ClientContext &context, ArrowSchema &schema, string &format)
 
static unique_ptr< ArrowTypeGetTypeFromSchema (ClientContext &context, ArrowSchema &schema)
 
static unique_ptr< ArrowTypeCreateListType (ClientContext &context, ArrowSchema &child, ArrowVariableSizeType size_type, bool view)
 
static unique_ptr< ArrowTypeGetArrowLogicalType (ClientContext &context, ArrowSchema &schema)
 

Public Attributes

shared_ptr< ArrowTypeExtensionDataextension_data
 The Arrow Type Extension data, if any.
 

Protected Attributes

LogicalType type
 
unique_ptr< ArrowTypedictionary_type
 Hold the optional type if the array is a dictionary.
 
bool run_end_encoded = false
 Is run-end-encoded.
 
unique_ptr< ArrowTypeInfotype_info
 
string error_message
 Error message in case of an invalid type (i.e., from an unsupported extension)
 
bool not_implemented = false
 In case of an error do we throw not implemented?
 

Constructor & Destructor Documentation

◆ ArrowType() [1/2]

duckdb::ArrowType::ArrowType ( LogicalType  type_p,
unique_ptr< ArrowTypeInfo type_info = nullptr 
)
inlineexplicit

From a DuckDB type.

37692 : type(std::move(type_p)), type_info(std::move(type_info)) {
37693 }

◆ ArrowType() [2/2]

duckdb::ArrowType::ArrowType ( string  error_message_p,
bool  not_implemented_p = false 
)
inlineexplicit
37695 : type(LogicalTypeId::INVALID), type_info(nullptr), error_message(std::move(error_message_p)),
37696 not_implemented(not_implemented_p) {
37697 }
bool not_implemented
In case of an error do we throw not implemented?
Definition duckdb.hpp:37742
string error_message
Error message in case of an invalid type (i.e., from an unsupported extension)
Definition duckdb.hpp:37740

Member Function Documentation

◆ GetTypeInfo()

template<class T >
const T & duckdb::ArrowType::GetTypeInfo ( ) const
inline
37710 {
37711 return type_info->Cast<T>();
37712 }

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