| 1265 | } |
| 1266 | |
| 1267 | std::string FileMetaData::SerializeToString() const { |
| 1268 | // We need to pass in an initial size. Since it will automatically |
| 1269 | // increase the buffer size to hold the metadata, we just leave it 0. |
| 1270 | PARQUET_ASSIGN_OR_THROW(auto serializer, ::arrow::io::BufferOutputStream::Create(0)); |
| 1271 | WriteTo(serializer.get()); |
| 1272 | PARQUET_ASSIGN_OR_THROW(auto metadata_buffer, serializer->Finish()); |
| 1273 | return metadata_buffer->ToString(); |
| 1274 | } |
| 1275 | |
| 1276 | ApplicationVersion::ApplicationVersion(std::string application, int major, int minor, |
| 1277 | int patch) |