MCPcopy Create free account
hub / github.com/apache/arrow / Deserialize

Method Deserialize

cpp/src/arrow/extension/uuid.cc:38–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38Result<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
50std::string UuidType::ToString(bool show_metadata) const {
51 std::stringstream ss;

Callers

nothing calls this directly

Calls 3

InvalidFunction · 0.50
emptyMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected