24#include <unordered_map>
28#include "iceberg/iceberg_export.h"
29#include "iceberg/result.h"
41 static Result<std::shared_ptr<UpdateStatistics>> Make(
42 std::shared_ptr<TransactionContext> ctx);
53 UpdateStatistics& SetStatistics(std::shared_ptr<StatisticsFile> statistics_file);
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;
76 Result<ApplyResult> Apply();
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
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
Definition update_statistics.h:71