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

A snapshot with cached manifest loading capabilities. More...

#include <snapshot.h>

Public Member Functions

 SnapshotCache (const Snapshot *snapshot)
 
const Snapshotsnapshot () 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

A snapshot with cached manifest loading capabilities.

This class wraps a Snapshot pointer and provides lazy-loading of manifests.

Member Function Documentation

◆ DataManifests()

Result< std::span< ManifestFile > > iceberg::SnapshotCache::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::SnapshotCache::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::SnapshotCache::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 files: