| <!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/snapshot_manager.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">snapshot_manager.h</div></div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="snapshot__manager_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> </div> |
| <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</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="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include "<a class="code" href="result_8h.html">iceberg/result.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="type__fwd_8h.html">iceberg/type_fwd.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="error__collector_8h.html">iceberg/util/error_collector.h</a>"</span></div> |
| <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</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="foldopen00050" data-start="{" data-end="};"> |
| <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html"> 50</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a> : <span class="keyword">public</span> <a class="code hl_class" href="classiceberg_1_1ErrorCollector.html">ErrorCollector</a> {</div> |
| <div class="line"><a id="l00051" name="l00051"></a><span class="lineno"> 51</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#ab2b7fdab0ca1e8605f343b591a505a9b"> 53</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<SnapshotManager></a>> <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#ab2b7fdab0ca1e8605f343b591a505a9b">Make</a>(std::shared_ptr<Table> table);</div> |
| <div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> </div> |
| <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#a418d568e839df97f7bcb856d7f179747"> 58</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<SnapshotManager></a>> <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#a418d568e839df97f7bcb856d7f179747">Make</a>(</div> |
| <div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> std::shared_ptr<Transaction> transaction);</div> |
| <div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div> |
| <div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">~SnapshotManager</a>() <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00062" name="l00062"></a><span class="lineno"> 62</span> </div> |
| <div class="line"><a id="l00068" name="l00068"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#ab60628b03913f1a4d2b624399af130cb"> 68</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#ab60628b03913f1a4d2b624399af130cb">Cherrypick</a>(int64_t snapshot_id);</div> |
| <div class="line"><a id="l00069" name="l00069"></a><span class="lineno"> 69</span> </div> |
| <div class="line"><a id="l00074" name="l00074"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#a6b15c7298bda1a2967efaedf2e0a4805"> 74</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#a6b15c7298bda1a2967efaedf2e0a4805">SetCurrentSnapshot</a>(int64_t snapshot_id);</div> |
| <div class="line"><a id="l00075" name="l00075"></a><span class="lineno"> 75</span> </div> |
| <div class="line"><a id="l00080" name="l00080"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#a1ca5336955462dd098f3f2eedb5a0b2e"> 80</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#a1ca5336955462dd098f3f2eedb5a0b2e">RollbackToTime</a>(int64_t timestamp_ms);</div> |
| <div class="line"><a id="l00081" name="l00081"></a><span class="lineno"> 81</span> </div> |
| <div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#ac6ab9f78d03bbab1b9d206df564f6f23"> 87</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#ac6ab9f78d03bbab1b9d206df564f6f23">RollbackTo</a>(int64_t snapshot_id);</div> |
| <div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div> |
| <div class="line"><a id="l00095" name="l00095"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#aadee369ad7fbd83f72b607ab76a674ad"> 95</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#aadee369ad7fbd83f72b607ab76a674ad">CreateBranch</a>(<span class="keyword">const</span> std::string& name);</div> |
| <div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> </div> |
| <div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#a525ee075af2d279ef383baec80b25feb"> 102</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#a525ee075af2d279ef383baec80b25feb">CreateBranch</a>(<span class="keyword">const</span> std::string& name, int64_t snapshot_id);</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_1SnapshotManager.html#ad0349e69da84c17e95238499aed8c0d2"> 109</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#ad0349e69da84c17e95238499aed8c0d2">CreateTag</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="l00115" name="l00115"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#acfa30c80bfa16531b86e8725b38a98b2"> 115</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#acfa30c80bfa16531b86e8725b38a98b2">RemoveBranch</a>(<span class="keyword">const</span> std::string& name);</div> |
| <div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> </div> |
| <div class="line"><a id="l00121" name="l00121"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#a306e48e9f5d9f7b45ebc33491bf67772"> 121</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#a306e48e9f5d9f7b45ebc33491bf67772">RemoveTag</a>(<span class="keyword">const</span> std::string& name);</div> |
| <div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div> |
| <div class="line"><a id="l00128" name="l00128"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#a4b22b00bd9d5293642e165ff6069a004"> 128</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#a4b22b00bd9d5293642e165ff6069a004">ReplaceTag</a>(<span class="keyword">const</span> std::string& name, int64_t snapshot_id);</div> |
| <div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> </div> |
| <div class="line"><a id="l00135" name="l00135"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#ab94242a00fc7f93c2d2a636eb5c74b0c"> 135</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#ab94242a00fc7f93c2d2a636eb5c74b0c">ReplaceBranch</a>(<span class="keyword">const</span> std::string& name, int64_t snapshot_id);</div> |
| <div class="line"><a id="l00136" name="l00136"></a><span class="lineno"> 136</span> </div> |
| <div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#a0a712e72371916977e57df6370ac70d7"> 144</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#a0a712e72371916977e57df6370ac70d7">ReplaceBranch</a>(<span class="keyword">const</span> std::string& from, <span class="keyword">const</span> std::string& to);</div> |
| <div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> </div> |
| <div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#ad623cbcd0f3868ba8ee8554b86eeb34b"> 154</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#ad623cbcd0f3868ba8ee8554b86eeb34b">FastForwardBranch</a>(<span class="keyword">const</span> std::string& from, <span class="keyword">const</span> std::string& to);</div> |
| <div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div> |
| <div class="line"><a id="l00161" name="l00161"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#ab2227f4b81eb2914817e4c3a3b7bb3c7"> 161</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#ab2227f4b81eb2914817e4c3a3b7bb3c7">RenameBranch</a>(<span class="keyword">const</span> std::string& name, <span class="keyword">const</span> std::string& new_name);</div> |
| <div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div> |
| <div class="line"><a id="l00168" name="l00168"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#afba03f50a532714e6040166ae2765859"> 168</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#afba03f50a532714e6040166ae2765859">SetMinSnapshotsToKeep</a>(<span class="keyword">const</span> std::string& branch_name,</div> |
| <div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> int32_t min_snapshots_to_keep);</div> |
| <div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> </div> |
| <div class="line"><a id="l00176" name="l00176"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#a1d0927fd7c4d54c6fa740d7653cf8904"> 176</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#a1d0927fd7c4d54c6fa740d7653cf8904">SetMaxSnapshotAgeMs</a>(<span class="keyword">const</span> std::string& branch_name,</div> |
| <div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> int64_t max_snapshot_age_ms);</div> |
| <div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> </div> |
| <div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#a85a6637511fe63774bf2aef83992d506"> 184</a></span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>& <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#a85a6637511fe63774bf2aef83992d506">SetMaxRefAgeMs</a>(<span class="keyword">const</span> std::string& name, int64_t max_ref_age_ms);</div> |
| <div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> </div> |
| <div class="line"><a id="l00187" name="l00187"></a><span class="lineno"><a class="line" href="classiceberg_1_1SnapshotManager.html#a57be94c9cc26978a4dedf87e71f169e3"> 187</a></span> Status <a class="code hl_function" href="classiceberg_1_1SnapshotManager.html#a57be94c9cc26978a4dedf87e71f169e3">Commit</a>();</div> |
| <div class="line"><a id="l00188" name="l00188"></a><span class="lineno"> 188</span> </div> |
| <div class="line"><a id="l00189" name="l00189"></a><span class="lineno"> 189</span> <span class="keyword">private</span>:</div> |
| <div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <a class="code hl_class" href="classiceberg_1_1SnapshotManager.html">SnapshotManager</a>(std::shared_ptr<Transaction> transaction, <span class="keywordtype">bool</span> is_external_transaction);</div> |
| <div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> </div> |
| <div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<UpdateSnapshotReference></a>> UpdateSnapshotReferencesOperation();</div> |
| <div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> </div> |
| <div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> Status CommitIfRefUpdatesExist();</div> |
| <div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> </div> |
| <div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> std::shared_ptr<Transaction> transaction_;</div> |
| <div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <span class="keyword">const</span> <span class="keywordtype">bool</span> is_external_transaction_;</div> |
| <div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> std::shared_ptr<UpdateSnapshotReference> update_snap_refs_;</div> |
| <div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span>};</div> |
| </div> |
| <div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> </div> |
| <div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span>} <span class="comment">// namespace iceberg</span></div> |
| <div class="ttc" id="aclassiceberg_1_1ErrorCollector_html"><div class="ttname"><a href="classiceberg_1_1ErrorCollector.html">iceberg::ErrorCollector</a></div><div class="ttdoc">Base class for collecting errors in the builder pattern.</div><div class="ttdef"><b>Definition</b> error_collector.h:93</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html">iceberg::SnapshotManager</a></div><div class="ttdoc">API for managing snapshots.</div><div class="ttdef"><b>Definition</b> snapshot_manager.h:50</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_a0a712e72371916977e57df6370ac70d7"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#a0a712e72371916977e57df6370ac70d7">iceberg::SnapshotManager::ReplaceBranch</a></div><div class="ttdeci">SnapshotManager & ReplaceBranch(const std::string &from, const std::string &to)</div><div class="ttdoc">Replace the 'from' branch to point to the 'to' snapshot. The 'to' will remain unchanged,...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_a1ca5336955462dd098f3f2eedb5a0b2e"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#a1ca5336955462dd098f3f2eedb5a0b2e">iceberg::SnapshotManager::RollbackToTime</a></div><div class="ttdeci">SnapshotManager & RollbackToTime(int64_t timestamp_ms)</div><div class="ttdoc">Roll this table's data back to the last snapshot before the given timestamp.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_a1d0927fd7c4d54c6fa740d7653cf8904"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#a1d0927fd7c4d54c6fa740d7653cf8904">iceberg::SnapshotManager::SetMaxSnapshotAgeMs</a></div><div class="ttdeci">SnapshotManager & SetMaxSnapshotAgeMs(const std::string &branch_name, int64_t max_snapshot_age_ms)</div><div class="ttdoc">Update the max snapshot age for a branch.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_a306e48e9f5d9f7b45ebc33491bf67772"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#a306e48e9f5d9f7b45ebc33491bf67772">iceberg::SnapshotManager::RemoveTag</a></div><div class="ttdeci">SnapshotManager & RemoveTag(const std::string &name)</div><div class="ttdoc">Remove the tag with the given name.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_a418d568e839df97f7bcb856d7f179747"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#a418d568e839df97f7bcb856d7f179747">iceberg::SnapshotManager::Make</a></div><div class="ttdeci">static Result< std::shared_ptr< SnapshotManager > > Make(std::shared_ptr< Transaction > transaction)</div><div class="ttdoc">Create a SnapshotManager from an existing transaction.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_a4b22b00bd9d5293642e165ff6069a004"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#a4b22b00bd9d5293642e165ff6069a004">iceberg::SnapshotManager::ReplaceTag</a></div><div class="ttdeci">SnapshotManager & ReplaceTag(const std::string &name, int64_t snapshot_id)</div><div class="ttdoc">Replace the tag with the given name to point to the specified snapshot.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_a525ee075af2d279ef383baec80b25feb"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#a525ee075af2d279ef383baec80b25feb">iceberg::SnapshotManager::CreateBranch</a></div><div class="ttdeci">SnapshotManager & CreateBranch(const std::string &name, int64_t snapshot_id)</div><div class="ttdoc">Create a new branch pointing to the given snapshot id.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_a57be94c9cc26978a4dedf87e71f169e3"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#a57be94c9cc26978a4dedf87e71f169e3">iceberg::SnapshotManager::Commit</a></div><div class="ttdeci">Status Commit()</div><div class="ttdoc">Commit all pending changes.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_a6b15c7298bda1a2967efaedf2e0a4805"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#a6b15c7298bda1a2967efaedf2e0a4805">iceberg::SnapshotManager::SetCurrentSnapshot</a></div><div class="ttdeci">SnapshotManager & SetCurrentSnapshot(int64_t snapshot_id)</div><div class="ttdoc">Roll this table's data back to a specific snapshot identified by id.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_a85a6637511fe63774bf2aef83992d506"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#a85a6637511fe63774bf2aef83992d506">iceberg::SnapshotManager::SetMaxRefAgeMs</a></div><div class="ttdeci">SnapshotManager & SetMaxRefAgeMs(const std::string &name, int64_t max_ref_age_ms)</div><div class="ttdoc">Update the retention policy for a reference.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_aadee369ad7fbd83f72b607ab76a674ad"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#aadee369ad7fbd83f72b607ab76a674ad">iceberg::SnapshotManager::CreateBranch</a></div><div class="ttdeci">SnapshotManager & CreateBranch(const std::string &name)</div><div class="ttdoc">Create a new branch. The branch will point to current snapshot if the current snapshot is not NULL....</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_ab2227f4b81eb2914817e4c3a3b7bb3c7"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#ab2227f4b81eb2914817e4c3a3b7bb3c7">iceberg::SnapshotManager::RenameBranch</a></div><div class="ttdeci">SnapshotManager & RenameBranch(const std::string &name, const std::string &new_name)</div><div class="ttdoc">Rename a branch.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_ab2b7fdab0ca1e8605f343b591a505a9b"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#ab2b7fdab0ca1e8605f343b591a505a9b">iceberg::SnapshotManager::Make</a></div><div class="ttdeci">static Result< std::shared_ptr< SnapshotManager > > Make(std::shared_ptr< Table > table)</div><div class="ttdoc">Create a SnapshotManager that owns its own transaction.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_ab60628b03913f1a4d2b624399af130cb"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#ab60628b03913f1a4d2b624399af130cb">iceberg::SnapshotManager::Cherrypick</a></div><div class="ttdeci">SnapshotManager & Cherrypick(int64_t snapshot_id)</div><div class="ttdoc">Apply supported changes in given snapshot and create a new snapshot which will be set as the current ...</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_ab94242a00fc7f93c2d2a636eb5c74b0c"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#ab94242a00fc7f93c2d2a636eb5c74b0c">iceberg::SnapshotManager::ReplaceBranch</a></div><div class="ttdeci">SnapshotManager & ReplaceBranch(const std::string &name, int64_t snapshot_id)</div><div class="ttdoc">Replace the branch with the given name to point to the specified snapshot.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_ac6ab9f78d03bbab1b9d206df564f6f23"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#ac6ab9f78d03bbab1b9d206df564f6f23">iceberg::SnapshotManager::RollbackTo</a></div><div class="ttdeci">SnapshotManager & RollbackTo(int64_t snapshot_id)</div><div class="ttdoc">Rollback table's state to a specific snapshot identified by id.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_acfa30c80bfa16531b86e8725b38a98b2"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#acfa30c80bfa16531b86e8725b38a98b2">iceberg::SnapshotManager::RemoveBranch</a></div><div class="ttdeci">SnapshotManager & RemoveBranch(const std::string &name)</div><div class="ttdoc">Remove a branch by name.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_ad0349e69da84c17e95238499aed8c0d2"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#ad0349e69da84c17e95238499aed8c0d2">iceberg::SnapshotManager::CreateTag</a></div><div class="ttdeci">SnapshotManager & CreateTag(const std::string &name, int64_t snapshot_id)</div><div class="ttdoc">Create a new tag pointing to the given snapshot id.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_ad623cbcd0f3868ba8ee8554b86eeb34b"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#ad623cbcd0f3868ba8ee8554b86eeb34b">iceberg::SnapshotManager::FastForwardBranch</a></div><div class="ttdeci">SnapshotManager & FastForwardBranch(const std::string &from, const std::string &to)</div><div class="ttdoc">Perform a fast-forward of 'from' up to the 'to' snapshot if 'from' is an ancestor of 'to'....</div></div> |
| <div class="ttc" id="aclassiceberg_1_1SnapshotManager_html_afba03f50a532714e6040166ae2765859"><div class="ttname"><a href="classiceberg_1_1SnapshotManager.html#afba03f50a532714e6040166ae2765859">iceberg::SnapshotManager::SetMinSnapshotsToKeep</a></div><div class="ttdeci">SnapshotManager & SetMinSnapshotsToKeep(const std::string &branch_name, int32_t min_snapshots_to_keep)</div><div class="ttdoc">Update the minimum number of snapshots to keep for a branch.</div></div> |
| <div class="ttc" id="aerror__collector_8h_html"><div class="ttname"><a href="error__collector_8h.html">error_collector.h</a></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="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="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> |