◆ DecimalTypeInfo() [1/2]
| duckdb::DecimalTypeInfo::DecimalTypeInfo |
( |
uint8_t | width_p, |
|
|
uint8_t | scale_p ) |
72265 : ExtraTypeInfo(ExtraTypeInfoType::DECIMAL_TYPE_INFO), width(width_p), scale(scale_p) {
72266 D_ASSERT(width_p >= scale_p);
72267}
◆ DecimalTypeInfo() [2/2]
| duckdb::DecimalTypeInfo::DecimalTypeInfo |
( |
| ) |
|
|
private |
72261 : ExtraTypeInfo(ExtraTypeInfoType::DECIMAL_TYPE_INFO) {
72262}
◆ Serialize()
| void duckdb::DecimalTypeInfo::Serialize |
( |
Serializer & | serializer | ) |
const |
|
overridevirtual |
Reimplemented from duckdb::ExtraTypeInfo.
419922 {
419923 ExtraTypeInfo::Serialize(serializer);
419924 serializer.WritePropertyWithDefault<
uint8_t>(200,
"width", width);
419925 serializer.WritePropertyWithDefault<
uint8_t>(201,
"scale", scale);
419926}
◆ Deserialize()
419928 {
419929 auto result = duckdb::shared_ptr<DecimalTypeInfo>(new DecimalTypeInfo());
419930 deserializer.ReadPropertyWithDefault<
uint8_t>(200,
"width", result->width);
419931 deserializer.ReadPropertyWithDefault<
uint8_t>(201,
"scale", result->scale);
419932 return std::move(result);
419933}
◆ Copy()
| shared_ptr< ExtraTypeInfo > duckdb::DecimalTypeInfo::Copy |
( |
| ) |
const |
|
overridevirtual |
Reimplemented from duckdb::ExtraTypeInfo.
72274 {
72275 return make_shared_ptr<DecimalTypeInfo>(*this);
72276}
◆ EqualsInternal()
| bool duckdb::DecimalTypeInfo::EqualsInternal |
( |
ExtraTypeInfo * | other_p | ) |
const |
|
overrideprotectedvirtual |
Reimplemented from duckdb::ExtraTypeInfo.
72269 {
72270 auto &other = other_p->Cast<DecimalTypeInfo>();
72271 return width == other.width && scale == other.scale;
72272}
The documentation for this struct was generated from the following file: