|
iceberg-cpp
|
A snapshot with cached manifest loading capabilities. More...
#include <snapshot.h>
Public Member Functions | |
| SnapshotCache (const Snapshot *snapshot) | |
| const Snapshot & | snapshot () const |
| Get the underlying Snapshot reference. | |
| Result< std::span< ManifestFile > > | Manifests (std::shared_ptr< FileIO > file_io) const |
| Returns all ManifestFile instances for either data or delete manifests in this snapshot. | |
| Result< std::span< ManifestFile > > | DataManifests (std::shared_ptr< FileIO > file_io) const |
| Returns a ManifestFile for each data manifest in this snapshot. | |
| Result< std::span< ManifestFile > > | DeleteManifests (std::shared_ptr< FileIO > file_io) const |
| Returns a ManifestFile for each delete manifest in this snapshot. | |
A snapshot with cached manifest loading capabilities.
This class wraps a Snapshot pointer and provides lazy-loading of manifests.
| Result< std::span< ManifestFile > > iceberg::SnapshotCache::DataManifests | ( | std::shared_ptr< FileIO > | file_io | ) | const |
Returns a ManifestFile for each data manifest in this snapshot.
| file_io | The FileIO instance to use for reading the manifest list |
| Result< std::span< ManifestFile > > iceberg::SnapshotCache::DeleteManifests | ( | std::shared_ptr< FileIO > | file_io | ) | const |
Returns a ManifestFile for each delete manifest in this snapshot.
| file_io | The FileIO instance to use for reading the manifest list |
| Result< std::span< ManifestFile > > iceberg::SnapshotCache::Manifests | ( | std::shared_ptr< FileIO > | file_io | ) | const |
Returns all ManifestFile instances for either data or delete manifests in this snapshot.
| file_io | The FileIO instance to use for reading the manifest list |