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

Method Deserialize

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

Source from the content-addressed store, hash-verified

851}
852
853Result<std::shared_ptr<DataType>> ExampleUuidType::Deserialize(
854 std::shared_ptr<DataType> storage_type, const std::string& serialized) const {
855 if (serialized != "uuid-serialized") {
856 return Status::Invalid("Type identifier did not match: '", serialized, "'");
857 }
858 if (!storage_type->Equals(*fixed_size_binary(16))) {
859 return Status::Invalid("Invalid storage type for UuidType: ",
860 storage_type->ToString());
861 }
862 return std::make_shared<ExampleUuidType>();
863}
864
865bool SmallintType::ExtensionEquals(const ExtensionType& other) const {
866 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