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