iceberg-cpp
Loading...
Searching...
No Matches
Protected Member Functions | Protected Attributes | List of all members
iceberg::UpdateTestBase Class Reference

Base test fixture for table update operations. More...

#include <update_test_base.h>

Inheritance diagram for iceberg::UpdateTestBase:
iceberg::ExpireSnapshotsCleanupTest iceberg::ExpireSnapshotsTest iceberg::FastAppendTest iceberg::MinimalUpdateTestBase iceberg::SnapshotManagerTest iceberg::TransactionRetryTest iceberg::TransactionTest iceberg::UpdateLocationTest iceberg::UpdateMappingTest iceberg::UpdatePartitionStatisticsTest iceberg::UpdatePropertiesTest iceberg::UpdateSchemaTest iceberg::UpdateSortOrderTest iceberg::UpdateStatisticsTest

Protected Member Functions

virtual std::string MetadataResource () const
 
virtual std::string TableName () const
 
void SetUp () override
 
void InitializeFileIO ()
 Initialize file IO and create necessary directories.
 
void RegisterTableFromResource (const std::string &resource_name)
 Register a table from a metadata resource file.
 
std::shared_ptr< TableMetadataReloadMetadata ()
 Reload the table from catalog and return its metadata.
 
void ExpectRef (const std::string &name, SnapshotRefType type, int64_t snapshot_id)
 Assert that a ref exists with the given type and snapshot id.
 
void ExpectBranch (const std::string &name, int64_t snapshot_id)
 
void ExpectTag (const std::string &name, int64_t snapshot_id)
 
void ExpectNoRef (const std::string &name)
 Assert that a ref does not exist.
 
void ExpectCurrentSnapshot (int64_t snapshot_id)
 Assert the current snapshot id after reloading.
 
template<typename T >
void ExpectCommitOk (const T &result)
 Assert that a commit succeeded.
 
template<typename T >
void ExpectCommitError (const T &result, ErrorKind kind, const std::string &message)
 Assert that a commit failed with the given error kind and message substring.
 

Protected Attributes

TableIdentifier table_ident_
 
std::string table_location_
 
std::shared_ptr< FileIOfile_io_
 
std::shared_ptr< InMemoryCatalogcatalog_
 
std::shared_ptr< Tabletable_
 

Detailed Description

Base test fixture for table update operations.

Member Function Documentation

◆ RegisterTableFromResource()

void iceberg::UpdateTestBase::RegisterTableFromResource ( const std::string &  resource_name)
inlineprotected

Register a table from a metadata resource file.

Parameters
resource_nameThe name of the metadata resource file

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