◆ GetPos()
72495 {
72496 auto info = type.AuxInfo();
72497 switch (type.InternalType()) {
72499 return TemplatedGetPos(info->Cast<EnumTypeInfoTemplated<uint8_t>>().GetValues(), key);
72501 return TemplatedGetPos(info->Cast<EnumTypeInfoTemplated<uint16_t>>().GetValues(), key);
72503 return TemplatedGetPos(info->Cast<EnumTypeInfoTemplated<uint32_t>>().GetValues(), key);
72504 default:
72505 throw InternalException("ENUM can only have unsigned integers (except UINT64) as physical types");
72506 }
72507}
@ UINT32
Unsigned 32-bit little-endian integer.
@ UINT16
Unsigned 16-bit little-endian integer.
@ UINT8
Unsigned 8-bit little-endian integer.
◆ GetString()
72509 {
72510 D_ASSERT(pos < EnumType::GetSize(type));
72511 return FlatVector::GetData<string_t>(EnumType::GetValuesInsertOrder(type))[pos];
72512}
The documentation for this struct was generated from the following files:
- external/duckdb/duckdb.hpp
- external/duckdb/duckdb.cpp