blob: 1ab7543d808f3c6777f8fbd58f53e949ef70c6cb [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>iceberg-cpp: iceberg/snapshot.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">iceberg-cpp
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_f51fe74ea6bc2b1b900619895eaa63be.html">iceberg</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">snapshot.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * distributed with this work for additional information</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> * with the License. You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> *</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> *</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * software distributed under the License is distributed on an</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * KIND, either express or implied. See the License for the</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * specific language governing permissions and limitations</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> * under the License.</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> */</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;optional&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;span&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;variant&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &quot;iceberg/iceberg_export.h&quot;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &quot;<a class="code" href="manifest__list_8h.html">iceberg/manifest/manifest_list.h</a>&quot;</span></div>
<div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include &quot;iceberg/result.h&quot;</span></div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include &quot;<a class="code" href="type__fwd_8h.html">iceberg/type_fwd.h</a>&quot;</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span><span class="preprocessor">#include &quot;<a class="code" href="lazy_8h.html">iceberg/util/lazy.h</a>&quot;</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span><span class="preprocessor">#include &quot;iceberg/util/timepoint.h&quot;</span></div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span><span class="keyword">namespace </span>iceberg {</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"> 38</span> </div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span><span class="keyword">enum class</span> SnapshotRefType {</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> kBranch,</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> kTag,</div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span>};</div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> </div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span>ICEBERG_EXPORT <span class="keyword">constexpr</span> std::string_view ToString(SnapshotRefType type) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keywordflow">switch</span> (type) {</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> <span class="keywordflow">case</span> SnapshotRefType::kBranch:</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"> 53</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;branch&quot;</span>;</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keywordflow">case</span> SnapshotRefType::kTag:</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keywordflow">return</span> <span class="stringliteral">&quot;tag&quot;</span>;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> }</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> std::unreachable();</div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span>}</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span>ICEBERG_EXPORT <span class="keyword">constexpr</span> Result&lt;SnapshotRefType&gt; SnapshotRefTypeFromString(</div>
<div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> std::string_view str) <span class="keyword">noexcept</span> {</div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keywordflow">if</span> (str == <span class="stringliteral">&quot;branch&quot;</span>) <span class="keywordflow">return</span> SnapshotRefType::kBranch;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> <span class="keywordflow">if</span> (str == <span class="stringliteral">&quot;tag&quot;</span>) <span class="keywordflow">return</span> SnapshotRefType::kTag;</div>
<div class="line"><a id="l00064" name="l00064"></a><span class="lineno"> 64</span> <span class="keywordflow">return</span> InvalidArgument(<span class="stringliteral">&quot;Invalid snapshot reference type: {}&quot;</span>, str);</div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span>}</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="foldopen" id="foldopen00068" data-start="{" data-end="};">
<div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef.html"> 68</a></span><span class="keyword">struct </span>ICEBERG_EXPORT <a class="code hl_struct" href="structiceberg_1_1SnapshotRef.html">SnapshotRef</a> {</div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> <span class="keyword">static</span> <span class="keyword">constexpr</span> std::string_view kMainBranch = <span class="stringliteral">&quot;main&quot;</span>;</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div>
<div class="foldopen" id="foldopen00071" data-start="{" data-end="};">
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef_1_1Branch.html"> 71</a></span> <span class="keyword">struct </span>ICEBERG_EXPORT <a class="code hl_struct" href="structiceberg_1_1SnapshotRef_1_1Branch.html">Branch</a> {</div>
<div class="line"><a id="l00075" name="l00075"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef_1_1Branch.html#a4e263cc1792d5e41e495fc1d0d22c48a"> 75</a></span> std::optional&lt;int32_t&gt; <a class="code hl_variable" href="structiceberg_1_1SnapshotRef_1_1Branch.html#a4e263cc1792d5e41e495fc1d0d22c48a">min_snapshots_to_keep</a>;</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef_1_1Branch.html#a51b4eb07baf51b45ae89bc533092db3f"> 79</a></span> std::optional&lt;int64_t&gt; <a class="code hl_variable" href="structiceberg_1_1SnapshotRef_1_1Branch.html#a51b4eb07baf51b45ae89bc533092db3f">max_snapshot_age_ms</a>;</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef_1_1Branch.html#a66bddbcaaf9655ed5c4528ecab20d57e"> 83</a></span> std::optional&lt;int64_t&gt; <a class="code hl_variable" href="structiceberg_1_1SnapshotRef_1_1Branch.html#a66bddbcaaf9655ed5c4528ecab20d57e">max_ref_age_ms</a>;</div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div>
<div class="foldopen" id="foldopen00086" data-start="{" data-end="};">
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef_1_1Branch.html#a72566c422b25279bd143b8b39006e506"> 86</a></span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code hl_friend" href="structiceberg_1_1SnapshotRef_1_1Branch.html#a72566c422b25279bd143b8b39006e506">operator==</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1SnapshotRef_1_1Branch.html">Branch</a>&amp; lhs, <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1SnapshotRef_1_1Branch.html">Branch</a>&amp; rhs) {</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keywordflow">return</span> lhs.Equals(rhs);</div>
<div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> }</div>
</div>
<div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"> 90</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00092" name="l00092"></a><span class="lineno"> 92</span> <span class="keywordtype">bool</span> Equals(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1SnapshotRef_1_1Branch.html">Branch</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> };</div>
</div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> </div>
<div class="foldopen" id="foldopen00095" data-start="{" data-end="};">
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef_1_1Tag.html"> 95</a></span> <span class="keyword">struct </span>ICEBERG_EXPORT <a class="code hl_struct" href="structiceberg_1_1SnapshotRef_1_1Tag.html">Tag</a> {</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef_1_1Tag.html#a51a7a1608df43d8eff2cc8cd1600420e"> 99</a></span> std::optional&lt;int64_t&gt; <a class="code hl_variable" href="structiceberg_1_1SnapshotRef_1_1Tag.html#a51a7a1608df43d8eff2cc8cd1600420e">max_ref_age_ms</a>;</div>
<div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef_1_1Tag.html#ac2b7639cd47e0904f7e8bd8ca4efe367"> 102</a></span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code hl_friend" href="structiceberg_1_1SnapshotRef_1_1Tag.html#ac2b7639cd47e0904f7e8bd8ca4efe367">operator==</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1SnapshotRef_1_1Tag.html">Tag</a>&amp; lhs, <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1SnapshotRef_1_1Tag.html">Tag</a>&amp; rhs) { <span class="keywordflow">return</span> lhs.Equals(rhs); }</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keywordtype">bool</span> Equals(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1SnapshotRef_1_1Tag.html">Tag</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> };</div>
</div>
<div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef.html#a63ac8ff0babbe68126fb52e54e7e1adb"> 110</a></span> int64_t <a class="code hl_variable" href="structiceberg_1_1SnapshotRef.html#a63ac8ff0babbe68126fb52e54e7e1adb">snapshot_id</a>;</div>
<div class="line"><a id="l00112" name="l00112"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef.html#ae89f6fb03dacc07e6cde3c81a133add1"> 112</a></span> std::variant&lt;Branch, Tag&gt; <a class="code hl_variable" href="structiceberg_1_1SnapshotRef.html#ae89f6fb03dacc07e6cde3c81a133add1">retention</a>;</div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> SnapshotRefType type() const noexcept;</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <a class="code hl_namespace" href="namespacestd.html">std</a>::optional&lt;int64_t&gt; max_ref_age_ms() const noexcept;</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> static Result&lt;<a class="code hl_namespace" href="namespacestd.html">std</a>::unique_ptr&lt;<a class="code hl_struct" href="structiceberg_1_1SnapshotRef.html">SnapshotRef</a>&gt;&gt; MakeBranch(</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> int64_t snapshot_id, <a class="code hl_namespace" href="namespacestd.html">std</a>::optional&lt;int32_t&gt; min_snapshots_to_keep = <a class="code hl_namespace" href="namespacestd.html">std</a>::nullopt,</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <a class="code hl_namespace" href="namespacestd.html">std</a>::optional&lt;int64_t&gt; max_snapshot_age_ms = <a class="code hl_namespace" href="namespacestd.html">std</a>::nullopt,</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <a class="code hl_namespace" href="namespacestd.html">std</a>::optional&lt;int64_t&gt; max_ref_age_ms = <a class="code hl_namespace" href="namespacestd.html">std</a>::nullopt);</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> static Result&lt;<a class="code hl_namespace" href="namespacestd.html">std</a>::unique_ptr&lt;<a class="code hl_struct" href="structiceberg_1_1SnapshotRef.html">SnapshotRef</a>&gt;&gt; MakeTag(</div>
<div class="line"><a id="l00138" name="l00138"></a><span class="lineno"> 138</span> int64_t snapshot_id, <a class="code hl_namespace" href="namespacestd.html">std</a>::optional&lt;int64_t&gt; max_ref_age_ms = <a class="code hl_namespace" href="namespacestd.html">std</a>::nullopt);</div>
<div class="line"><a id="l00139" name="l00139"></a><span class="lineno"> 139</span> </div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <a class="code hl_namespace" href="namespacestd.html">std</a>::unique_ptr&lt;<a class="code hl_struct" href="structiceberg_1_1SnapshotRef.html">SnapshotRef</a>&gt; Clone(</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <a class="code hl_namespace" href="namespacestd.html">std</a>::optional&lt;int64_t&gt; new_snapshot_id = <a class="code hl_namespace" href="namespacestd.html">std</a>::nullopt) const;</div>
<div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> </div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> Status Validate() const;</div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div>
<div class="foldopen" id="foldopen00152" data-start="{" data-end="};">
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotRef.html#a01bf700dbfb0e7307921d30795db8819"> 152</a></span> friend <span class="keywordtype">bool</span> operator==(const <a class="code hl_struct" href="structiceberg_1_1SnapshotRef.html">SnapshotRef</a>&amp; lhs, const <a class="code hl_struct" href="structiceberg_1_1SnapshotRef.html">SnapshotRef</a>&amp; rhs) {</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> <span class="keywordflow">return</span> lhs.Equals(rhs);</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> }</div>
</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="keywordtype">bool</span> Equals(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1SnapshotRef.html">SnapshotRef</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span>};</div>
</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div>
<div class="foldopen" id="foldopen00162" data-start="{" data-end="};">
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html"> 162</a></span><span class="keyword">struct </span>ICEBERG_EXPORT <a class="code hl_struct" href="structiceberg_1_1SnapshotSummaryFields.html">SnapshotSummaryFields</a> {</div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#ada7f5effa8afb4169e68ed2639bd4fde"> 164</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kOperation = <span class="stringliteral">&quot;operation&quot;</span>;</div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a2b56093fd8bb220fdb55834b1a23e61b"> 166</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kFirstRowId = <span class="stringliteral">&quot;first-row-id&quot;</span>;</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a4e4fac2b70ad11701e6e8800c6508833"> 168</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAddedRows = <span class="stringliteral">&quot;added-rows&quot;</span>;</div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> </div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a3f3613d6bdd73558894d946e23bd81e1"> 173</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAddedDataFiles = <span class="stringliteral">&quot;added-data-files&quot;</span>;</div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#aa801b5416617926fbfc8b09cbcb10cb0"> 175</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kDeletedDataFiles = <span class="stringliteral">&quot;deleted-data-files&quot;</span>;</div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#ad314de2d955f77cd7d14ddccb6370134"> 177</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kTotalDataFiles = <span class="stringliteral">&quot;total-data-files&quot;</span>;</div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#afde83a76d056e4f089d86157895beb80"> 180</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAddedDeleteFiles = <span class="stringliteral">&quot;added-delete-files&quot;</span>;</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a4c932bf17d7418013939fdd7b802f123"> 182</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAddedEqDeleteFiles = <span class="stringliteral">&quot;added-equality-delete-files&quot;</span>;</div>
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a94fa76aad9462ef4f9e3e069c2a24645"> 184</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kRemovedEqDeleteFiles = <span class="stringliteral">&quot;removed-equality-delete-files&quot;</span>;</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a9a996f8d2334fa3734da67fe02914038"> 186</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAddedPosDeleteFiles = <span class="stringliteral">&quot;added-position-delete-files&quot;</span>;</div>
<div class="line"><a id="l00188" name="l00188"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#afdde47b2cffe3f60e169b754bbfe439c"> 188</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kRemovedPosDeleteFiles =</div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="stringliteral">&quot;removed-position-delete-files&quot;</span>;</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a5080e87bce473ae588c774f534e2001a"> 191</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAddedDVs = <span class="stringliteral">&quot;added-dvs&quot;</span>;</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a303e5e4d65a75816ee5c883e146bc4e5"> 193</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kRemovedDVs = <span class="stringliteral">&quot;removed-dvs&quot;</span>;</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a9d24f8c6cbc618551b06cbb442fc3648"> 196</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kRemovedDeleteFiles = <span class="stringliteral">&quot;removed-delete-files&quot;</span>;</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a65fbe108a5aa316dad4977e789e4e71f"> 199</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kTotalDeleteFiles = <span class="stringliteral">&quot;total-delete-files&quot;</span>;</div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#ade62cef67f66999addb7dd3651c0a690"> 201</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAddedRecords = <span class="stringliteral">&quot;added-records&quot;</span>;</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#ac33705014c833f33714170c7f14ccae6"> 203</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kDeletedRecords = <span class="stringliteral">&quot;deleted-records&quot;</span>;</div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a80def77f8cc4f4383fb384334cd8cd27"> 205</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kTotalRecords = <span class="stringliteral">&quot;total-records&quot;</span>;</div>
<div class="line"><a id="l00207" name="l00207"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a61fab448650bbf4705de2961589bf71f"> 207</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAddedFileSize = <span class="stringliteral">&quot;added-files-size&quot;</span>;</div>
<div class="line"><a id="l00209" name="l00209"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#accb9819bc2282a67974f8cb9c3c0082c"> 209</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kRemovedFileSize = <span class="stringliteral">&quot;removed-files-size&quot;</span>;</div>
<div class="line"><a id="l00211" name="l00211"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a5d0e0fdd138a86f767d89498e251cf00"> 211</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kTotalFileSize = <span class="stringliteral">&quot;total-files-size&quot;</span>;</div>
<div class="line"><a id="l00213" name="l00213"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a380bd771050985107b9eedf47ada2971"> 213</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAddedPosDeletes = <span class="stringliteral">&quot;added-position-deletes&quot;</span>;</div>
<div class="line"><a id="l00215" name="l00215"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a7ea7416ee086d74d4ccb7259d17f55ab"> 215</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kRemovedPosDeletes = <span class="stringliteral">&quot;removed-position-deletes&quot;</span>;</div>
<div class="line"><a id="l00217" name="l00217"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a13125d9c90d79c55a71fc93b48d6f8a3"> 217</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kTotalPosDeletes = <span class="stringliteral">&quot;total-position-deletes&quot;</span>;</div>
<div class="line"><a id="l00219" name="l00219"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a98f4256862a48cea377ecc2da11d48d3"> 219</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAddedEqDeletes = <span class="stringliteral">&quot;added-equality-deletes&quot;</span>;</div>
<div class="line"><a id="l00221" name="l00221"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#adf57b3f74d94d4061040647dcb40de0a"> 221</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kRemovedEqDeletes = <span class="stringliteral">&quot;removed-equality-deletes&quot;</span>;</div>
<div class="line"><a id="l00223" name="l00223"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a12a98242c22498ab0a06257d817342c8"> 223</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kTotalEqDeletes = <span class="stringliteral">&quot;total-equality-deletes&quot;</span>;</div>
<div class="line"><a id="l00226" name="l00226"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#aedd02877d175b0dfa88e9e5219ffd395"> 226</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kDeletedDuplicatedFiles = <span class="stringliteral">&quot;deleted-duplicate-files&quot;</span>;</div>
<div class="line"><a id="l00228" name="l00228"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a3ec7042a3a98ef42acf4585f3188445a"> 228</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kChangedPartitionCountProp = <span class="stringliteral">&quot;changed-partition-count&quot;</span>;</div>
<div class="line"><a id="l00230" name="l00230"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a5a1161c5b716f77c7de652fbc7953e81"> 230</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kManifestsCreated = <span class="stringliteral">&quot;manifests-created&quot;</span>;</div>
<div class="line"><a id="l00232" name="l00232"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#ab525d5ecc8f2e18307a2f3bac04e4b7e"> 232</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kManifestsKept = <span class="stringliteral">&quot;manifests-kept&quot;</span>;</div>
<div class="line"><a id="l00234" name="l00234"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#ac64b1239d07fa9f2973980b67e0bd0c2"> 234</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kManifestsReplaced = <span class="stringliteral">&quot;manifests-replaced&quot;</span>;</div>
<div class="line"><a id="l00236" name="l00236"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a1887f72168261587466ae196542f483d"> 236</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kEntriesProcessed = <span class="stringliteral">&quot;entries-processed&quot;</span>;</div>
<div class="line"><a id="l00238" name="l00238"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#af3e791ce37cdfa4db991281e1c517c48"> 238</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kChangedPartitionPrefix = <span class="stringliteral">&quot;partitions.&quot;</span>;</div>
<div class="line"><a id="l00240" name="l00240"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#ad878f008f1103bfe646a9a794f607bd3"> 240</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kPartitionSummaryProp = <span class="stringliteral">&quot;partition-summaries-included&quot;</span>;</div>
<div class="line"><a id="l00241" name="l00241"></a><span class="lineno"> 241</span> </div>
<div class="line"><a id="l00243" name="l00243"></a><span class="lineno"> 243</span> </div>
<div class="line"><a id="l00245" name="l00245"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#afc7f6deb2bb4a1bf4b502dccd25966e0"> 245</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kWAPId = <span class="stringliteral">&quot;wap.id&quot;</span>;</div>
<div class="line"><a id="l00247" name="l00247"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#af9a33f3042070032e8c3e1c8547f51a0"> 247</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kPublishedWAPId = <span class="stringliteral">&quot;published-wap-id&quot;</span>;</div>
<div class="line"><a id="l00249" name="l00249"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a39d6322a77f82167dba5cc97c6c44bc1"> 249</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kSourceSnapshotId = <span class="stringliteral">&quot;source-snapshot-id&quot;</span>;</div>
<div class="line"><a id="l00251" name="l00251"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a33984769c91862036640e65730d608f4"> 251</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kEngineName = <span class="stringliteral">&quot;engine-name&quot;</span>;</div>
<div class="line"><a id="l00253" name="l00253"></a><span class="lineno"><a class="line" href="structiceberg_1_1SnapshotSummaryFields.html#a7d43f0413e29fcd04c72b2b268505035"> 253</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kEngineVersion = <span class="stringliteral">&quot;engine-version&quot;</span>;</div>
<div class="line"><a id="l00254" name="l00254"></a><span class="lineno"> 254</span>};</div>
</div>
<div class="line"><a id="l00255" name="l00255"></a><span class="lineno"> 255</span> </div>
<div class="foldopen" id="foldopen00260" data-start="{" data-end="};">
<div class="line"><a id="l00260" name="l00260"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotSummaryBuilder.html"> 260</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1SnapshotSummaryBuilder.html">SnapshotSummaryBuilder</a> {</div>
<div class="line"><a id="l00261" name="l00261"></a><span class="lineno"> 261</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00263" name="l00263"></a><span class="lineno"> 263</span> <span class="keyword">class </span>UpdateMetrics {</div>
<div class="line"><a id="l00264" name="l00264"></a><span class="lineno"> 264</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00265" name="l00265"></a><span class="lineno"> 265</span> <span class="keywordtype">void</span> Clear();</div>
<div class="line"><a id="l00266" name="l00266"></a><span class="lineno"> 266</span> <span class="keywordtype">void</span> AddTo(std::unordered_map&lt;std::string, std::string&gt;&amp; builder) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00267" name="l00267"></a><span class="lineno"> 267</span> <span class="keywordtype">void</span> AddedFile(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1DataFile.html">DataFile</a>&amp; file);</div>
<div class="line"><a id="l00268" name="l00268"></a><span class="lineno"> 268</span> <span class="keywordtype">void</span> RemovedFile(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1DataFile.html">DataFile</a>&amp; file);</div>
<div class="line"><a id="l00269" name="l00269"></a><span class="lineno"> 269</span> <span class="keywordtype">void</span> AddedManifest(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1ManifestFile.html">ManifestFile</a>&amp; manifest);</div>
<div class="line"><a id="l00270" name="l00270"></a><span class="lineno"> 270</span> <span class="keywordtype">void</span> Merge(<span class="keyword">const</span> UpdateMetrics&amp; other);</div>
<div class="line"><a id="l00271" name="l00271"></a><span class="lineno"> 271</span> </div>
<div class="line"><a id="l00272" name="l00272"></a><span class="lineno"> 272</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00273" name="l00273"></a><span class="lineno"> 273</span> int64_t added_size_{0};</div>
<div class="line"><a id="l00274" name="l00274"></a><span class="lineno"> 274</span> int64_t removed_size_{0};</div>
<div class="line"><a id="l00275" name="l00275"></a><span class="lineno"> 275</span> int32_t added_files_{0};</div>
<div class="line"><a id="l00276" name="l00276"></a><span class="lineno"> 276</span> int32_t removed_files_{0};</div>
<div class="line"><a id="l00277" name="l00277"></a><span class="lineno"> 277</span> int32_t added_eq_delete_files_{0};</div>
<div class="line"><a id="l00278" name="l00278"></a><span class="lineno"> 278</span> int32_t removed_eq_delete_files_{0};</div>
<div class="line"><a id="l00279" name="l00279"></a><span class="lineno"> 279</span> int32_t added_pos_delete_files_{0};</div>
<div class="line"><a id="l00280" name="l00280"></a><span class="lineno"> 280</span> int32_t removed_pos_delete_files_{0};</div>
<div class="line"><a id="l00281" name="l00281"></a><span class="lineno"> 281</span> int32_t added_dvs_{0};</div>
<div class="line"><a id="l00282" name="l00282"></a><span class="lineno"> 282</span> int32_t removed_dvs_{0};</div>
<div class="line"><a id="l00283" name="l00283"></a><span class="lineno"> 283</span> int32_t added_delete_files_{0};</div>
<div class="line"><a id="l00284" name="l00284"></a><span class="lineno"> 284</span> int32_t removed_delete_files_{0};</div>
<div class="line"><a id="l00285" name="l00285"></a><span class="lineno"> 285</span> int64_t added_records_{0};</div>
<div class="line"><a id="l00286" name="l00286"></a><span class="lineno"> 286</span> int64_t deleted_records_{0};</div>
<div class="line"><a id="l00287" name="l00287"></a><span class="lineno"> 287</span> int64_t added_pos_deletes_{0};</div>
<div class="line"><a id="l00288" name="l00288"></a><span class="lineno"> 288</span> int64_t removed_pos_deletes_{0};</div>
<div class="line"><a id="l00289" name="l00289"></a><span class="lineno"> 289</span> int64_t added_eq_deletes_{0};</div>
<div class="line"><a id="l00290" name="l00290"></a><span class="lineno"> 290</span> int64_t removed_eq_deletes_{0};</div>
<div class="line"><a id="l00291" name="l00291"></a><span class="lineno"> 291</span> <span class="keywordtype">bool</span> trust_size_and_delete_counts_{<span class="keyword">true</span>};</div>
<div class="line"><a id="l00292" name="l00292"></a><span class="lineno"> 292</span> };</div>
<div class="line"><a id="l00293" name="l00293"></a><span class="lineno"> 293</span> </div>
<div class="line"><a id="l00294" name="l00294"></a><span class="lineno"> 294</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00295" name="l00295"></a><span class="lineno"> 295</span> <a class="code hl_class" href="classiceberg_1_1SnapshotSummaryBuilder.html">SnapshotSummaryBuilder</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00296" name="l00296"></a><span class="lineno"> 296</span> </div>
<div class="line"><a id="l00298" name="l00298"></a><span class="lineno"> 298</span> <span class="keywordtype">void</span> Clear();</div>
<div class="line"><a id="l00299" name="l00299"></a><span class="lineno"> 299</span> </div>
<div class="line"><a id="l00309" name="l00309"></a><span class="lineno"> 309</span> <span class="keywordtype">void</span> SetPartitionSummaryLimit(int32_t max);</div>
<div class="line"><a id="l00310" name="l00310"></a><span class="lineno"> 310</span> </div>
<div class="line"><a id="l00314" name="l00314"></a><span class="lineno"> 314</span> <span class="keywordtype">void</span> IncrementDuplicateDeletes(int32_t increment = 1);</div>
<div class="line"><a id="l00315" name="l00315"></a><span class="lineno"> 315</span> </div>
<div class="line"><a id="l00321" name="l00321"></a><span class="lineno"> 321</span> Status AddedFile(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1PartitionSpec.html">PartitionSpec</a>&amp; spec, <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1DataFile.html">DataFile</a>&amp; file);</div>
<div class="line"><a id="l00322" name="l00322"></a><span class="lineno"> 322</span> </div>
<div class="line"><a id="l00328" name="l00328"></a><span class="lineno"> 328</span> Status DeletedFile(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1PartitionSpec.html">PartitionSpec</a>&amp; spec, <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1DataFile.html">DataFile</a>&amp; file);</div>
<div class="line"><a id="l00329" name="l00329"></a><span class="lineno"> 329</span> </div>
<div class="line"><a id="l00333" name="l00333"></a><span class="lineno"> 333</span> <span class="keywordtype">void</span> AddedManifest(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1ManifestFile.html">ManifestFile</a>&amp; manifest);</div>
<div class="line"><a id="l00334" name="l00334"></a><span class="lineno"> 334</span> </div>
<div class="line"><a id="l00339" name="l00339"></a><span class="lineno"> 339</span> <span class="keywordtype">void</span> Set(<span class="keyword">const</span> std::string&amp; property, <span class="keyword">const</span> std::string&amp; value);</div>
<div class="line"><a id="l00340" name="l00340"></a><span class="lineno"> 340</span> </div>
<div class="line"><a id="l00344" name="l00344"></a><span class="lineno"> 344</span> <span class="keywordtype">void</span> Merge(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1SnapshotSummaryBuilder.html">SnapshotSummaryBuilder</a>&amp; other);</div>
<div class="line"><a id="l00345" name="l00345"></a><span class="lineno"> 345</span> </div>
<div class="line"><a id="l00349" name="l00349"></a><span class="lineno"> 349</span> std::unordered_map&lt;std::string, std::string&gt; Build() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00350" name="l00350"></a><span class="lineno"> 350</span> </div>
<div class="line"><a id="l00351" name="l00351"></a><span class="lineno"> 351</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00352" name="l00352"></a><span class="lineno"> 352</span> Status UpdatePartitions(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1PartitionSpec.html">PartitionSpec</a>&amp; spec, <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1DataFile.html">DataFile</a>&amp; file,</div>
<div class="line"><a id="l00353" name="l00353"></a><span class="lineno"> 353</span> <span class="keywordtype">bool</span> is_addition);</div>
<div class="line"><a id="l00354" name="l00354"></a><span class="lineno"> 354</span> std::string <a class="code hl_class" href="classiceberg_1_1PartitionSummary.html">PartitionSummary</a>(<span class="keyword">const</span> UpdateMetrics&amp; metrics) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00355" name="l00355"></a><span class="lineno"> 355</span> </div>
<div class="line"><a id="l00356" name="l00356"></a><span class="lineno"> 356</span> std::unordered_map&lt;std::string, std::string&gt; properties_;</div>
<div class="line"><a id="l00357" name="l00357"></a><span class="lineno"> 357</span> std::unordered_map&lt;std::string, UpdateMetrics&gt; partition_metrics_;</div>
<div class="line"><a id="l00358" name="l00358"></a><span class="lineno"> 358</span> UpdateMetrics metrics_;</div>
<div class="line"><a id="l00359" name="l00359"></a><span class="lineno"> 359</span> int32_t max_changed_partitions_for_summaries_{0};</div>
<div class="line"><a id="l00360" name="l00360"></a><span class="lineno"> 360</span> int64_t deleted_duplicate_files_{0};</div>
<div class="line"><a id="l00361" name="l00361"></a><span class="lineno"> 361</span> <span class="keywordtype">bool</span> trust_partition_metrics_{<span class="keyword">true</span>};</div>
<div class="line"><a id="l00362" name="l00362"></a><span class="lineno"> 362</span>};</div>
</div>
<div class="line"><a id="l00363" name="l00363"></a><span class="lineno"> 363</span> </div>
<div class="foldopen" id="foldopen00369" data-start="{" data-end="};">
<div class="line"><a id="l00369" name="l00369"></a><span class="lineno"><a class="line" href="structiceberg_1_1DataOperation.html"> 369</a></span><span class="keyword">struct </span>ICEBERG_EXPORT <a class="code hl_struct" href="structiceberg_1_1DataOperation.html">DataOperation</a> {</div>
<div class="line"><a id="l00371" name="l00371"></a><span class="lineno"><a class="line" href="structiceberg_1_1DataOperation.html#a98c420e62fe063cc7b3011717e854ecf"> 371</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kAppend = <span class="stringliteral">&quot;append&quot;</span>;</div>
<div class="line"><a id="l00374" name="l00374"></a><span class="lineno"><a class="line" href="structiceberg_1_1DataOperation.html#a3dab031174d6722419961d46fbbd572a"> 374</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kReplace = <span class="stringliteral">&quot;replace&quot;</span>;</div>
<div class="line"><a id="l00377" name="l00377"></a><span class="lineno"><a class="line" href="structiceberg_1_1DataOperation.html#a8a93dd2be0906a5303a41145fa7498bf"> 377</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kOverwrite = <span class="stringliteral">&quot;overwrite&quot;</span>;</div>
<div class="line"><a id="l00380" name="l00380"></a><span class="lineno"><a class="line" href="structiceberg_1_1DataOperation.html#a4c3e08ef4b4a8308ec8845244050b126"> 380</a></span> <span class="keyword">inline</span> <span class="keyword">static</span> <span class="keyword">const</span> std::string kDelete = <span class="stringliteral">&quot;delete&quot;</span>;</div>
<div class="line"><a id="l00381" name="l00381"></a><span class="lineno"> 381</span>};</div>
</div>
<div class="line"><a id="l00382" name="l00382"></a><span class="lineno"> 382</span> </div>
<div class="foldopen" id="foldopen00389" data-start="{" data-end="};">
<div class="line"><a id="l00389" name="l00389"></a><span class="lineno"><a class="line" href="structiceberg_1_1Snapshot.html"> 389</a></span><span class="keyword">struct </span>ICEBERG_EXPORT <a class="code hl_struct" href="structiceberg_1_1Snapshot.html">Snapshot</a> {</div>
<div class="line"><a id="l00391" name="l00391"></a><span class="lineno"><a class="line" href="structiceberg_1_1Snapshot.html#a128c409cc977968fbb9d9e893ba7d0c6"> 391</a></span> int64_t <a class="code hl_variable" href="structiceberg_1_1Snapshot.html#a128c409cc977968fbb9d9e893ba7d0c6">snapshot_id</a>;</div>
<div class="line"><a id="l00393" name="l00393"></a><span class="lineno"><a class="line" href="structiceberg_1_1Snapshot.html#aef3a444c939ab4f76e0b9a28f96c6b7a"> 393</a></span> std::optional&lt;int64_t&gt; <a class="code hl_variable" href="structiceberg_1_1Snapshot.html#aef3a444c939ab4f76e0b9a28f96c6b7a">parent_snapshot_id</a>;</div>
<div class="line"><a id="l00395" name="l00395"></a><span class="lineno"><a class="line" href="structiceberg_1_1Snapshot.html#a6f9b97d42b48be0d05dd4befd2602256"> 395</a></span> int64_t <a class="code hl_variable" href="structiceberg_1_1Snapshot.html#a6f9b97d42b48be0d05dd4befd2602256">sequence_number</a>;</div>
<div class="line"><a id="l00398" name="l00398"></a><span class="lineno"><a class="line" href="structiceberg_1_1Snapshot.html#ac401c19cb4161ce5a39ab9ba16e458ac"> 398</a></span> TimePointMs <a class="code hl_variable" href="structiceberg_1_1Snapshot.html#ac401c19cb4161ce5a39ab9ba16e458ac">timestamp_ms</a>;</div>
<div class="line"><a id="l00401" name="l00401"></a><span class="lineno"><a class="line" href="structiceberg_1_1Snapshot.html#afb198e3e0b1f335fade82e462a600e95"> 401</a></span> std::string <a class="code hl_variable" href="structiceberg_1_1Snapshot.html#afb198e3e0b1f335fade82e462a600e95">manifest_list</a>;</div>
<div class="line"><a id="l00403" name="l00403"></a><span class="lineno"><a class="line" href="structiceberg_1_1Snapshot.html#afb3b362767783fd344a459451796b2e8"> 403</a></span> std::unordered_map&lt;std::string, std::string&gt; <a class="code hl_variable" href="structiceberg_1_1Snapshot.html#afb3b362767783fd344a459451796b2e8">summary</a>;</div>
<div class="line"><a id="l00405" name="l00405"></a><span class="lineno"><a class="line" href="structiceberg_1_1Snapshot.html#a70e026926993c72c71ae9bc75298d5e1"> 405</a></span> std::optional&lt;int32_t&gt; <a class="code hl_variable" href="structiceberg_1_1Snapshot.html#a70e026926993c72c71ae9bc75298d5e1">schema_id</a>;</div>
<div class="line"><a id="l00406" name="l00406"></a><span class="lineno"> 406</span> </div>
<div class="line"><a id="l00408" name="l00408"></a><span class="lineno"> 408</span> <span class="keyword">static</span> Result&lt;std::unique_ptr&lt;Snapshot&gt;&gt; Make(</div>
<div class="line"><a id="l00409" name="l00409"></a><span class="lineno"> 409</span> int64_t sequence_number, int64_t snapshot_id,</div>
<div class="line"><a id="l00410" name="l00410"></a><span class="lineno"> 410</span> std::optional&lt;int64_t&gt; parent_snapshot_id, TimePointMs timestamp_ms,</div>
<div class="line"><a id="l00411" name="l00411"></a><span class="lineno"> 411</span> std::string operation, std::unordered_map&lt;std::string, std::string&gt; summary,</div>
<div class="line"><a id="l00412" name="l00412"></a><span class="lineno"> 412</span> std::optional&lt;int32_t&gt; schema_id, std::string manifest_list,</div>
<div class="line"><a id="l00413" name="l00413"></a><span class="lineno"> 413</span> std::optional&lt;int64_t&gt; first_row_id = std::nullopt,</div>
<div class="line"><a id="l00414" name="l00414"></a><span class="lineno"> 414</span> std::optional&lt;int64_t&gt; added_rows = std::nullopt);</div>
<div class="line"><a id="l00415" name="l00415"></a><span class="lineno"> 415</span> </div>
<div class="line"><a id="l00421" name="l00421"></a><span class="lineno"> 421</span> std::optional&lt;std::string_view&gt; Operation() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00422" name="l00422"></a><span class="lineno"> 422</span> </div>
<div class="line"><a id="l00432" name="l00432"></a><span class="lineno"> 432</span> Result&lt;std::optional&lt;int64_t&gt;&gt; FirstRowId() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00433" name="l00433"></a><span class="lineno"> 433</span> </div>
<div class="line"><a id="l00444" name="l00444"></a><span class="lineno"> 444</span> Result&lt;std::optional&lt;int64_t&gt;&gt; AddedRows() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00445" name="l00445"></a><span class="lineno"> 445</span> </div>
<div class="foldopen" id="foldopen00447" data-start="{" data-end="};">
<div class="line"><a id="l00447" name="l00447"></a><span class="lineno"><a class="line" href="structiceberg_1_1Snapshot.html#a110ad1a8614e25b2b749bfb411b7b0f9"> 447</a></span> <span class="keyword">friend</span> <span class="keywordtype">bool</span> <a class="code hl_friend" href="structiceberg_1_1Snapshot.html#a110ad1a8614e25b2b749bfb411b7b0f9">operator==</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Snapshot.html">Snapshot</a>&amp; lhs, <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Snapshot.html">Snapshot</a>&amp; rhs) {</div>
<div class="line"><a id="l00448" name="l00448"></a><span class="lineno"> 448</span> <span class="keywordflow">return</span> lhs.Equals(rhs);</div>
<div class="line"><a id="l00449" name="l00449"></a><span class="lineno"> 449</span> }</div>
</div>
<div class="line"><a id="l00450" name="l00450"></a><span class="lineno"> 450</span> </div>
<div class="line"><a id="l00451" name="l00451"></a><span class="lineno"> 451</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00453" name="l00453"></a><span class="lineno"> 453</span> <span class="keywordtype">bool</span> Equals(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Snapshot.html">Snapshot</a>&amp; other) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00454" name="l00454"></a><span class="lineno"> 454</span>};</div>
</div>
<div class="line"><a id="l00455" name="l00455"></a><span class="lineno"> 455</span> </div>
<div class="foldopen" id="foldopen00459" data-start="{" data-end="};">
<div class="line"><a id="l00459" name="l00459"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotCache.html"> 459</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1SnapshotCache.html">SnapshotCache</a> {</div>
<div class="line"><a id="l00460" name="l00460"></a><span class="lineno"> 460</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00461" name="l00461"></a><span class="lineno"> 461</span> <span class="keyword">explicit</span> <a class="code hl_class" href="classiceberg_1_1SnapshotCache.html">SnapshotCache</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Snapshot.html">Snapshot</a>* snapshot) : snapshot_(snapshot) {}</div>
<div class="line"><a id="l00462" name="l00462"></a><span class="lineno"> 462</span> </div>
<div class="line"><a id="l00464" name="l00464"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotCache.html#a673648c4ae8593852e7d7bf762cb9df3"> 464</a></span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Snapshot.html">Snapshot</a>&amp; <a class="code hl_function" href="classiceberg_1_1SnapshotCache.html#a673648c4ae8593852e7d7bf762cb9df3">snapshot</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> *snapshot_; }</div>
<div class="line"><a id="l00465" name="l00465"></a><span class="lineno"> 465</span> </div>
<div class="line"><a id="l00471" name="l00471"></a><span class="lineno"> 471</span> Result&lt;std::span&lt;ManifestFile&gt;&gt; Manifests(std::shared_ptr&lt;FileIO&gt; file_io) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00472" name="l00472"></a><span class="lineno"> 472</span> </div>
<div class="line"><a id="l00477" name="l00477"></a><span class="lineno"> 477</span> Result&lt;std::span&lt;ManifestFile&gt;&gt; DataManifests(std::shared_ptr&lt;FileIO&gt; file_io) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00478" name="l00478"></a><span class="lineno"> 478</span> </div>
<div class="line"><a id="l00483" name="l00483"></a><span class="lineno"> 483</span> Result&lt;std::span&lt;ManifestFile&gt;&gt; DeleteManifests(std::shared_ptr&lt;FileIO&gt; file_io) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00484" name="l00484"></a><span class="lineno"> 484</span> </div>
<div class="line"><a id="l00485" name="l00485"></a><span class="lineno"> 485</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00490" name="l00490"></a><span class="lineno"> 490</span> <span class="keyword">using </span>ManifestsCache = std::pair&lt;std::vector&lt;ManifestFile&gt;, <span class="keywordtype">size_t</span>&gt;;</div>
<div class="line"><a id="l00491" name="l00491"></a><span class="lineno"> 491</span> </div>
<div class="line"><a id="l00496" name="l00496"></a><span class="lineno"> 496</span> <span class="keyword">static</span> Result&lt;ManifestsCache&gt; InitManifestsCache(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Snapshot.html">Snapshot</a>* snapshot,</div>
<div class="line"><a id="l00497" name="l00497"></a><span class="lineno"> 497</span> std::shared_ptr&lt;FileIO&gt; file_io);</div>
<div class="line"><a id="l00498" name="l00498"></a><span class="lineno"> 498</span> </div>
<div class="line"><a id="l00500" name="l00500"></a><span class="lineno"> 500</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Snapshot.html">Snapshot</a>* snapshot_;</div>
<div class="line"><a id="l00501" name="l00501"></a><span class="lineno"> 501</span> </div>
<div class="line"><a id="l00503" name="l00503"></a><span class="lineno"> 503</span> <a class="code hl_class" href="classiceberg_1_1Lazy.html">Lazy&lt;InitManifestsCache&gt;</a> manifests_cache_;</div>
<div class="line"><a id="l00504" name="l00504"></a><span class="lineno"> 504</span>};</div>
</div>
<div class="line"><a id="l00505" name="l00505"></a><span class="lineno"> 505</span> </div>
<div class="line"><a id="l00506" name="l00506"></a><span class="lineno"> 506</span>} <span class="comment">// namespace iceberg</span></div>
<div class="ttc" id="aclassiceberg_1_1Lazy_html"><div class="ttname"><a href="classiceberg_1_1Lazy.html">iceberg::Lazy</a></div><div class="ttdef"><b>Definition</b> lazy.h:35</div></div>
<div class="ttc" id="aclassiceberg_1_1PartitionSpec_html"><div class="ttname"><a href="classiceberg_1_1PartitionSpec.html">iceberg::PartitionSpec</a></div><div class="ttdoc">A partition spec for a Table.</div><div class="ttdef"><b>Definition</b> partition_spec.h:47</div></div>
<div class="ttc" id="aclassiceberg_1_1PartitionSummary_html"><div class="ttname"><a href="classiceberg_1_1PartitionSummary.html">iceberg::PartitionSummary</a></div><div class="ttdoc">Maintains statistics for each partition field and produces the partition field summaries.</div><div class="ttdef"><b>Definition</b> partition_summary_internal.h:51</div></div>
<div class="ttc" id="aclassiceberg_1_1SnapshotCache_html"><div class="ttname"><a href="classiceberg_1_1SnapshotCache.html">iceberg::SnapshotCache</a></div><div class="ttdoc">A snapshot with cached manifest loading capabilities.</div><div class="ttdef"><b>Definition</b> snapshot.h:459</div></div>
<div class="ttc" id="aclassiceberg_1_1SnapshotCache_html_a673648c4ae8593852e7d7bf762cb9df3"><div class="ttname"><a href="classiceberg_1_1SnapshotCache.html#a673648c4ae8593852e7d7bf762cb9df3">iceberg::SnapshotCache::snapshot</a></div><div class="ttdeci">const Snapshot &amp; snapshot() const</div><div class="ttdoc">Get the underlying Snapshot reference.</div><div class="ttdef"><b>Definition</b> snapshot.h:464</div></div>
<div class="ttc" id="aclassiceberg_1_1SnapshotSummaryBuilder_html"><div class="ttname"><a href="classiceberg_1_1SnapshotSummaryBuilder.html">iceberg::SnapshotSummaryBuilder</a></div><div class="ttdoc">Helper class for building snapshot summaries.</div><div class="ttdef"><b>Definition</b> snapshot.h:260</div></div>
<div class="ttc" id="alazy_8h_html"><div class="ttname"><a href="lazy_8h.html">lazy.h</a></div></div>
<div class="ttc" id="amanifest__list_8h_html"><div class="ttname"><a href="manifest__list_8h.html">manifest_list.h</a></div></div>
<div class="ttc" id="anamespacestd_html"><div class="ttname"><a href="namespacestd.html">std</a></div><div class="ttdoc">STL namespace.</div></div>
<div class="ttc" id="astructiceberg_1_1DataFile_html"><div class="ttname"><a href="structiceberg_1_1DataFile.html">iceberg::DataFile</a></div><div class="ttdoc">DataFile carries data file path, partition tuple, metrics, ...</div><div class="ttdef"><b>Definition</b> manifest_entry.h:62</div></div>
<div class="ttc" id="astructiceberg_1_1DataOperation_html"><div class="ttname"><a href="structiceberg_1_1DataOperation.html">iceberg::DataOperation</a></div><div class="ttdoc">Data operation that produce snapshots.</div><div class="ttdef"><b>Definition</b> snapshot.h:369</div></div>
<div class="ttc" id="astructiceberg_1_1ManifestFile_html"><div class="ttname"><a href="structiceberg_1_1ManifestFile.html">iceberg::ManifestFile</a></div><div class="ttdoc">Entry in a manifest list.</div><div class="ttdef"><b>Definition</b> manifest_list.h:85</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_1_1Branch_html"><div class="ttname"><a href="structiceberg_1_1SnapshotRef_1_1Branch.html">iceberg::SnapshotRef::Branch</a></div><div class="ttdef"><b>Definition</b> snapshot.h:71</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_1_1Branch_html_a4e263cc1792d5e41e495fc1d0d22c48a"><div class="ttname"><a href="structiceberg_1_1SnapshotRef_1_1Branch.html#a4e263cc1792d5e41e495fc1d0d22c48a">iceberg::SnapshotRef::Branch::min_snapshots_to_keep</a></div><div class="ttdeci">std::optional&lt; int32_t &gt; min_snapshots_to_keep</div><div class="ttdef"><b>Definition</b> snapshot.h:75</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_1_1Branch_html_a51b4eb07baf51b45ae89bc533092db3f"><div class="ttname"><a href="structiceberg_1_1SnapshotRef_1_1Branch.html#a51b4eb07baf51b45ae89bc533092db3f">iceberg::SnapshotRef::Branch::max_snapshot_age_ms</a></div><div class="ttdeci">std::optional&lt; int64_t &gt; max_snapshot_age_ms</div><div class="ttdef"><b>Definition</b> snapshot.h:79</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_1_1Branch_html_a66bddbcaaf9655ed5c4528ecab20d57e"><div class="ttname"><a href="structiceberg_1_1SnapshotRef_1_1Branch.html#a66bddbcaaf9655ed5c4528ecab20d57e">iceberg::SnapshotRef::Branch::max_ref_age_ms</a></div><div class="ttdeci">std::optional&lt; int64_t &gt; max_ref_age_ms</div><div class="ttdef"><b>Definition</b> snapshot.h:83</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_1_1Branch_html_a72566c422b25279bd143b8b39006e506"><div class="ttname"><a href="structiceberg_1_1SnapshotRef_1_1Branch.html#a72566c422b25279bd143b8b39006e506">iceberg::SnapshotRef::Branch::operator==</a></div><div class="ttdeci">friend bool operator==(const Branch &amp;lhs, const Branch &amp;rhs)</div><div class="ttdoc">Compare two branches for equality.</div><div class="ttdef"><b>Definition</b> snapshot.h:86</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_1_1Tag_html"><div class="ttname"><a href="structiceberg_1_1SnapshotRef_1_1Tag.html">iceberg::SnapshotRef::Tag</a></div><div class="ttdef"><b>Definition</b> snapshot.h:95</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_1_1Tag_html_a51a7a1608df43d8eff2cc8cd1600420e"><div class="ttname"><a href="structiceberg_1_1SnapshotRef_1_1Tag.html#a51a7a1608df43d8eff2cc8cd1600420e">iceberg::SnapshotRef::Tag::max_ref_age_ms</a></div><div class="ttdeci">std::optional&lt; int64_t &gt; max_ref_age_ms</div><div class="ttdef"><b>Definition</b> snapshot.h:99</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_1_1Tag_html_ac2b7639cd47e0904f7e8bd8ca4efe367"><div class="ttname"><a href="structiceberg_1_1SnapshotRef_1_1Tag.html#ac2b7639cd47e0904f7e8bd8ca4efe367">iceberg::SnapshotRef::Tag::operator==</a></div><div class="ttdeci">friend bool operator==(const Tag &amp;lhs, const Tag &amp;rhs)</div><div class="ttdoc">Compare two tags for equality.</div><div class="ttdef"><b>Definition</b> snapshot.h:102</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_html"><div class="ttname"><a href="structiceberg_1_1SnapshotRef.html">iceberg::SnapshotRef</a></div><div class="ttdoc">A reference to a snapshot, either a branch or a tag.</div><div class="ttdef"><b>Definition</b> snapshot.h:68</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_html_a63ac8ff0babbe68126fb52e54e7e1adb"><div class="ttname"><a href="structiceberg_1_1SnapshotRef.html#a63ac8ff0babbe68126fb52e54e7e1adb">iceberg::SnapshotRef::snapshot_id</a></div><div class="ttdeci">int64_t snapshot_id</div><div class="ttdoc">A reference's snapshot ID. The tagged snapshot or latest snapshot of a branch.</div><div class="ttdef"><b>Definition</b> snapshot.h:110</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotRef_html_ae89f6fb03dacc07e6cde3c81a133add1"><div class="ttname"><a href="structiceberg_1_1SnapshotRef.html#ae89f6fb03dacc07e6cde3c81a133add1">iceberg::SnapshotRef::retention</a></div><div class="ttdeci">std::variant&lt; Branch, Tag &gt; retention</div><div class="ttdoc">Snapshot retention policy.</div><div class="ttdef"><b>Definition</b> snapshot.h:112</div></div>
<div class="ttc" id="astructiceberg_1_1SnapshotSummaryFields_html"><div class="ttname"><a href="structiceberg_1_1SnapshotSummaryFields.html">iceberg::SnapshotSummaryFields</a></div><div class="ttdoc">Optional Snapshot Summary Fields.</div><div class="ttdef"><b>Definition</b> snapshot.h:162</div></div>
<div class="ttc" id="astructiceberg_1_1Snapshot_html"><div class="ttname"><a href="structiceberg_1_1Snapshot.html">iceberg::Snapshot</a></div><div class="ttdoc">A snapshot of the data in a table at a point in time.</div><div class="ttdef"><b>Definition</b> snapshot.h:389</div></div>
<div class="ttc" id="astructiceberg_1_1Snapshot_html_a110ad1a8614e25b2b749bfb411b7b0f9"><div class="ttname"><a href="structiceberg_1_1Snapshot.html#a110ad1a8614e25b2b749bfb411b7b0f9">iceberg::Snapshot::operator==</a></div><div class="ttdeci">friend bool operator==(const Snapshot &amp;lhs, const Snapshot &amp;rhs)</div><div class="ttdoc">Compare two snapshots for equality.</div><div class="ttdef"><b>Definition</b> snapshot.h:447</div></div>
<div class="ttc" id="astructiceberg_1_1Snapshot_html_a128c409cc977968fbb9d9e893ba7d0c6"><div class="ttname"><a href="structiceberg_1_1Snapshot.html#a128c409cc977968fbb9d9e893ba7d0c6">iceberg::Snapshot::snapshot_id</a></div><div class="ttdeci">int64_t snapshot_id</div><div class="ttdoc">A unique long ID.</div><div class="ttdef"><b>Definition</b> snapshot.h:391</div></div>
<div class="ttc" id="astructiceberg_1_1Snapshot_html_a6f9b97d42b48be0d05dd4befd2602256"><div class="ttname"><a href="structiceberg_1_1Snapshot.html#a6f9b97d42b48be0d05dd4befd2602256">iceberg::Snapshot::sequence_number</a></div><div class="ttdeci">int64_t sequence_number</div><div class="ttdoc">A monotonically increasing long that tracks the order of changes to a table.</div><div class="ttdef"><b>Definition</b> snapshot.h:395</div></div>
<div class="ttc" id="astructiceberg_1_1Snapshot_html_a70e026926993c72c71ae9bc75298d5e1"><div class="ttname"><a href="structiceberg_1_1Snapshot.html#a70e026926993c72c71ae9bc75298d5e1">iceberg::Snapshot::schema_id</a></div><div class="ttdeci">std::optional&lt; int32_t &gt; schema_id</div><div class="ttdoc">ID of the table's current schema when the snapshot was created.</div><div class="ttdef"><b>Definition</b> snapshot.h:405</div></div>
<div class="ttc" id="astructiceberg_1_1Snapshot_html_ac401c19cb4161ce5a39ab9ba16e458ac"><div class="ttname"><a href="structiceberg_1_1Snapshot.html#ac401c19cb4161ce5a39ab9ba16e458ac">iceberg::Snapshot::timestamp_ms</a></div><div class="ttdeci">TimePointMs timestamp_ms</div><div class="ttdef"><b>Definition</b> snapshot.h:398</div></div>
<div class="ttc" id="astructiceberg_1_1Snapshot_html_aef3a444c939ab4f76e0b9a28f96c6b7a"><div class="ttname"><a href="structiceberg_1_1Snapshot.html#aef3a444c939ab4f76e0b9a28f96c6b7a">iceberg::Snapshot::parent_snapshot_id</a></div><div class="ttdeci">std::optional&lt; int64_t &gt; parent_snapshot_id</div><div class="ttdoc">The snapshot ID of the snapshot's parent. Omitted for any snapshot with no parent.</div><div class="ttdef"><b>Definition</b> snapshot.h:393</div></div>
<div class="ttc" id="astructiceberg_1_1Snapshot_html_afb198e3e0b1f335fade82e462a600e95"><div class="ttname"><a href="structiceberg_1_1Snapshot.html#afb198e3e0b1f335fade82e462a600e95">iceberg::Snapshot::manifest_list</a></div><div class="ttdeci">std::string manifest_list</div><div class="ttdef"><b>Definition</b> snapshot.h:401</div></div>
<div class="ttc" id="astructiceberg_1_1Snapshot_html_afb3b362767783fd344a459451796b2e8"><div class="ttname"><a href="structiceberg_1_1Snapshot.html#afb3b362767783fd344a459451796b2e8">iceberg::Snapshot::summary</a></div><div class="ttdeci">std::unordered_map&lt; std::string, std::string &gt; summary</div><div class="ttdoc">A string map that summaries the snapshot changes, including operation.</div><div class="ttdef"><b>Definition</b> snapshot.h:403</div></div>
<div class="ttc" id="atype__fwd_8h_html"><div class="ttname"><a href="type__fwd_8h.html">type_fwd.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>