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

Method Deserialize

cpp/src/arrow/extension/bool8.cc:37–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35std::string Bool8Type::Serialize() const { return ""; }
36
37Result<std::shared_ptr<DataType>> Bool8Type::Deserialize(
38 std::shared_ptr<DataType> storage_type, const std::string& serialized_data) const {
39 if (storage_type->id() != Type::INT8) {
40 return Status::Invalid("Expected INT8 storage type, got ", storage_type->ToString());
41 }
42 if (serialized_data != "") {
43 return Status::Invalid("Serialize data must be empty, got ", serialized_data);
44 }
45 return bool8();
46}
47
48std::shared_ptr<Array> Bool8Type::MakeArray(std::shared_ptr<ArrayData> data) const {
49 DCHECK_EQ(data->type->id(), Type::EXTENSION);

Callers

nothing calls this directly

Calls 4

bool8Function · 0.85
InvalidFunction · 0.50
idMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected