|
| | ArrowTypeInfo (ArrowTypeInfoType type) |
| template<class TARGET> |
| TARGET & | Cast () |
| template<class TARGET> |
| const TARGET & | Cast () const |
◆ ArrowTypeInfo() [1/2]
| duckdb::ArrowTypeInfo::ArrowTypeInfo |
( |
| ) |
|
|
inlineexplicit |
◆ ArrowTypeInfo() [2/2]
| duckdb::ArrowTypeInfo::ArrowTypeInfo |
( |
ArrowTypeInfoType | type | ) |
|
|
explicit |
239456 : type(type) {
239457}
◆ ~ArrowTypeInfo()
| duckdb::ArrowTypeInfo::~ArrowTypeInfo |
( |
| ) |
|
|
virtual |
◆ Cast() [1/2]
template<class TARGET>
| TARGET & duckdb::ArrowTypeInfo::Cast |
( |
| ) |
|
|
inline |
37517 {
37518 D_ASSERT(dynamic_cast<TARGET *>(this));
37519 if (type != TARGET::TYPE) {
37520 throw InternalException("Failed to cast ArrowTypeInfo, type mismatch (expected: %s, got: %s)",
37521 EnumUtil::ToString(TARGET::TYPE), EnumUtil::ToString(type));
37522 }
37523 return reinterpret_cast<TARGET &>(*this);
37524 }
◆ Cast() [2/2]
template<class TARGET>
| const TARGET & duckdb::ArrowTypeInfo::Cast |
( |
| ) |
const |
|
inline |
37526 {
37527 D_ASSERT(dynamic_cast<const TARGET *>(this));
37528 if (type != TARGET::TYPE) {
37529 throw InternalException("Failed to cast ArrowTypeInfo, type mismatch (expected: %s, got: %s)",
37530 EnumUtil::ToString(TARGET::TYPE), EnumUtil::ToString(type));
37531 }
37532 return reinterpret_cast<const TARGET &>(*this);
37533 }
The documentation for this struct was generated from the following files: