iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iceberg::SnapshotReader Class Reference

Reads a snapshot's manifests, loading and caching its manifest list on first access. More...

#include <snapshot.h>

Public Member Functions

 SnapshotReader (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.
 

Detailed Description

Reads a snapshot's manifests, loading and caching its manifest list on first access.

Member Function Documentation

◆ DataManifests()

Result< std::span< ManifestFile > > iceberg::SnapshotReader::DataManifests ( std::shared_ptr< FileIO >  file_io) const

Returns a ManifestFile for each data manifest in this snapshot.

Parameters
file_ioThe FileIO instance to use for reading the manifest list
Returns
A span of ManifestFile instances, or an error

◆ DeleteManifests()

Result< std::span< ManifestFile > > iceberg::SnapshotReader::DeleteManifests ( std::shared_ptr< FileIO >  file_io) const

Returns a ManifestFile for each delete manifest in this snapshot.

Parameters
file_ioThe FileIO instance to use for reading the manifest list
Returns
A span of ManifestFile instances, or an error

◆ Manifests()

Result< std::span< ManifestFile > > iceberg::SnapshotReader::Manifests ( std::shared_ptr< FileIO >  file_io) const

Returns all ManifestFile instances for either data or delete manifests in this snapshot.

Parameters
file_ioThe FileIO instance to use for reading the manifest list
Returns
A span of ManifestFile instances, or an error

The documentation for this class was generated from the following file: