25#include <unordered_map>
26#include <unordered_set>
42 std::shared_ptr<TransactionContext> ctx);
47 std::unordered_map<std::string, std::string> updates;
48 std::unordered_set<std::string> removals;
49 std::optional<int8_t> format_version;
69 Kind
kind() const final {
return Kind::kUpdateProperties; }
78 std::unordered_map<std::string, std::string> updates_;
79 std::unordered_set<std::string> removals_;
80 std::optional<int8_t> format_version_;
Base class for all kinds of table metadata updates.
Definition pending_update.h:41
Updates table properties.
Definition update_properties.h:39
UpdateProperties & Set(const std::string &key, const std::string &value)
Sets a property key to a specified value.
bool IsRetryable() const override
Whether this update can be retried after a commit conflict.
Definition update_properties.h:70
UpdateProperties & Remove(const std::string &key)
Marks a property for removal.
Result< ApplyResult > Apply()
Apply the pending changes and return the updates and removals.
Kind kind() const final
Return the kind of this pending update.
Definition update_properties.h:69
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.
Definition update_properties.h:46