| <!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/update/update_snapshot_reference.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&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&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&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_51d145386ec5f52aa06ebf5e46944abc.html">iceberg</a></li><li class="navelem"><a class="el" href="dir_6d010e03372010f41233a7d3a31e0117.html">update</a></li> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="headertitle"><div class="title">update_snapshot_reference.h</div></div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="update__snapshot__reference_8h.html">Go to the documentation of this file.</a><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"> * "License"); 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"> * "AS IS" 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 <memory></span></div> |
| <div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include <string></span></div> |
| <div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <unordered_map></span></div> |
| <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div> |
| <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include "<a class="code" href="iceberg__export_8h.html">iceberg/iceberg_export.h</a>"</span></div> |
| <div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include "<a class="code" href="result_8h.html">iceberg/result.h</a>"</span></div> |
| <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include "<a class="code" href="type__fwd_8h.html">iceberg/type_fwd.h</a>"</span></div> |
| <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include "<a class="code" href="pending__update_8h.html">iceberg/update/pending_update.h</a>"</span></div> |
| <div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div> |
| <div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span> </div> |
| <div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceiceberg.html">iceberg</a> {</div> |
| <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</span> </div> |
| <div class="foldopen" id="foldopen00039" data-start="{" data-end="};"> |
| <div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html"> 39</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a> : <span class="keyword">public</span> <a class="code hl_class" href="classiceberg_1_1PendingUpdate.html">PendingUpdate</a> {</div> |
| <div class="line"><a id="l00040" name="l00040"></a><span class="lineno"> 40</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<UpdateSnapshotReference></a>> Make(</div> |
| <div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> std::shared_ptr<TransactionContext> ctx);</div> |
| <div class="line"><a id="l00043" name="l00043"></a><span class="lineno"> 43</span> </div> |
| <div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">~UpdateSnapshotReference</a>() <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div> |
| <div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#aa2b206e480c3975eed0ec681055fb421"> 51</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#aa2b206e480c3975eed0ec681055fb421">CreateBranch</a>(<span class="keyword">const</span> std::string& name, int64_t snapshot_id);</div> |
| <div class="line"><a id="l00052" name="l00052"></a><span class="lineno"> 52</span> </div> |
| <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#afeb72977cdad95e81a9a39e371bc3fed"> 58</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#afeb72977cdad95e81a9a39e371bc3fed">CreateTag</a>(<span class="keyword">const</span> std::string& name, int64_t snapshot_id);</div> |
| <div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div> |
| <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#ad4cba4f1a05a47a103c2bab28e6c0d0b"> 64</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#ad4cba4f1a05a47a103c2bab28e6c0d0b">RemoveBranch</a>(<span class="keyword">const</span> std::string& name);</div> |
| <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div> |
| <div class="line"><a id="l00070" name="l00070"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#a9f035c9b6c1a8144f69b6a0834772669"> 70</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#a9f035c9b6c1a8144f69b6a0834772669">RemoveTag</a>(<span class="keyword">const</span> std::string& name);</div> |
| <div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div> |
| <div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#addd69d3ac34ed0591b09276a7030009b"> 77</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#addd69d3ac34ed0591b09276a7030009b">RenameBranch</a>(<span class="keyword">const</span> std::string& name,</div> |
| <div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> <span class="keyword">const</span> std::string& new_name);</div> |
| <div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div> |
| <div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#a839c4712058906a871996decdcdb8108"> 85</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#a839c4712058906a871996decdcdb8108">ReplaceBranch</a>(<span class="keyword">const</span> std::string& name, int64_t snapshot_id);</div> |
| <div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</span> </div> |
| <div class="line"><a id="l00092" name="l00092"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#ad931e8aa29e96c7818120b8c31817eed"> 92</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#ad931e8aa29e96c7818120b8c31817eed">ReplaceBranch</a>(<span class="keyword">const</span> std::string& from, <span class="keyword">const</span> std::string& to);</div> |
| <div class="line"><a id="l00093" name="l00093"></a><span class="lineno"> 93</span> </div> |
| <div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#a7c274cfeb145f645421c495580447add"> 102</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#a7c274cfeb145f645421c495580447add">FastForward</a>(<span class="keyword">const</span> std::string& from, <span class="keyword">const</span> std::string& to);</div> |
| <div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div> |
| <div class="line"><a id="l00109" name="l00109"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#adc9d7f88938a20e1f113464dfc00fcf9"> 109</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#adc9d7f88938a20e1f113464dfc00fcf9">ReplaceTag</a>(<span class="keyword">const</span> std::string& name, int64_t snapshot_id);</div> |
| <div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div> |
| <div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#af17c0f80038ab35945d1f869656fe5ab"> 116</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#af17c0f80038ab35945d1f869656fe5ab">SetMinSnapshotsToKeep</a>(<span class="keyword">const</span> std::string& name,</div> |
| <div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> int32_t min_snapshots_to_keep);</div> |
| <div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> </div> |
| <div class="line"><a id="l00124" name="l00124"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#a920b8e4e58e2e0766ddb0187170bf0b8"> 124</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#a920b8e4e58e2e0766ddb0187170bf0b8">SetMaxSnapshotAgeMs</a>(<span class="keyword">const</span> std::string& name,</div> |
| <div class="line"><a id="l00125" name="l00125"></a><span class="lineno"> 125</span> int64_t max_snapshot_age_ms);</div> |
| <div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div> |
| <div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#a6106a27e7accb8b9019b2667c546db80"> 132</a></span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#a6106a27e7accb8b9019b2667c546db80">SetMaxRefAgeMs</a>(<span class="keyword">const</span> std::string& name,</div> |
| <div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> int64_t max_ref_age_ms);</div> |
| <div class="line"><a id="l00134" name="l00134"></a><span class="lineno"> 134</span> </div> |
| <div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#a607504fa70250fcbacd8abf5c009dec6"> 135</a></span> Kind <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#a607504fa70250fcbacd8abf5c009dec6">kind</a>() const final { <span class="keywordflow">return</span> Kind::kUpdateSnapshotReference; }</div> |
| <div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div> |
| <div class="line"><a id="l00142" name="l00142"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#a93ec2b5eb604f1cb33c9b3fc09a60345"> 142</a></span> <span class="keywordtype">bool</span> <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#a93ec2b5eb604f1cb33c9b3fc09a60345">IsRetryable</a>()<span class="keyword"> const override </span>{ <span class="keywordflow">return</span> <span class="keyword">false</span>; }</div> |
| <div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> </div> |
| <div class="foldopen" id="foldopen00144" data-start="{" data-end="};"> |
| <div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="structiceberg_1_1UpdateSnapshotReference_1_1ApplyResult.html"> 144</a></span> <span class="keyword">struct </span><a class="code hl_struct" href="structiceberg_1_1UpdateSnapshotReference_1_1ApplyResult.html">ApplyResult</a> {</div> |
| <div class="line"><a id="l00146" name="l00146"></a><span class="lineno"><a class="line" href="structiceberg_1_1UpdateSnapshotReference_1_1ApplyResult.html#ad54ce3759a395f19564c67024f235edb"> 146</a></span> std::vector<std::pair<std::string, std::shared_ptr<SnapshotRef>>> <a class="code hl_variable" href="structiceberg_1_1UpdateSnapshotReference_1_1ApplyResult.html#ad54ce3759a395f19564c67024f235edb">to_set</a>;</div> |
| <div class="line"><a id="l00148" name="l00148"></a><span class="lineno"><a class="line" href="structiceberg_1_1UpdateSnapshotReference_1_1ApplyResult.html#ac23bc318d4101f8c3b9be298abc9a3a7"> 148</a></span> std::vector<std::string> <a class="code hl_variable" href="structiceberg_1_1UpdateSnapshotReference_1_1ApplyResult.html#ac23bc318d4101f8c3b9be298abc9a3a7">to_remove</a>;</div> |
| <div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> };</div> |
| </div> |
| <div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> </div> |
| <div class="line"><a id="l00152" name="l00152"></a><span class="lineno"><a class="line" href="classiceberg_1_1UpdateSnapshotReference.html#af92312622f4d9ce498377537b34c7bbb"> 152</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<ApplyResult></a> <a class="code hl_function" href="classiceberg_1_1UpdateSnapshotReference.html#af92312622f4d9ce498377537b34c7bbb">Apply</a>();</div> |
| <div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> </div> |
| <div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> <span class="keyword">private</span>:</div> |
| <div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> <span class="keyword">explicit</span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>(std::shared_ptr<TransactionContext> ctx);</div> |
| <div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> </div> |
| <div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> <a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>& ReplaceBranchInternal(<span class="keyword">const</span> std::string& from,</div> |
| <div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> <span class="keyword">const</span> std::string& to,</div> |
| <div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> <span class="keywordtype">bool</span> fast_forward);</div> |
| <div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> </div> |
| <div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> std::unordered_map<std::string, std::shared_ptr<SnapshotRef>> updated_refs_;</div> |
| <div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span>};</div> |
| </div> |
| <div class="line"><a id="l00163" name="l00163"></a><span class="lineno"> 163</span> </div> |
| <div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span>} <span class="comment">// namespace iceberg</span></div> |
| <div class="ttc" id="aclassiceberg_1_1PendingUpdate_html"><div class="ttname"><a href="classiceberg_1_1PendingUpdate.html">iceberg::PendingUpdate</a></div><div class="ttdoc">Base class for all kinds of table metadata updates.</div><div class="ttdef"><b>Definition</b> pending_update.h:41</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html">iceberg::UpdateSnapshotReference</a></div><div class="ttdoc">Updates snapshot references.</div><div class="ttdef"><b>Definition</b> update_snapshot_reference.h:39</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_a607504fa70250fcbacd8abf5c009dec6"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#a607504fa70250fcbacd8abf5c009dec6">iceberg::UpdateSnapshotReference::kind</a></div><div class="ttdeci">Kind kind() const final</div><div class="ttdoc">Return the kind of this pending update.</div><div class="ttdef"><b>Definition</b> update_snapshot_reference.h:135</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_a6106a27e7accb8b9019b2667c546db80"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#a6106a27e7accb8b9019b2667c546db80">iceberg::UpdateSnapshotReference::SetMaxRefAgeMs</a></div><div class="ttdeci">UpdateSnapshotReference & SetMaxRefAgeMs(const std::string &name, int64_t max_ref_age_ms)</div><div class="ttdoc">Set the maximum reference age in milliseconds.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_a7c274cfeb145f645421c495580447add"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#a7c274cfeb145f645421c495580447add">iceberg::UpdateSnapshotReference::FastForward</a></div><div class="ttdeci">UpdateSnapshotReference & FastForward(const std::string &from, const std::string &to)</div><div class="ttdoc">Fast-forward a branch to another reference's snapshot ID.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_a839c4712058906a871996decdcdb8108"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#a839c4712058906a871996decdcdb8108">iceberg::UpdateSnapshotReference::ReplaceBranch</a></div><div class="ttdeci">UpdateSnapshotReference & ReplaceBranch(const std::string &name, int64_t snapshot_id)</div><div class="ttdoc">Replace a branch reference with a new snapshot ID.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_a920b8e4e58e2e0766ddb0187170bf0b8"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#a920b8e4e58e2e0766ddb0187170bf0b8">iceberg::UpdateSnapshotReference::SetMaxSnapshotAgeMs</a></div><div class="ttdeci">UpdateSnapshotReference & SetMaxSnapshotAgeMs(const std::string &name, int64_t max_snapshot_age_ms)</div><div class="ttdoc">Set the maximum snapshot age in milliseconds for a branch.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_a93ec2b5eb604f1cb33c9b3fc09a60345"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#a93ec2b5eb604f1cb33c9b3fc09a60345">iceberg::UpdateSnapshotReference::IsRetryable</a></div><div class="ttdeci">bool IsRetryable() const override</div><div class="ttdoc">Snapshot reference updates are not retryable.</div><div class="ttdef"><b>Definition</b> update_snapshot_reference.h:142</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_a9f035c9b6c1a8144f69b6a0834772669"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#a9f035c9b6c1a8144f69b6a0834772669">iceberg::UpdateSnapshotReference::RemoveTag</a></div><div class="ttdeci">UpdateSnapshotReference & RemoveTag(const std::string &name)</div><div class="ttdoc">Remove a tag reference.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_aa2b206e480c3975eed0ec681055fb421"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#aa2b206e480c3975eed0ec681055fb421">iceberg::UpdateSnapshotReference::CreateBranch</a></div><div class="ttdeci">UpdateSnapshotReference & CreateBranch(const std::string &name, int64_t snapshot_id)</div><div class="ttdoc">Create a branch reference.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_ad4cba4f1a05a47a103c2bab28e6c0d0b"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#ad4cba4f1a05a47a103c2bab28e6c0d0b">iceberg::UpdateSnapshotReference::RemoveBranch</a></div><div class="ttdeci">UpdateSnapshotReference & RemoveBranch(const std::string &name)</div><div class="ttdoc">Remove a branch reference.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_ad931e8aa29e96c7818120b8c31817eed"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#ad931e8aa29e96c7818120b8c31817eed">iceberg::UpdateSnapshotReference::ReplaceBranch</a></div><div class="ttdeci">UpdateSnapshotReference & ReplaceBranch(const std::string &from, const std::string &to)</div><div class="ttdoc">Replace a branch reference with another reference's snapshot ID.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_adc9d7f88938a20e1f113464dfc00fcf9"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#adc9d7f88938a20e1f113464dfc00fcf9">iceberg::UpdateSnapshotReference::ReplaceTag</a></div><div class="ttdeci">UpdateSnapshotReference & ReplaceTag(const std::string &name, int64_t snapshot_id)</div><div class="ttdoc">Replace a tag reference with a new snapshot ID.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_addd69d3ac34ed0591b09276a7030009b"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#addd69d3ac34ed0591b09276a7030009b">iceberg::UpdateSnapshotReference::RenameBranch</a></div><div class="ttdeci">UpdateSnapshotReference & RenameBranch(const std::string &name, const std::string &new_name)</div><div class="ttdoc">Rename a branch reference.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_af17c0f80038ab35945d1f869656fe5ab"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#af17c0f80038ab35945d1f869656fe5ab">iceberg::UpdateSnapshotReference::SetMinSnapshotsToKeep</a></div><div class="ttdeci">UpdateSnapshotReference & SetMinSnapshotsToKeep(const std::string &name, int32_t min_snapshots_to_keep)</div><div class="ttdoc">Set the minimum number of snapshots to keep for a branch.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_af92312622f4d9ce498377537b34c7bbb"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#af92312622f4d9ce498377537b34c7bbb">iceberg::UpdateSnapshotReference::Apply</a></div><div class="ttdeci">Result< ApplyResult > Apply()</div><div class="ttdoc">Apply the pending changes and return the updated and removed references.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1UpdateSnapshotReference_html_afeb72977cdad95e81a9a39e371bc3fed"><div class="ttname"><a href="classiceberg_1_1UpdateSnapshotReference.html#afeb72977cdad95e81a9a39e371bc3fed">iceberg::UpdateSnapshotReference::CreateTag</a></div><div class="ttdeci">UpdateSnapshotReference & CreateTag(const std::string &name, int64_t snapshot_id)</div><div class="ttdoc">Create a tag reference.</div></div> |
| <div class="ttc" id="aiceberg__export_8h_html"><div class="ttname"><a href="iceberg__export_8h.html">iceberg_export.h</a></div><div class="ttdoc">Define symbol visibility macros for core Iceberg APIs.</div></div> |
| <div class="ttc" id="anamespaceiceberg_html"><div class="ttname"><a href="namespaceiceberg.html">iceberg</a></div><div class="ttdoc">Core Apache Iceberg C++ APIs.</div><div class="ttdef"><b>Definition</b> arrow_io_util.h:33</div></div> |
| <div class="ttc" id="anamespaceiceberg_html_a9d5594e371beb516b0120e07e69d3af6"><div class="ttname"><a href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">iceberg::Result</a></div><div class="ttdeci">std::expected< T, E > Result</div><div class="ttdoc">Result alias.</div><div class="ttdef"><b>Definition</b> result.h:88</div></div> |
| <div class="ttc" id="apending__update_8h_html"><div class="ttname"><a href="pending__update_8h.html">pending_update.h</a></div></div> |
| <div class="ttc" id="aresult_8h_html"><div class="ttname"><a href="result_8h.html">result.h</a></div><div class="ttdoc">Define Result, Status, and error helpers.</div></div> |
| <div class="ttc" id="astructiceberg_1_1UpdateSnapshotReference_1_1ApplyResult_html"><div class="ttname"><a href="structiceberg_1_1UpdateSnapshotReference_1_1ApplyResult.html">iceberg::UpdateSnapshotReference::ApplyResult</a></div><div class="ttdef"><b>Definition</b> update_snapshot_reference.h:144</div></div> |
| <div class="ttc" id="astructiceberg_1_1UpdateSnapshotReference_1_1ApplyResult_html_ac23bc318d4101f8c3b9be298abc9a3a7"><div class="ttname"><a href="structiceberg_1_1UpdateSnapshotReference_1_1ApplyResult.html#ac23bc318d4101f8c3b9be298abc9a3a7">iceberg::UpdateSnapshotReference::ApplyResult::to_remove</a></div><div class="ttdeci">std::vector< std::string > to_remove</div><div class="ttdoc">Reference names to remove.</div><div class="ttdef"><b>Definition</b> update_snapshot_reference.h:148</div></div> |
| <div class="ttc" id="astructiceberg_1_1UpdateSnapshotReference_1_1ApplyResult_html_ad54ce3759a395f19564c67024f235edb"><div class="ttname"><a href="structiceberg_1_1UpdateSnapshotReference_1_1ApplyResult.html#ad54ce3759a395f19564c67024f235edb">iceberg::UpdateSnapshotReference::ApplyResult::to_set</a></div><div class="ttdeci">std::vector< std::pair< std::string, std::shared_ptr< SnapshotRef > > > to_set</div><div class="ttdoc">References to set or update (name, ref pairs)</div><div class="ttdef"><b>Definition</b> update_snapshot_reference.h:146</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 <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> |