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

Requirement that the last assigned partition ID matches. More...

#include <table_requirement.h>

Inheritance diagram for iceberg::table::AssertLastAssignedPartitionId:
iceberg::TableRequirement

Public Member Functions

 AssertLastAssignedPartitionId (int32_t last_assigned_partition_id)
 
int32_t last_assigned_partition_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< TableRequirementClone () 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 the last assigned partition ID matches.

This ensures partition specs haven't been modified since the metadata was read.

Member Function Documentation

◆ Clone()

std::unique_ptr< TableRequirement > iceberg::table::AssertLastAssignedPartitionId::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::AssertLastAssignedPartitionId::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::AssertLastAssignedPartitionId::kind ( ) const
inlineoverridevirtual

Return the kind of requirement.

Implements iceberg::TableRequirement.

◆ Validate()

Status iceberg::table::AssertLastAssignedPartitionId::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 files: