| 1291 | } |
| 1292 | |
| 1293 | std::string FileMetaData::SerializeToString() const { |
| 1294 | // We need to pass in an initial size. Since it will automatically |
| 1295 | // increase the buffer size to hold the metadata, we just leave it 0. |
| 1296 | PARQUET_ASSIGN_OR_THROW(auto serializer, ::arrow::io::BufferOutputStream::Create(0)); |
| 1297 | WriteTo(serializer.get()); |
| 1298 | PARQUET_ASSIGN_OR_THROW(auto metadata_buffer, serializer->Finish()); |
| 1299 | return metadata_buffer->ToString(); |
| 1300 | } |
| 1301 | |
| 1302 | ApplicationVersion::ApplicationVersion(std::string application, int major, int minor, |
| 1303 | int patch) |