◆ GetValue()
| const Value & duckdb::UnionValue::GetValue |
( |
const Value & | value | ) |
|
|
static |
133584 {
133585 D_ASSERT(value.type().id() == LogicalTypeId::UNION);
133586 auto &children = StructValue::GetChildren(value);
133587 auto tag = children[0].GetValueUnsafe<union_tag_t>();
133588 D_ASSERT(tag < children.size() - 1);
133589 return children[tag + 1];
133590}
◆ GetTag()
| union_tag_t duckdb::UnionValue::GetTag |
( |
const Value & | value | ) |
|
|
static |
133592 {
133593 D_ASSERT(value.type().id() == LogicalTypeId::UNION);
133594 auto children = StructValue::GetChildren(value);
133595 auto tag = children[0].GetValueUnsafe<union_tag_t>();
133596 D_ASSERT(tag < children.size() - 1);
133597 return tag;
133598}
◆ GetType()
133600 {
133601 return UnionType::GetMemberType(value.type(), UnionValue::GetTag(value));
133602}
The documentation for this struct was generated from the following files: