blob: b6098e93faddaf3e9cccc205f5233896f7213caf [file]
<!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/transaction.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_51d145386ec5f52aa06ebf5e46944abc.html">iceberg</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">transaction.h</div></div>
</div><!--header-->
<div class="contents">
<a href="transaction_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> </div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment">/*</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * distributed with this work for additional information</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> * with the License. You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> *</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> *</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * software distributed under the License is distributed on an</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * KIND, either express or implied. See the License for the</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> * specific language governing permissions and limitations</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> * under the License.</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span><span class="comment"> */</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</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 &lt;cstdint&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include &lt;optional&gt;</span></div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &lt;vector&gt;</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="preprocessor">#include &quot;<a class="code" href="iceberg__export_8h.html">iceberg/iceberg_export.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="result_8h.html">iceberg/result.h</a>&quot;</span></div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</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="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><a class="code hl_namespace" href="namespaceiceberg.html">iceberg</a> {</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"><a class="line" href="namespaceiceberg.html#a36c3f79b6d1949f8c236ec91562bee4a"> 40</a></span><span class="keyword">enum class</span> <a class="code hl_enumeration" href="namespaceiceberg.html#a36c3f79b6d1949f8c236ec91562bee4a">TransactionKind</a> : uint8_t { kCreate, kUpdate };</div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"> 41</span> </div>
<div class="foldopen" id="foldopen00043" data-start="{" data-end="};">
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html"> 43</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1Transaction.html">Transaction</a> : <span class="keyword">public</span> std::enable_shared_from_this&lt;Transaction&gt; {</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> <a class="code hl_class" href="classiceberg_1_1Transaction.html">~Transaction</a>();</div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> </div>
<div class="line"><a id="l00048" name="l00048"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a7050c81e44819f3ffa87d3ac530543bd"> 48</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Transaction&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a7050c81e44819f3ffa87d3ac530543bd">Make</a>(std::shared_ptr&lt;Table&gt; table,</div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_enumeration" href="namespaceiceberg.html#a36c3f79b6d1949f8c236ec91562bee4a">TransactionKind</a> kind);</div>
<div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#aabbb6aa27a8426bd0c02da73000b858e"> 55</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Transaction&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#aabbb6aa27a8426bd0c02da73000b858e">Make</a>(</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> std::shared_ptr&lt;TransactionContext&gt; ctx);</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div>
<div class="line"><a id="l00059" name="l00059"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a7564979fbb0ecbaaf7d4795e10479b30"> 59</a></span> <span class="keyword">const</span> std::shared_ptr&lt;Table&gt;&amp; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a7564979fbb0ecbaaf7d4795e10479b30">table</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00060" name="l00060"></a><span class="lineno"> 60</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a02f087a02ee87cade90d360f1c2acf88"> 62</a></span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>* <a class="code hl_function" href="classiceberg_1_1Transaction.html#a02f087a02ee87cade90d360f1c2acf88">base</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
<div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a4b4d3f539895d4446c830f473e2d91ab"> 65</a></span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>&amp; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a4b4d3f539895d4446c830f473e2d91ab">current</a>() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a8ac70a8aafc809c6fd4ac222ad552214"> 71</a></span> std::string <a class="code hl_function" href="classiceberg_1_1Transaction.html#a8ac70a8aafc809c6fd4ac222ad552214">MetadataFileLocation</a>(std::string_view filename) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a9ca9c53f2f44580f3dd5398dd9c8e1a5"> 78</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Table&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a9ca9c53f2f44580f3dd5398dd9c8e1a5">Commit</a>();</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
<div class="line"><a id="l00082" name="l00082"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#aa0a381cce739dbffa448bda11be9d472"> 82</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;UpdatePartitionSpec&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#aa0a381cce739dbffa448bda11be9d472">NewUpdatePartitionSpec</a>();</div>
<div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> </div>
<div class="line"><a id="l00086" name="l00086"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#ad0a7901ee21eeb2556d7b8e97cc7e279"> 86</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;UpdateProperties&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#ad0a7901ee21eeb2556d7b8e97cc7e279">NewUpdateProperties</a>();</div>
<div class="line"><a id="l00087" name="l00087"></a><span class="lineno"> 87</span> </div>
<div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a241229c97cec17d89ca6334a33c026d8"> 90</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;UpdateSortOrder&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a241229c97cec17d89ca6334a33c026d8">NewUpdateSortOrder</a>();</div>
<div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#aad5fd7485f0e11f1047adc7416e9da4a"> 94</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;UpdateSchema&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#aad5fd7485f0e11f1047adc7416e9da4a">NewUpdateSchema</a>();</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div>
<div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a8509403309950e992125d77ba714f92c"> 98</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;ExpireSnapshots&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a8509403309950e992125d77ba714f92c">NewExpireSnapshots</a>();</div>
<div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div>
<div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#aa3bf8231c40b912ac2337cfda69bc567"> 102</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;UpdateStatistics&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#aa3bf8231c40b912ac2337cfda69bc567">NewUpdateStatistics</a>();</div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div>
<div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a69bfd3e2afeb35bc3f60e4545bc01d87"> 106</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;UpdatePartitionStatistics&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a69bfd3e2afeb35bc3f60e4545bc01d87">NewUpdatePartitionStatistics</a>();</div>
<div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div>
<div class="line"><a id="l00110" name="l00110"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a7ce15c77e26f8672f4bfe080ec04fec3"> 110</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;UpdateLocation&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a7ce15c77e26f8672f4bfe080ec04fec3">NewUpdateLocation</a>();</div>
<div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> </div>
<div class="line"><a id="l00113" name="l00113"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a75b55e9339360f09a7d6fa65e6cda236"> 113</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;FastAppend&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a75b55e9339360f09a7d6fa65e6cda236">NewFastAppend</a>();</div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#ac7f982e4bcf060e6427fbc572b615933"> 116</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;MergeAppend&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#ac7f982e4bcf060e6427fbc572b615933">NewMergeAppend</a>();</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> </div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a758efb031620b4bf81b9b2e5536acc2e"> 119</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;DeleteFiles&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a758efb031620b4bf81b9b2e5536acc2e">NewDeleteFiles</a>();</div>
<div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> </div>
<div class="line"><a id="l00122" name="l00122"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#aa2b1a60eb501f29d53d8ddb7d1bcd0ef"> 122</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;RowDelta&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#aa2b1a60eb501f29d53d8ddb7d1bcd0ef">NewRowDelta</a>();</div>
<div class="line"><a id="l00123" name="l00123"></a><span class="lineno"> 123</span> </div>
<div class="line"><a id="l00125" name="l00125"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#ad98cab2758f3417c994bc62af4431e4c"> 125</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;OverwriteFiles&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#ad98cab2758f3417c994bc62af4431e4c">NewOverwrite</a>();</div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"> 126</span> </div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#ad1ae2d92882565092349d0a88505a357"> 129</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;RewriteFiles&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#ad1ae2d92882565092349d0a88505a357">NewRewriteFiles</a>();</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a id="l00132" name="l00132"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a826952b68eea36e8ad8395f127c3c34b"> 132</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;SnapshotManager&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a826952b68eea36e8ad8395f127c3c34b">NewSnapshotManager</a>();</div>
<div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div>
<div class="line"><a id="l00136" name="l00136"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a76bc02e8cb9e5b08ab41b8463d744a45"> 136</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;SetSnapshot&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a76bc02e8cb9e5b08ab41b8463d744a45">NewSetSnapshot</a>();</div>
<div class="line"><a id="l00137" name="l00137"></a><span class="lineno"> 137</span> </div>
<div class="line"><a id="l00140" name="l00140"></a><span class="lineno"><a class="line" href="classiceberg_1_1Transaction.html#a02ec5bcd815d52692022ad0ee0f92fd3"> 140</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;UpdateSnapshotReference&gt;</a>&gt; <a class="code hl_function" href="classiceberg_1_1Transaction.html#a02ec5bcd815d52692022ad0ee0f92fd3">NewUpdateSnapshotReference</a>();</div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"> 141</span> </div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keyword">explicit</span> <a class="code hl_class" href="classiceberg_1_1Transaction.html">Transaction</a>(std::shared_ptr&lt;TransactionContext&gt; ctx);</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> </div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> Status AddUpdate(<span class="keyword">const</span> std::shared_ptr&lt;PendingUpdate&gt;&amp; update);</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
<div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> Status Apply(<a class="code hl_class" href="classiceberg_1_1PendingUpdate.html">PendingUpdate</a>&amp; updates);</div>
<div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div>
<div class="line"><a id="l00150" name="l00150"></a><span class="lineno"> 150</span> <span class="comment">// Helper methods for applying different types of updates</span></div>
<div class="line"><a id="l00151" name="l00151"></a><span class="lineno"> 151</span> Status ApplyExpireSnapshots(<a class="code hl_class" href="classiceberg_1_1ExpireSnapshots.html">ExpireSnapshots</a>&amp; update);</div>
<div class="line"><a id="l00152" name="l00152"></a><span class="lineno"> 152</span> Status ApplySetSnapshot(<a class="code hl_class" href="classiceberg_1_1SetSnapshot.html">SetSnapshot</a>&amp; update);</div>
<div class="line"><a id="l00153" name="l00153"></a><span class="lineno"> 153</span> Status ApplyUpdateLocation(<a class="code hl_class" href="classiceberg_1_1UpdateLocation.html">UpdateLocation</a>&amp; update);</div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"> 154</span> Status ApplyUpdatePartitionSpec(<a class="code hl_class" href="classiceberg_1_1UpdatePartitionSpec.html">UpdatePartitionSpec</a>&amp; update);</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> Status ApplyUpdatePartitionStatistics(<a class="code hl_class" href="classiceberg_1_1UpdatePartitionStatistics.html">UpdatePartitionStatistics</a>&amp; update);</div>
<div class="line"><a id="l00156" name="l00156"></a><span class="lineno"> 156</span> Status ApplyUpdateProperties(<a class="code hl_class" href="classiceberg_1_1UpdateProperties.html">UpdateProperties</a>&amp; update);</div>
<div class="line"><a id="l00157" name="l00157"></a><span class="lineno"> 157</span> Status ApplyUpdateSchema(<a class="code hl_class" href="classiceberg_1_1UpdateSchema.html">UpdateSchema</a>&amp; update);</div>
<div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> Status ApplyUpdateSnapshot(<a class="code hl_class" href="classiceberg_1_1SnapshotUpdate.html">SnapshotUpdate</a>&amp; update);</div>
<div class="line"><a id="l00159" name="l00159"></a><span class="lineno"> 159</span> Status ApplyUpdateSnapshotReference(<a class="code hl_class" href="classiceberg_1_1UpdateSnapshotReference.html">UpdateSnapshotReference</a>&amp; update);</div>
<div class="line"><a id="l00160" name="l00160"></a><span class="lineno"> 160</span> Status ApplyUpdateSortOrder(<a class="code hl_class" href="classiceberg_1_1UpdateSortOrder.html">UpdateSortOrder</a>&amp; update);</div>
<div class="line"><a id="l00161" name="l00161"></a><span class="lineno"> 161</span> Status ApplyUpdateStatistics(<a class="code hl_class" href="classiceberg_1_1UpdateStatistics.html">UpdateStatistics</a>&amp; update);</div>
<div class="line"><a id="l00162" name="l00162"></a><span class="lineno"> 162</span> </div>
<div class="line"><a id="l00164" name="l00164"></a><span class="lineno"> 164</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;Table&gt;</a>&gt; CommitOnce(<span class="keywordtype">bool</span> is_first_attempt);</div>
<div class="line"><a id="l00165" name="l00165"></a><span class="lineno"> 165</span> </div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> <span class="keywordtype">bool</span> CanRetry() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00168" name="l00168"></a><span class="lineno"> 168</span> </div>
<div class="line"><a id="l00169" name="l00169"></a><span class="lineno"> 169</span> <span class="keyword">private</span>:</div>
<div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> <span class="keyword">friend</span> <span class="keyword">class </span><a class="code hl_class" href="classiceberg_1_1PendingUpdate.html">PendingUpdate</a>;</div>
<div class="line"><a id="l00171" name="l00171"></a><span class="lineno"> 171</span> </div>
<div class="line"><a id="l00172" name="l00172"></a><span class="lineno"> 172</span> <span class="comment">// Shared context owning the table, metadata builder, and kind.</span></div>
<div class="line"><a id="l00173" name="l00173"></a><span class="lineno"> 173</span> std::shared_ptr&lt;TransactionContext&gt; ctx_;</div>
<div class="line"><a id="l00174" name="l00174"></a><span class="lineno"> 174</span> <span class="comment">// Keep track of all created pending updates.</span></div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"> 175</span> std::vector&lt;std::shared_ptr&lt;PendingUpdate&gt;&gt; pending_updates_;</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> </div>
<div class="line"><a id="l00177" name="l00177"></a><span class="lineno"> 177</span> <span class="comment">// To make the state simple, we require updates are added and committed in order.</span></div>
<div class="line"><a id="l00178" name="l00178"></a><span class="lineno"> 178</span> <span class="keywordtype">bool</span> last_update_committed_ = <span class="keyword">true</span>;</div>
<div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> <span class="comment">// Tracks if transaction has been committed to prevent double-commit</span></div>
<div class="line"><a id="l00180" name="l00180"></a><span class="lineno"> 180</span> <span class="keywordtype">bool</span> committed_ = <span class="keyword">false</span>;</div>
<div class="line"><a id="l00181" name="l00181"></a><span class="lineno"> 181</span>};</div>
</div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"> 182</span> </div>
<div class="foldopen" id="foldopen00184" data-start="{" data-end="};">
<div class="line"><a id="l00184" name="l00184"></a><span class="lineno"><a class="line" href="classiceberg_1_1TransactionContext.html"> 184</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1TransactionContext.html">TransactionContext</a> {</div>
<div class="line"><a id="l00185" name="l00185"></a><span class="lineno"> 185</span> <span class="keyword">public</span>:</div>
<div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> <a class="code hl_class" href="classiceberg_1_1TransactionContext.html">TransactionContext</a>();</div>
<div class="line"><a id="l00187" name="l00187"></a><span class="lineno"> 187</span> <a class="code hl_class" href="classiceberg_1_1TransactionContext.html">~TransactionContext</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">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::shared_ptr&lt;TransactionContext&gt;</a>&gt; Make(std::shared_ptr&lt;Table&gt; table,</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <a class="code hl_enumeration" href="namespaceiceberg.html#a36c3f79b6d1949f8c236ec91562bee4a">TransactionKind</a> kind);</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span> </div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>* base() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableMetadata.html">TableMetadata</a>&amp; current() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span> std::string MetadataFileLocation(std::string_view filename) <span class="keyword">const</span>;</div>
<div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result&lt;std::unique_ptr&lt;LocationProvider&gt;</a>&gt; NewLocationProvider() <span class="keyword">const</span>;</div>
<div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</span> </div>
<div class="line"><a id="l00197" name="l00197"></a><span class="lineno"> 197</span> std::shared_ptr&lt;Table&gt; table;</div>
<div class="line"><a id="l00198" name="l00198"></a><span class="lineno"> 198</span> std::unique_ptr&lt;TableMetadataBuilder&gt; metadata_builder;</div>
<div class="line"><a id="l00199" name="l00199"></a><span class="lineno"> 199</span> <a class="code hl_enumeration" href="namespaceiceberg.html#a36c3f79b6d1949f8c236ec91562bee4a">TransactionKind</a> kind;</div>
<div class="line"><a id="l00200" name="l00200"></a><span class="lineno"> 200</span> <span class="comment">// If PendingUpdate is created directly from Table, this is nullopt;</span></div>
<div class="line"><a id="l00201" name="l00201"></a><span class="lineno"> 201</span> <span class="comment">// otherwise, it holds a weak pointer to the Transaction that created it.</span></div>
<div class="line"><a id="l00202" name="l00202"></a><span class="lineno"> 202</span> std::optional&lt;std::weak_ptr&lt;Transaction&gt;&gt; transaction;</div>
<div class="line"><a id="l00203" name="l00203"></a><span class="lineno"> 203</span>};</div>
</div>
<div class="line"><a id="l00204" name="l00204"></a><span class="lineno"> 204</span> </div>
<div class="line"><a id="l00205" name="l00205"></a><span class="lineno"> 205</span>} <span class="comment">// namespace iceberg</span></div>
<div class="ttc" id="aclassiceberg_1_1ExpireSnapshots_html"><div class="ttname"><a href="classiceberg_1_1ExpireSnapshots.html">iceberg::ExpireSnapshots</a></div><div class="ttdoc">API for removing old snapshots from a table.</div><div class="ttdef"><b>Definition</b> expire_snapshots.h:68</div></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_1SetSnapshot_html"><div class="ttname"><a href="classiceberg_1_1SetSnapshot.html">iceberg::SetSnapshot</a></div><div class="ttdoc">Sets the current snapshot directly or by rolling back.</div><div class="ttdef"><b>Definition</b> set_snapshot.h:37</div></div>
<div class="ttc" id="aclassiceberg_1_1SnapshotUpdate_html"><div class="ttname"><a href="classiceberg_1_1SnapshotUpdate.html">iceberg::SnapshotUpdate</a></div><div class="ttdoc">API for table changes that produce snapshots.</div><div class="ttdef"><b>Definition</b> snapshot_update.h:49</div></div>
<div class="ttc" id="aclassiceberg_1_1TransactionContext_html"><div class="ttname"><a href="classiceberg_1_1TransactionContext.html">iceberg::TransactionContext</a></div><div class="ttdoc">Shared context between Transaction and PendingUpdate instances.</div><div class="ttdef"><b>Definition</b> transaction.h:184</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html"><div class="ttname"><a href="classiceberg_1_1Transaction.html">iceberg::Transaction</a></div><div class="ttdoc">A transaction for performing multiple updates to a table.</div><div class="ttdef"><b>Definition</b> transaction.h:43</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a02ec5bcd815d52692022ad0ee0f92fd3"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a02ec5bcd815d52692022ad0ee0f92fd3">iceberg::Transaction::NewUpdateSnapshotReference</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; UpdateSnapshotReference &gt; &gt; NewUpdateSnapshotReference()</div><div class="ttdoc">Create a new UpdateSnapshotReference to update snapshot references (branches and tags) and commit the...</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a02f087a02ee87cade90d360f1c2acf88"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a02f087a02ee87cade90d360f1c2acf88">iceberg::Transaction::base</a></div><div class="ttdeci">const TableMetadata * base() const</div><div class="ttdoc">Returns the base metadata without any changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a241229c97cec17d89ca6334a33c026d8"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a241229c97cec17d89ca6334a33c026d8">iceberg::Transaction::NewUpdateSortOrder</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; UpdateSortOrder &gt; &gt; NewUpdateSortOrder()</div><div class="ttdoc">Create a new UpdateSortOrder to update the table sort order and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a4b4d3f539895d4446c830f473e2d91ab"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a4b4d3f539895d4446c830f473e2d91ab">iceberg::Transaction::current</a></div><div class="ttdeci">const TableMetadata &amp; current() const</div><div class="ttdoc">Return the current metadata with staged changes applied.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a69bfd3e2afeb35bc3f60e4545bc01d87"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a69bfd3e2afeb35bc3f60e4545bc01d87">iceberg::Transaction::NewUpdatePartitionStatistics</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; UpdatePartitionStatistics &gt; &gt; NewUpdatePartitionStatistics()</div><div class="ttdoc">Create a new UpdatePartitionStatistics to update partition statistics and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a7050c81e44819f3ffa87d3ac530543bd"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a7050c81e44819f3ffa87d3ac530543bd">iceberg::Transaction::Make</a></div><div class="ttdeci">static Result&lt; std::shared_ptr&lt; Transaction &gt; &gt; Make(std::shared_ptr&lt; Table &gt; table, TransactionKind kind)</div><div class="ttdoc">Create a new transaction.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a7564979fbb0ecbaaf7d4795e10479b30"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a7564979fbb0ecbaaf7d4795e10479b30">iceberg::Transaction::table</a></div><div class="ttdeci">const std::shared_ptr&lt; Table &gt; &amp; table() const</div><div class="ttdoc">Return the Table that this transaction will update.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a758efb031620b4bf81b9b2e5536acc2e"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a758efb031620b4bf81b9b2e5536acc2e">iceberg::Transaction::NewDeleteFiles</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; DeleteFiles &gt; &gt; NewDeleteFiles()</div><div class="ttdoc">Create a new DeleteFiles to delete data files and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a75b55e9339360f09a7d6fa65e6cda236"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a75b55e9339360f09a7d6fa65e6cda236">iceberg::Transaction::NewFastAppend</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; FastAppend &gt; &gt; NewFastAppend()</div><div class="ttdoc">Create a new FastAppend to append data files and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a76bc02e8cb9e5b08ab41b8463d744a45"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a76bc02e8cb9e5b08ab41b8463d744a45">iceberg::Transaction::NewSetSnapshot</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; SetSnapshot &gt; &gt; NewSetSnapshot()</div><div class="ttdoc">Create a new SetSnapshot to set the current snapshot or rollback to a previous snapshot and commit th...</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a7ce15c77e26f8672f4bfe080ec04fec3"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a7ce15c77e26f8672f4bfe080ec04fec3">iceberg::Transaction::NewUpdateLocation</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; UpdateLocation &gt; &gt; NewUpdateLocation()</div><div class="ttdoc">Create a new UpdateLocation to update the table location and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a826952b68eea36e8ad8395f127c3c34b"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a826952b68eea36e8ad8395f127c3c34b">iceberg::Transaction::NewSnapshotManager</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; SnapshotManager &gt; &gt; NewSnapshotManager()</div><div class="ttdoc">Create a new SnapshotManager to manage snapshots.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a8509403309950e992125d77ba714f92c"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a8509403309950e992125d77ba714f92c">iceberg::Transaction::NewExpireSnapshots</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; ExpireSnapshots &gt; &gt; NewExpireSnapshots()</div><div class="ttdoc">Create a new ExpireSnapshots to remove expired snapshots and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a8ac70a8aafc809c6fd4ac222ad552214"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a8ac70a8aafc809c6fd4ac222ad552214">iceberg::Transaction::MetadataFileLocation</a></div><div class="ttdeci">std::string MetadataFileLocation(std::string_view filename) const</div><div class="ttdoc">Return the location of the metadata file with the given filename.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_a9ca9c53f2f44580f3dd5398dd9c8e1a5"><div class="ttname"><a href="classiceberg_1_1Transaction.html#a9ca9c53f2f44580f3dd5398dd9c8e1a5">iceberg::Transaction::Commit</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; Table &gt; &gt; Commit()</div><div class="ttdoc">Apply the pending changes from all actions and commit.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_aa0a381cce739dbffa448bda11be9d472"><div class="ttname"><a href="classiceberg_1_1Transaction.html#aa0a381cce739dbffa448bda11be9d472">iceberg::Transaction::NewUpdatePartitionSpec</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; UpdatePartitionSpec &gt; &gt; NewUpdatePartitionSpec()</div><div class="ttdoc">Create a new UpdatePartitionSpec to update the partition spec of this table and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_aa2b1a60eb501f29d53d8ddb7d1bcd0ef"><div class="ttname"><a href="classiceberg_1_1Transaction.html#aa2b1a60eb501f29d53d8ddb7d1bcd0ef">iceberg::Transaction::NewRowDelta</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; RowDelta &gt; &gt; NewRowDelta()</div><div class="ttdoc">Create a new RowDelta to add rows and row-level deletes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_aa3bf8231c40b912ac2337cfda69bc567"><div class="ttname"><a href="classiceberg_1_1Transaction.html#aa3bf8231c40b912ac2337cfda69bc567">iceberg::Transaction::NewUpdateStatistics</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; UpdateStatistics &gt; &gt; NewUpdateStatistics()</div><div class="ttdoc">Create a new UpdateStatistics to update table statistics and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_aabbb6aa27a8426bd0c02da73000b858e"><div class="ttname"><a href="classiceberg_1_1Transaction.html#aabbb6aa27a8426bd0c02da73000b858e">iceberg::Transaction::Make</a></div><div class="ttdeci">static Result&lt; std::shared_ptr&lt; Transaction &gt; &gt; Make(std::shared_ptr&lt; TransactionContext &gt; ctx)</div><div class="ttdoc">Create a detached transaction from an existing context.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_aad5fd7485f0e11f1047adc7416e9da4a"><div class="ttname"><a href="classiceberg_1_1Transaction.html#aad5fd7485f0e11f1047adc7416e9da4a">iceberg::Transaction::NewUpdateSchema</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; UpdateSchema &gt; &gt; NewUpdateSchema()</div><div class="ttdoc">Create a new UpdateSchema to alter the columns of this table and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_ac7f982e4bcf060e6427fbc572b615933"><div class="ttname"><a href="classiceberg_1_1Transaction.html#ac7f982e4bcf060e6427fbc572b615933">iceberg::Transaction::NewMergeAppend</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; MergeAppend &gt; &gt; NewMergeAppend()</div><div class="ttdoc">Create a new MergeAppend to append data files and merge manifests.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_ad0a7901ee21eeb2556d7b8e97cc7e279"><div class="ttname"><a href="classiceberg_1_1Transaction.html#ad0a7901ee21eeb2556d7b8e97cc7e279">iceberg::Transaction::NewUpdateProperties</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; UpdateProperties &gt; &gt; NewUpdateProperties()</div><div class="ttdoc">Create a new UpdateProperties to update table properties and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_ad1ae2d92882565092349d0a88505a357"><div class="ttname"><a href="classiceberg_1_1Transaction.html#ad1ae2d92882565092349d0a88505a357">iceberg::Transaction::NewRewriteFiles</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; RewriteFiles &gt; &gt; NewRewriteFiles()</div><div class="ttdoc">Create a new RewriteFiles to replace files in this table and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1Transaction_html_ad98cab2758f3417c994bc62af4431e4c"><div class="ttname"><a href="classiceberg_1_1Transaction.html#ad98cab2758f3417c994bc62af4431e4c">iceberg::Transaction::NewOverwrite</a></div><div class="ttdeci">Result&lt; std::shared_ptr&lt; OverwriteFiles &gt; &gt; NewOverwrite()</div><div class="ttdoc">Create a new OverwriteFiles to overwrite data files and commit the changes.</div></div>
<div class="ttc" id="aclassiceberg_1_1UpdateLocation_html"><div class="ttname"><a href="classiceberg_1_1UpdateLocation.html">iceberg::UpdateLocation</a></div><div class="ttdoc">Updating table location with a new base location.</div><div class="ttdef"><b>Definition</b> update_location.h:34</div></div>
<div class="ttc" id="aclassiceberg_1_1UpdatePartitionSpec_html"><div class="ttname"><a href="classiceberg_1_1UpdatePartitionSpec.html">iceberg::UpdatePartitionSpec</a></div><div class="ttdoc">API for partition spec evolution.</div><div class="ttdef"><b>Definition</b> update_partition_spec.h:44</div></div>
<div class="ttc" id="aclassiceberg_1_1UpdatePartitionStatistics_html"><div class="ttname"><a href="classiceberg_1_1UpdatePartitionStatistics.html">iceberg::UpdatePartitionStatistics</a></div><div class="ttdoc">Updates table partition statistics.</div><div class="ttdef"><b>Definition</b> update_partition_statistics.h:39</div></div>
<div class="ttc" id="aclassiceberg_1_1UpdateProperties_html"><div class="ttname"><a href="classiceberg_1_1UpdateProperties.html">iceberg::UpdateProperties</a></div><div class="ttdoc">Updates table properties.</div><div class="ttdef"><b>Definition</b> update_properties.h:39</div></div>
<div class="ttc" id="aclassiceberg_1_1UpdateSchema_html"><div class="ttname"><a href="classiceberg_1_1UpdateSchema.html">iceberg::UpdateSchema</a></div><div class="ttdoc">API for schema evolution.</div><div class="ttdef"><b>Definition</b> update_schema.h:45</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_1UpdateSortOrder_html"><div class="ttname"><a href="classiceberg_1_1UpdateSortOrder.html">iceberg::UpdateSortOrder</a></div><div class="ttdoc">Updating table sort order with a newly created order.</div><div class="ttdef"><b>Definition</b> update_sort_order.h:37</div></div>
<div class="ttc" id="aclassiceberg_1_1UpdateStatistics_html"><div class="ttname"><a href="classiceberg_1_1UpdateStatistics.html">iceberg::UpdateStatistics</a></div><div class="ttdoc">Updates table statistics.</div><div class="ttdef"><b>Definition</b> update_statistics.h:39</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_a36c3f79b6d1949f8c236ec91562bee4a"><div class="ttname"><a href="namespaceiceberg.html#a36c3f79b6d1949f8c236ec91562bee4a">iceberg::TransactionKind</a></div><div class="ttdeci">TransactionKind</div><div class="ttdoc">Whether a transaction creates a new table or updates an existing one.</div><div class="ttdef"><b>Definition</b> transaction.h:40</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&lt; T, E &gt; 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="astructiceberg_1_1TableMetadata_html"><div class="ttname"><a href="structiceberg_1_1TableMetadata.html">iceberg::TableMetadata</a></div><div class="ttdoc">Represents the metadata for an Iceberg table.</div><div class="ttdef"><b>Definition</b> table_metadata.h:73</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>