@@ -40,15 +40,13 @@ class ManifestCommittable {
4040 : ManifestCommittable(identifier, std::nullopt ) {}
4141
4242 ManifestCommittable (int64_t identifier, std::optional<int64_t > watermark)
43- : ManifestCommittable(identifier, watermark, {}, {}, {} ) {}
43+ : ManifestCommittable(identifier, watermark, {}, {}) {}
4444
4545 ManifestCommittable (int64_t identifier, std::optional<int64_t > watermark,
46- const std::map<int32_t , int64_t >& log_offsets,
4746 const std::map<std::string, std::string>& properties,
4847 const std::vector<std::shared_ptr<CommitMessage>>& commit_messages)
4948 : identifier_(identifier),
5049 watermark_ (watermark),
51- log_offsets_(log_offsets),
5250 properties_(properties),
5351 commit_messages_(commit_messages) {}
5452
@@ -60,10 +58,6 @@ class ManifestCommittable {
6058 return watermark_;
6159 }
6260
63- const std::map<int32_t , int64_t >& LogOffsets () const {
64- return log_offsets_;
65- }
66-
6761 const std::map<std::string, std::string>& Properties () const {
6862 return properties_;
6963 }
@@ -86,29 +80,22 @@ class ManifestCommittable {
8680 std::string watermark_str =
8781 watermark_ == std::nullopt ? " null" : std::to_string (watermark_.value ());
8882
89- std::vector<std::string> log_offsets_str;
90- log_offsets_str.reserve (log_offsets_.size ());
91- for (const auto & [key, value] : log_offsets_) {
92- log_offsets_str.emplace_back (fmt::format (" {}: {}" , key, value));
93- }
94-
9583 std::vector<std::string> properties_str;
9684 properties_str.reserve (properties_.size ());
9785 for (const auto & [key, value] : properties_) {
9886 properties_str.emplace_back (fmt::format (" {}: {}" , key, value));
9987 }
10088
10189 return fmt::format (
102- " ManifestCommittable {{identifier = {}, watermark = {}, logOffsets = {}, "
90+ " ManifestCommittable {{identifier = {}, watermark = {}, "
10391 " commitMessages = {}, properties = {}}}" ,
104- identifier_, watermark_str, fmt::join (log_offsets_str , " , " ),
105- fmt::join (commit_messages_str, " , " ), fmt::join ( properties_str, " , " ));
92+ identifier_, watermark_str, fmt::join (commit_messages_str , " , " ),
93+ fmt::join (properties_str, " , " ));
10694 }
10795
10896 private:
10997 int64_t identifier_;
11098 std::optional<int64_t > watermark_;
111- std::map<int32_t , int64_t > log_offsets_;
11299 std::map<std::string, std::string> properties_;
113100 std::vector<std::shared_ptr<CommitMessage>> commit_messages_;
114101};
0 commit comments