blob: 296a85c4f95a39e77e3168aeb8051505bec28bdb [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>iceberg-cpp: iceberg/catalog.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">iceberg-cpp
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_f51fe74ea6bc2b1b900619895eaa63be.html">iceberg</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle"><div class="title">catalog.h</div></div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno"> 1</span><span class="comment">/*</span></div>
<div class="line"><a id="l00002" name="l00002"></a><span class="lineno"> 2</span><span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div>
<div class="line"><a id="l00003" name="l00003"></a><span class="lineno"> 3</span><span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div>
<div class="line"><a id="l00004" name="l00004"></a><span class="lineno"> 4</span><span class="comment"> * distributed with this work for additional information</span></div>
<div class="line"><a id="l00005" name="l00005"></a><span class="lineno"> 5</span><span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div>
<div class="line"><a id="l00006" name="l00006"></a><span class="lineno"> 6</span><span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div>
<div class="line"><a id="l00007" name="l00007"></a><span class="lineno"> 7</span><span class="comment"> * &quot;License&quot;); you may not use this file except in compliance</span></div>
<div class="line"><a id="l00008" name="l00008"></a><span class="lineno"> 8</span><span class="comment"> * with the License. You may obtain a copy of the License at</span></div>
<div class="line"><a id="l00009" name="l00009"></a><span class="lineno"> 9</span><span class="comment"> *</span></div>
<div class="line"><a id="l00010" name="l00010"></a><span class="lineno"> 10</span><span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div>
<div class="line"><a id="l00011" name="l00011"></a><span class="lineno"> 11</span><span class="comment"> *</span></div>
<div class="line"><a id="l00012" name="l00012"></a><span class="lineno"> 12</span><span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div>
<div class="line"><a id="l00013" name="l00013"></a><span class="lineno"> 13</span><span class="comment"> * software distributed under the License is distributed on an</span></div>
<div class="line"><a id="l00014" name="l00014"></a><span class="lineno"> 14</span><span class="comment"> * &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno"> 15</span><span class="comment"> * KIND, either express or implied. See the License for the</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno"> 16</span><span class="comment"> * specific language governing permissions and limitations</span></div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno"> 17</span><span class="comment"> * under the License.</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno"> 18</span><span class="comment"> */</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno"> 19</span> </div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno"> 20</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno"> 21</span> </div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include &lt;string_view&gt;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span><span class="preprocessor">#include &lt;unordered_map&gt;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include &lt;unordered_set&gt;</span></div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span> </div>
<div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include &quot;iceberg/result.h&quot;</span></div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include &quot;<a class="code" href="table__identifier_8h.html">iceberg/table_identifier.h</a>&quot;</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span><span class="preprocessor">#include &quot;<a class="code" href="type__fwd_8h.html">iceberg/type_fwd.h</a>&quot;</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>iceberg {</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_1Catalog.html"> 39</a></span><span class="keyword">class </span>ICEBERG_EXPORT <a class="code hl_class" href="classiceberg_1_1Catalog.html">Catalog</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">virtual</span> <a class="code hl_class" href="classiceberg_1_1Catalog.html">~Catalog</a>() = <span class="keywordflow">default</span>;</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> </div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a6ca1f4412051d707d228c34716f0df77"> 44</a></span> <span class="keyword">virtual</span> std::string_view <a class="code hl_function" href="classiceberg_1_1Catalog.html#a6ca1f4412051d707d228c34716f0df77">name</a>() <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#afe33407448157e9f930c6c59857674ad"> 53</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1Catalog.html#afe33407448157e9f930c6c59857674ad">CreateNamespace</a>(</div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"> 54</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns,</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"> 55</span> <span class="keyword">const</span> std::unordered_map&lt;std::string, std::string&gt;&amp; properties) = 0;</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno"> 56</span> </div>
<div class="line"><a id="l00062" name="l00062"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#ad952c6a9e417565a982719c94a071f4c"> 62</a></span> <span class="keyword">virtual</span> Result&lt;std::vector&lt;Namespace&gt;&gt; <a class="code hl_function" href="classiceberg_1_1Catalog.html#ad952c6a9e417565a982719c94a071f4c">ListNamespaces</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div>
<div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#afc973b299c5cf15f745e85954e343702"> 69</a></span> <span class="keyword">virtual</span> Result&lt;std::unordered_map&lt;std::string, std::string&gt;&gt; <a class="code hl_function" href="classiceberg_1_1Catalog.html#afc973b299c5cf15f745e85954e343702">GetNamespaceProperties</a>(</div>
<div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00071" name="l00071"></a><span class="lineno"> 71</span> </div>
<div class="line"><a id="l00078" name="l00078"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a7a4ed5b2fb8eaa877792e2a8effa2f08"> 78</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1Catalog.html#a7a4ed5b2fb8eaa877792e2a8effa2f08">DropNamespace</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns) = 0;</div>
<div class="line"><a id="l00079" name="l00079"></a><span class="lineno"> 79</span> </div>
<div class="line"><a id="l00084" name="l00084"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a10b42f8d47abcaf04e4af1e112dbb5ff"> 84</a></span> <span class="keyword">virtual</span> Result&lt;bool&gt; <a class="code hl_function" href="classiceberg_1_1Catalog.html#a10b42f8d47abcaf04e4af1e112dbb5ff">NamespaceExists</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00085" name="l00085"></a><span class="lineno"> 85</span> </div>
<div class="line"><a id="l00094" name="l00094"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a45740f35337266cce1dcf7257e561e0d"> 94</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1Catalog.html#a45740f35337266cce1dcf7257e561e0d">UpdateNamespaceProperties</a>(</div>
<div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns, <span class="keyword">const</span> std::unordered_map&lt;std::string, std::string&gt;&amp; updates,</div>
<div class="line"><a id="l00096" name="l00096"></a><span class="lineno"> 96</span> <span class="keyword">const</span> std::unordered_set&lt;std::string&gt;&amp; removals) = 0;</div>
<div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div>
<div class="line"><a id="l00103" name="l00103"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#acc91fba906944a22b3c9eb279335150f"> 103</a></span> <span class="keyword">virtual</span> Result&lt;std::vector&lt;TableIdentifier&gt;&gt; <a class="code hl_function" href="classiceberg_1_1Catalog.html#acc91fba906944a22b3c9eb279335150f">ListTables</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>&amp; ns) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00104" name="l00104"></a><span class="lineno"> 104</span> </div>
<div class="line"><a id="l00114" name="l00114"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a2061c315402a11ac7ecc1921513588db"> 114</a></span> <span class="keyword">virtual</span> Result&lt;std::shared_ptr&lt;Table&gt;&gt; <a class="code hl_function" href="classiceberg_1_1Catalog.html#a2061c315402a11ac7ecc1921513588db">CreateTable</a>(</div>
<div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier, <span class="keyword">const</span> std::shared_ptr&lt;Schema&gt;&amp; schema,</div>
<div class="line"><a id="l00116" name="l00116"></a><span class="lineno"> 116</span> <span class="keyword">const</span> std::shared_ptr&lt;PartitionSpec&gt;&amp; spec, <span class="keyword">const</span> std::shared_ptr&lt;SortOrder&gt;&amp; order,</div>
<div class="line"><a id="l00117" name="l00117"></a><span class="lineno"> 117</span> <span class="keyword">const</span> std::string&amp; location,</div>
<div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keyword">const</span> std::unordered_map&lt;std::string, std::string&gt;&amp; properties) = 0;</div>
<div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> </div>
<div class="line"><a id="l00126" name="l00126"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a6af4029f0916dea3671d54c45ead31e5"> 126</a></span> <span class="keyword">virtual</span> Result&lt;std::shared_ptr&lt;Table&gt;&gt; <a class="code hl_function" href="classiceberg_1_1Catalog.html#a6af4029f0916dea3671d54c45ead31e5">UpdateTable</a>(</div>
<div class="line"><a id="l00127" name="l00127"></a><span class="lineno"> 127</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier,</div>
<div class="line"><a id="l00128" name="l00128"></a><span class="lineno"> 128</span> <span class="keyword">const</span> std::vector&lt;std::unique_ptr&lt;TableRequirement&gt;&gt;&amp; requirements,</div>
<div class="line"><a id="l00129" name="l00129"></a><span class="lineno"> 129</span> <span class="keyword">const</span> std::vector&lt;std::unique_ptr&lt;TableUpdate&gt;&gt;&amp; updates) = 0;</div>
<div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> </div>
<div class="line"><a id="l00141" name="l00141"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a26a46a17e3553c82ad4979562f4f05d5"> 141</a></span> <span class="keyword">virtual</span> Result&lt;std::shared_ptr&lt;Transaction&gt;&gt; <a class="code hl_function" href="classiceberg_1_1Catalog.html#a26a46a17e3553c82ad4979562f4f05d5">StageCreateTable</a>(</div>
<div class="line"><a id="l00142" name="l00142"></a><span class="lineno"> 142</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier, <span class="keyword">const</span> std::shared_ptr&lt;Schema&gt;&amp; schema,</div>
<div class="line"><a id="l00143" name="l00143"></a><span class="lineno"> 143</span> <span class="keyword">const</span> std::shared_ptr&lt;PartitionSpec&gt;&amp; spec, <span class="keyword">const</span> std::shared_ptr&lt;SortOrder&gt;&amp; order,</div>
<div class="line"><a id="l00144" name="l00144"></a><span class="lineno"> 144</span> <span class="keyword">const</span> std::string&amp; location,</div>
<div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keyword">const</span> std::unordered_map&lt;std::string, std::string&gt;&amp; properties) = 0;</div>
<div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> </div>
<div class="line"><a id="l00154" name="l00154"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#ab66f167fbdf318d497bd9f41e740e7cd"> 154</a></span> <span class="keyword">virtual</span> Result&lt;bool&gt; <a class="code hl_function" href="classiceberg_1_1Catalog.html#ab66f167fbdf318d497bd9f41e740e7cd">TableExists</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier) <span class="keyword">const</span> = 0;</div>
<div class="line"><a id="l00155" name="l00155"></a><span class="lineno"> 155</span> </div>
<div class="line"><a id="l00166" name="l00166"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a12fe952356fb24be53f753cb1b4cf380"> 166</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1Catalog.html#a12fe952356fb24be53f753cb1b4cf380">DropTable</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier, <span class="keywordtype">bool</span> purge) = 0;</div>
<div class="line"><a id="l00167" name="l00167"></a><span class="lineno"> 167</span> </div>
<div class="line"><a id="l00175" name="l00175"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#afab77ea12f9a8d2db3fa6e0f731656d1"> 175</a></span> <span class="keyword">virtual</span> Status <a class="code hl_function" href="classiceberg_1_1Catalog.html#afab77ea12f9a8d2db3fa6e0f731656d1">RenameTable</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; from, <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; to) = 0;</div>
<div class="line"><a id="l00176" name="l00176"></a><span class="lineno"> 176</span> </div>
<div class="line"><a id="l00182" name="l00182"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#ab82d66ec150bb58007b9ece678461260"> 182</a></span> <span class="keyword">virtual</span> Result&lt;std::shared_ptr&lt;Table&gt;&gt; <a class="code hl_function" href="classiceberg_1_1Catalog.html#ab82d66ec150bb58007b9ece678461260">LoadTable</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier) = 0;</div>
<div class="line"><a id="l00183" name="l00183"></a><span class="lineno"> 183</span> </div>
<div class="line"><a id="l00189" name="l00189"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#af51de918a47128398c0c5dcabb9ae781"> 189</a></span> <span class="keyword">virtual</span> Result&lt;std::shared_ptr&lt;Table&gt;&gt; <a class="code hl_function" href="classiceberg_1_1Catalog.html#af51de918a47128398c0c5dcabb9ae781">RegisterTable</a>(</div>
<div class="line"><a id="l00190" name="l00190"></a><span class="lineno"> 190</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>&amp; identifier, <span class="keyword">const</span> std::string&amp; metadata_file_location) = 0;</div>
<div class="line"><a id="l00191" name="l00191"></a><span class="lineno"> 191</span>};</div>
</div>
<div class="line"><a id="l00192" name="l00192"></a><span class="lineno"> 192</span> </div>
<div class="line"><a id="l00193" name="l00193"></a><span class="lineno"> 193</span>} <span class="comment">// namespace iceberg</span></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html"><div class="ttname"><a href="classiceberg_1_1Catalog.html">iceberg::Catalog</a></div><div class="ttdoc">A Catalog API for table create, drop, and load operations.</div><div class="ttdef"><b>Definition</b> catalog.h:39</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_a10b42f8d47abcaf04e4af1e112dbb5ff"><div class="ttname"><a href="classiceberg_1_1Catalog.html#a10b42f8d47abcaf04e4af1e112dbb5ff">iceberg::Catalog::NamespaceExists</a></div><div class="ttdeci">virtual Result&lt; bool &gt; NamespaceExists(const Namespace &amp;ns) const =0</div><div class="ttdoc">Check whether the namespace exists.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_a12fe952356fb24be53f753cb1b4cf380"><div class="ttname"><a href="classiceberg_1_1Catalog.html#a12fe952356fb24be53f753cb1b4cf380">iceberg::Catalog::DropTable</a></div><div class="ttdeci">virtual Status DropTable(const TableIdentifier &amp;identifier, bool purge)=0</div><div class="ttdoc">Drop a table; optionally delete data and metadata files.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_a2061c315402a11ac7ecc1921513588db"><div class="ttname"><a href="classiceberg_1_1Catalog.html#a2061c315402a11ac7ecc1921513588db">iceberg::Catalog::CreateTable</a></div><div class="ttdeci">virtual Result&lt; std::shared_ptr&lt; Table &gt; &gt; CreateTable(const TableIdentifier &amp;identifier, const std::shared_ptr&lt; Schema &gt; &amp;schema, const std::shared_ptr&lt; PartitionSpec &gt; &amp;spec, const std::shared_ptr&lt; SortOrder &gt; &amp;order, const std::string &amp;location, const std::unordered_map&lt; std::string, std::string &gt; &amp;properties)=0</div><div class="ttdoc">Create a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_a26a46a17e3553c82ad4979562f4f05d5"><div class="ttname"><a href="classiceberg_1_1Catalog.html#a26a46a17e3553c82ad4979562f4f05d5">iceberg::Catalog::StageCreateTable</a></div><div class="ttdeci">virtual Result&lt; std::shared_ptr&lt; Transaction &gt; &gt; StageCreateTable(const TableIdentifier &amp;identifier, const std::shared_ptr&lt; Schema &gt; &amp;schema, const std::shared_ptr&lt; PartitionSpec &gt; &amp;spec, const std::shared_ptr&lt; SortOrder &gt; &amp;order, const std::string &amp;location, const std::unordered_map&lt; std::string, std::string &gt; &amp;properties)=0</div><div class="ttdoc">Start a transaction to create a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_a45740f35337266cce1dcf7257e561e0d"><div class="ttname"><a href="classiceberg_1_1Catalog.html#a45740f35337266cce1dcf7257e561e0d">iceberg::Catalog::UpdateNamespaceProperties</a></div><div class="ttdeci">virtual Status UpdateNamespaceProperties(const Namespace &amp;ns, const std::unordered_map&lt; std::string, std::string &gt; &amp;updates, const std::unordered_set&lt; std::string &gt; &amp;removals)=0</div><div class="ttdoc">Update a namespace's properties by applying additions and removals.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_a6af4029f0916dea3671d54c45ead31e5"><div class="ttname"><a href="classiceberg_1_1Catalog.html#a6af4029f0916dea3671d54c45ead31e5">iceberg::Catalog::UpdateTable</a></div><div class="ttdeci">virtual Result&lt; std::shared_ptr&lt; Table &gt; &gt; UpdateTable(const TableIdentifier &amp;identifier, const std::vector&lt; std::unique_ptr&lt; TableRequirement &gt; &gt; &amp;requirements, const std::vector&lt; std::unique_ptr&lt; TableUpdate &gt; &gt; &amp;updates)=0</div><div class="ttdoc">Update a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_a6ca1f4412051d707d228c34716f0df77"><div class="ttname"><a href="classiceberg_1_1Catalog.html#a6ca1f4412051d707d228c34716f0df77">iceberg::Catalog::name</a></div><div class="ttdeci">virtual std::string_view name() const =0</div><div class="ttdoc">Return the name for this catalog.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_a7a4ed5b2fb8eaa877792e2a8effa2f08"><div class="ttname"><a href="classiceberg_1_1Catalog.html#a7a4ed5b2fb8eaa877792e2a8effa2f08">iceberg::Catalog::DropNamespace</a></div><div class="ttdeci">virtual Status DropNamespace(const Namespace &amp;ns)=0</div><div class="ttdoc">Drop a namespace.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_ab66f167fbdf318d497bd9f41e740e7cd"><div class="ttname"><a href="classiceberg_1_1Catalog.html#ab66f167fbdf318d497bd9f41e740e7cd">iceberg::Catalog::TableExists</a></div><div class="ttdeci">virtual Result&lt; bool &gt; TableExists(const TableIdentifier &amp;identifier) const =0</div><div class="ttdoc">Check whether table exists.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_ab82d66ec150bb58007b9ece678461260"><div class="ttname"><a href="classiceberg_1_1Catalog.html#ab82d66ec150bb58007b9ece678461260">iceberg::Catalog::LoadTable</a></div><div class="ttdeci">virtual Result&lt; std::shared_ptr&lt; Table &gt; &gt; LoadTable(const TableIdentifier &amp;identifier)=0</div><div class="ttdoc">Load a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_acc91fba906944a22b3c9eb279335150f"><div class="ttname"><a href="classiceberg_1_1Catalog.html#acc91fba906944a22b3c9eb279335150f">iceberg::Catalog::ListTables</a></div><div class="ttdeci">virtual Result&lt; std::vector&lt; TableIdentifier &gt; &gt; ListTables(const Namespace &amp;ns) const =0</div><div class="ttdoc">Return all the identifiers under this namespace.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_ad952c6a9e417565a982719c94a071f4c"><div class="ttname"><a href="classiceberg_1_1Catalog.html#ad952c6a9e417565a982719c94a071f4c">iceberg::Catalog::ListNamespaces</a></div><div class="ttdeci">virtual Result&lt; std::vector&lt; Namespace &gt; &gt; ListNamespaces(const Namespace &amp;ns) const =0</div><div class="ttdoc">List child namespaces from the given namespace.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_af51de918a47128398c0c5dcabb9ae781"><div class="ttname"><a href="classiceberg_1_1Catalog.html#af51de918a47128398c0c5dcabb9ae781">iceberg::Catalog::RegisterTable</a></div><div class="ttdeci">virtual Result&lt; std::shared_ptr&lt; Table &gt; &gt; RegisterTable(const TableIdentifier &amp;identifier, const std::string &amp;metadata_file_location)=0</div><div class="ttdoc">Register a table with the catalog if it does not exist.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_afab77ea12f9a8d2db3fa6e0f731656d1"><div class="ttname"><a href="classiceberg_1_1Catalog.html#afab77ea12f9a8d2db3fa6e0f731656d1">iceberg::Catalog::RenameTable</a></div><div class="ttdeci">virtual Status RenameTable(const TableIdentifier &amp;from, const TableIdentifier &amp;to)=0</div><div class="ttdoc">Rename a table.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_afc973b299c5cf15f745e85954e343702"><div class="ttname"><a href="classiceberg_1_1Catalog.html#afc973b299c5cf15f745e85954e343702">iceberg::Catalog::GetNamespaceProperties</a></div><div class="ttdeci">virtual Result&lt; std::unordered_map&lt; std::string, std::string &gt; &gt; GetNamespaceProperties(const Namespace &amp;ns) const =0</div><div class="ttdoc">Get metadata properties for a namespace.</div></div>
<div class="ttc" id="aclassiceberg_1_1Catalog_html_afe33407448157e9f930c6c59857674ad"><div class="ttname"><a href="classiceberg_1_1Catalog.html#afe33407448157e9f930c6c59857674ad">iceberg::Catalog::CreateNamespace</a></div><div class="ttdeci">virtual Status CreateNamespace(const Namespace &amp;ns, const std::unordered_map&lt; std::string, std::string &gt; &amp;properties)=0</div><div class="ttdoc">Create a namespace with associated properties.</div></div>
<div class="ttc" id="astructiceberg_1_1Namespace_html"><div class="ttname"><a href="structiceberg_1_1Namespace.html">iceberg::Namespace</a></div><div class="ttdoc">A namespace in a catalog.</div><div class="ttdef"><b>Definition</b> table_identifier.h:35</div></div>
<div class="ttc" id="astructiceberg_1_1TableIdentifier_html"><div class="ttname"><a href="structiceberg_1_1TableIdentifier.html">iceberg::TableIdentifier</a></div><div class="ttdoc">Identifies a table in iceberg catalog.</div><div class="ttdef"><b>Definition</b> table_identifier.h:46</div></div>
<div class="ttc" id="atable__identifier_8h_html"><div class="ttname"><a href="table__identifier_8h.html">table_identifier.h</a></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>