| 35 | std::string Bool8Type::Serialize() const { return ""; } |
| 36 | |
| 37 | Result<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 | |
| 48 | std::shared_ptr<Array> Bool8Type::MakeArray(std::shared_ptr<ArrayData> data) const { |
| 49 | DCHECK_EQ(data->type->id(), Type::EXTENSION); |