| 36 | } |
| 37 | |
| 38 | Result<std::shared_ptr<DataType>> UuidType::Deserialize( |
| 39 | std::shared_ptr<DataType> storage_type, const std::string& serialized) const { |
| 40 | if (!serialized.empty()) { |
| 41 | return Status::Invalid("Unexpected serialized metadata: '", serialized, "'"); |
| 42 | } |
| 43 | if (!IsSupportedStorageType(storage_type)) { |
| 44 | return Status::Invalid("Invalid storage type for UuidType: ", |
| 45 | storage_type->ToString()); |
| 46 | } |
| 47 | return std::make_shared<UuidType>(); |
| 48 | } |
| 49 | |
| 50 | std::string UuidType::ToString(bool show_metadata) const { |
| 51 | std::stringstream ss; |