40 std::shared_ptr<TransactionContext> ctx);
53 Kind
kind() const final {
return Kind::kSetSnapshot; }
60 explicit SetSnapshot(std::shared_ptr<TransactionContext> ctx);
68 std::optional<int64_t> target_snapshot_id_;
69 bool is_rollback_{
false};
Base class for all kinds of table metadata updates.
Definition pending_update.h:41
Sets the current snapshot directly or by rolling back.
Definition set_snapshot.h:37
Result< int64_t > Apply()
Apply the pending changes and return the target snapshot ID.
SetSnapshot & RollbackTo(int64_t snapshot_id)
Rollback table's state to a specific Snapshot identified by id.
SetSnapshot & SetCurrentSnapshot(int64_t snapshot_id)
Sets the table's current state to a specific Snapshot identified by id.
Kind kind() const final
Return the kind of this pending update.
Definition set_snapshot.h:53
SetSnapshot & RollbackToTime(int64_t timestamp_ms)
Rolls back the table's state to the last Snapshot before the given timestamp.
bool IsRetryable() const override
Whether this update can be retried after a commit conflict.
Definition set_snapshot.h:54
Define symbol visibility macros for core Iceberg APIs.
Core Apache Iceberg C++ APIs.
Definition arrow_io_util.h:33
std::expected< T, E > Result
Result alias.
Definition result.h:88
Define Result, Status, and error helpers.