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

Method Deserialize

cpp/src/arrow/testing/gtest_util.cc:849–859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849Result<std::shared_ptr<DataType>> ExampleUuidType::Deserialize(
850 std::shared_ptr<DataType> storage_type, const std::string& serialized) const {
851 if (serialized != "uuid-serialized") {
852 return Status::Invalid("Type identifier did not match: '", serialized, "'");
853 }
854 if (!storage_type->Equals(*fixed_size_binary(16))) {
855 return Status::Invalid("Invalid storage type for UuidType: ",
856 storage_type->ToString());
857 }
858 return std::make_shared<ExampleUuidType>();
859}
860
861bool SmallintType::ExtensionEquals(const ExtensionType& other) const {
862 return (other.extension_name() == this->extension_name());

Callers

nothing calls this directly

Calls 5

fixed_size_binaryFunction · 0.85
listFunction · 0.85
InvalidFunction · 0.50
EqualsMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected