| 442 | |
| 443 | private: |
| 444 | FileSerializer(std::shared_ptr<ArrowOutputStream> sink, |
| 445 | std::shared_ptr<GroupNode> schema, |
| 446 | std::shared_ptr<WriterProperties> properties, |
| 447 | std::shared_ptr<const KeyValueMetadata> key_value_metadata) |
| 448 | : ParquetFileWriter::Contents(std::move(schema), std::move(key_value_metadata)), |
| 449 | sink_(std::move(sink)), |
| 450 | is_open_(true), |
| 451 | properties_(std::move(properties)), |
| 452 | num_row_groups_(0), |
| 453 | num_rows_(0), |
| 454 | metadata_(FileMetaDataBuilder::Make(&schema_, properties_)) { |
| 455 | PARQUET_ASSIGN_OR_THROW(int64_t position, sink_->Tell()); |
| 456 | if (position == 0) { |
| 457 | StartFile(); |
| 458 | } else { |
| 459 | throw ParquetException("Appending to file not implemented."); |
| 460 | } |
| 461 | } |
| 462 | |
| 463 | void CloseEncryptedFile(FileEncryptionProperties* file_encryption_properties) { |
| 464 | // Encrypted file with encrypted footer |
nothing calls this directly
no test coverage detected