|
iceberg-cpp
|
#include <cstdint>#include <memory>#include <string>#include "iceberg/iceberg_export.h"#include "iceberg/result.h"#include "iceberg/type_fwd.h"Go to the source code of this file.
Functions | |
| Result< ManifestFile > | iceberg::CopyAppendManifest (const ManifestFile &manifest, const std::shared_ptr< FileIO > &file_io, const std::shared_ptr< Schema > &schema, const std::shared_ptr< PartitionSpec > &spec, int64_t snapshot_id, const std::string &output_path, int8_t format_version, SnapshotSummaryBuilder *summary_builder=nullptr) |
| Copy an append manifest with a new snapshot ID. | |
Internal utility functions for manifest operations.
| ICEBERG_EXPORT Result< ManifestFile > iceberg::CopyAppendManifest | ( | const ManifestFile & | manifest, |
| const std::shared_ptr< FileIO > & | file_io, | ||
| const std::shared_ptr< Schema > & | schema, | ||
| const std::shared_ptr< PartitionSpec > & | spec, | ||
| int64_t | snapshot_id, | ||
| const std::string & | output_path, | ||
| int8_t | format_version, | ||
| SnapshotSummaryBuilder * | summary_builder = nullptr |
||
| ) |
Copy an append manifest with a new snapshot ID.
This function copies a manifest file that contains only ADDED entries, rewriting it with a new snapshot ID. This is similar to Java's ManifestFiles.copyAppendManifest.
| manifest | The manifest file to copy |
| file_io | File IO implementation to use |
| schema | Table schema |
| spec | Partition spec for the manifest |
| snapshot_id | The new snapshot ID to assign to entries |
| output_path | Path where the new manifest will be written |
| format_version | Table format version |
| summary_builder | Optional summary builder to update with file metrics |