| 95 | } |
| 96 | |
| 97 | Result<std::shared_ptr<Buffer>> SerializeRelation( |
| 98 | const acero::Declaration& declaration, ExtensionSet* ext_set, |
| 99 | const ConversionOptions& conversion_options) { |
| 100 | ARROW_ASSIGN_OR_RAISE(auto relation, ToProto(declaration, ext_set, conversion_options)); |
| 101 | std::string serialized = relation->SerializeAsString(); |
| 102 | return Buffer::FromString(std::move(serialized)); |
| 103 | } |
| 104 | |
| 105 | Result<acero::Declaration> DeserializeRelation( |
| 106 | const Buffer& buf, const ExtensionSet& ext_set, |
nothing calls this directly
no test coverage detected