24#include <unordered_map>
42 std::shared_ptr<TransactionContext> ctx);
63 Kind
kind() const final {
return Kind::kUpdateStatistics; }
72 std::vector<std::pair<int64_t, std::shared_ptr<StatisticsFile>>> to_set;
73 std::vector<int64_t> to_remove;
81 std::unordered_map<int64_t, std::shared_ptr<StatisticsFile>> statistics_to_set_;
Base class for all kinds of table metadata updates.
Definition pending_update.h:41
Updates table statistics.
Definition update_statistics.h:39
UpdateStatistics & SetStatistics(std::shared_ptr< StatisticsFile > statistics_file)
Set statistics file for a snapshot.
Kind kind() const final
Return the kind of this pending update.
Definition update_statistics.h:63
bool IsRetryable() const override
Statistics updates are retryable.
Definition update_statistics.h:69
UpdateStatistics & RemoveStatistics(int64_t snapshot_id)
Remove statistics for a snapshot.
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_statistics.h:71