iceberg-cpp
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Friends | List of all members
iceberg::TableUpdate Class Referenceabstract

Base class for metadata update operations. More...

#include <table_update.h>

Inheritance diagram for iceberg::TableUpdate:
iceberg::table::AddPartitionSpec iceberg::table::AddSchema iceberg::table::AddSnapshot iceberg::table::AddSortOrder iceberg::table::AssignUUID iceberg::table::RemovePartitionSpecs iceberg::table::RemovePartitionStatistics iceberg::table::RemoveProperties iceberg::table::RemoveSchemas iceberg::table::RemoveSnapshotRef iceberg::table::RemoveSnapshots iceberg::table::RemoveStatistics iceberg::table::SetCurrentSchema iceberg::table::SetDefaultPartitionSpec iceberg::table::SetDefaultSortOrder iceberg::table::SetLocation iceberg::table::SetPartitionStatistics iceberg::table::SetProperties iceberg::table::SetSnapshotRef iceberg::table::SetStatistics iceberg::table::UpgradeFormatVersion

Public Types

enum class  Kind : uint8_t {
  kAssignUUID , kUpgradeFormatVersion , kAddSchema , kSetCurrentSchema ,
  kAddPartitionSpec , kSetDefaultPartitionSpec , kRemovePartitionSpecs , kRemoveSchemas ,
  kAddSortOrder , kSetDefaultSortOrder , kAddSnapshot , kRemoveSnapshots ,
  kRemoveSnapshotRef , kSetSnapshotRef , kSetProperties , kRemoveProperties ,
  kSetLocation , kSetStatistics , kRemoveStatistics , kSetPartitionStatistics ,
  kRemovePartitionStatistics
}
 

Public Member Functions

virtual Kind kind () const =0
 Return the kind of this update.
 
virtual void ApplyTo (TableMetadataBuilder &builder) const =0
 Apply this update to a TableMetadataBuilder.
 
virtual void GenerateRequirements (TableUpdateContext &context) const =0
 Generate update requirements for this metadata update.
 
virtual bool Equals (const TableUpdate &other) const =0
 Check equality with another TableUpdate.
 
virtual std::unique_ptr< TableUpdateClone () const =0
 Create a deep copy of this update.
 

Friends

bool operator== (const TableUpdate &lhs, const TableUpdate &rhs)
 Compare two TableUpdate instances for equality.
 

Detailed Description

Base class for metadata update operations.

Represents a change to table metadata. Each concrete subclass represents a specific type of update operation.

Member Function Documentation

◆ ApplyTo()

virtual void iceberg::TableUpdate::ApplyTo ( TableMetadataBuilder builder) const
pure virtual

◆ Clone()

virtual std::unique_ptr< TableUpdate > iceberg::TableUpdate::Clone ( ) const
pure virtual

◆ Equals()

virtual bool iceberg::TableUpdate::Equals ( const TableUpdate other) const
pure virtual

◆ GenerateRequirements()

virtual void iceberg::TableUpdate::GenerateRequirements ( TableUpdateContext context) const
pure virtual

◆ kind()

virtual Kind iceberg::TableUpdate::kind ( ) const
pure virtual

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