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

Requirement that a reference (branch or tag) points to a specific snapshot. More...

#include <table_requirement.h>

Inheritance diagram for iceberg::table::AssertRefSnapshotID:
iceberg::TableRequirement

Public Member Functions

 AssertRefSnapshotID (std::string ref_name, std::optional< int64_t > snapshot_id)
 
const std::string & ref_name () const
 
const std::optional< int64_t > & snapshot_id () const
 
Kind kind () const override
 Return the kind of requirement.
 
Status Validate (const TableMetadata *base) const override
 Validate this requirement against table metadata.
 
bool Equals (const TableRequirement &other) const override
 Check equality with another TableRequirement.
 
std::unique_ptr< TableRequirement > Clone () const override
 Create a deep copy of this requirement.
 

Additional Inherited Members

- Public Types inherited from iceberg::TableRequirement
enum class  Kind : uint8_t {
  kAssertDoesNotExist , kAssertUUID , kAssertRefSnapshotID , kAssertLastAssignedFieldId ,
  kAssertCurrentSchemaID , kAssertLastAssignedPartitionId , kAssertDefaultSpecID , kAssertDefaultSortOrderID
}
 

Detailed Description

Requirement that a reference (branch or tag) points to a specific snapshot.

This requirement validates that a named reference (branch or tag) either:

Member Function Documentation

◆ Clone()

std::unique_ptr< TableRequirement > iceberg::table::AssertRefSnapshotID::Clone ( ) const
inlineoverridevirtual

Create a deep copy of this requirement.

Returns
A unique_ptr to a new TableRequirement that is a copy of this one

Implements iceberg::TableRequirement.

◆ Equals()

bool iceberg::table::AssertRefSnapshotID::Equals ( const TableRequirement &  other) const
inlineoverridevirtual

Check equality with another TableRequirement.

Parameters
otherThe requirement to compare with
Returns
true if the requirements are equal, false otherwise

Implements iceberg::TableRequirement.

◆ kind()

Kind iceberg::table::AssertRefSnapshotID::kind ( ) const
inlineoverridevirtual

Return the kind of requirement.

Implements iceberg::TableRequirement.

◆ Validate()

Status iceberg::table::AssertRefSnapshotID::Validate ( const TableMetadata *  base) const
overridevirtual

Validate this requirement against table metadata.

Parameters
baseThe base table metadata to validate against (may be nullptr)
Returns
Status indicating success or failure with error details

Implements iceberg::TableRequirement.


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