| <!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&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> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="headertitle"><div class="title">catalog.h</div></div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="catalog_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="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 <memory></span></div> |
| <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include <string></span></div> |
| <div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include <string_view></span></div> |
| <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include <unordered_map></span></div> |
| <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include <unordered_set></span></div> |
| <div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span><span class="preprocessor">#include <vector></span></div> |
| <div class="line"><a id="l00031" name="l00031"></a><span class="lineno"> 31</span> </div> |
| <div class="line"><a id="l00032" name="l00032"></a><span class="lineno"> 32</span><span class="preprocessor">#include "<a class="code" href="result_8h.html">iceberg/result.h</a>"</span></div> |
| <div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span><span class="preprocessor">#include "<a class="code" href="table__identifier_8h.html">iceberg/table_identifier.h</a>"</span></div> |
| <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"> 34</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="l00035" name="l00035"></a><span class="lineno"> 35</span> </div> |
| <div class="line"><a id="l00036" name="l00036"></a><span class="lineno"> 36</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceiceberg.html">iceberg</a> {</div> |
| <div class="line"><a id="l00037" name="l00037"></a><span class="lineno"> 37</span> </div> |
| <div class="foldopen" id="foldopen00042" data-start="{" data-end="};"> |
| <div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html"> 42</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="l00043" name="l00043"></a><span class="lineno"> 43</span> <span class="keyword">public</span>:</div> |
| <div class="line"><a id="l00044" name="l00044"></a><span class="lineno"> 44</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="l00045" name="l00045"></a><span class="lineno"> 45</span> </div> |
| <div class="line"><a id="l00047" name="l00047"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a6ca1f4412051d707d228c34716f0df77"> 47</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="l00048" name="l00048"></a><span class="lineno"> 48</span> </div> |
| <div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#afe33407448157e9f930c6c59857674ad"> 56</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="l00057" name="l00057"></a><span class="lineno"> 57</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>& ns,</div> |
| <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"> 58</span> <span class="keyword">const</span> std::unordered_map<std::string, std::string>& properties) = 0;</div> |
| <div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div> |
| <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#ad952c6a9e417565a982719c94a071f4c"> 65</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::vector<Namespace></a>> <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>& ns) <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a id="l00066" name="l00066"></a><span class="lineno"> 66</span> </div> |
| <div class="line"><a id="l00072" name="l00072"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#afc973b299c5cf15f745e85954e343702"> 72</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::unordered_map<std::string, std::string></a>> <a class="code hl_function" href="classiceberg_1_1Catalog.html#afc973b299c5cf15f745e85954e343702">GetNamespaceProperties</a>(</div> |
| <div class="line"><a id="l00073" name="l00073"></a><span class="lineno"> 73</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>& ns) <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</span> </div> |
| <div class="line"><a id="l00081" name="l00081"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a7a4ed5b2fb8eaa877792e2a8effa2f08"> 81</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>& ns) = 0;</div> |
| <div class="line"><a id="l00082" name="l00082"></a><span class="lineno"> 82</span> </div> |
| <div class="line"><a id="l00087" name="l00087"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a10b42f8d47abcaf04e4af1e112dbb5ff"> 87</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<bool></a> <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>& ns) <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> </div> |
| <div class="line"><a id="l00097" name="l00097"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a45740f35337266cce1dcf7257e561e0d"> 97</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="l00098" name="l00098"></a><span class="lineno"> 98</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>& ns, <span class="keyword">const</span> std::unordered_map<std::string, std::string>& updates,</div> |
| <div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> <span class="keyword">const</span> std::unordered_set<std::string>& removals) = 0;</div> |
| <div class="line"><a id="l00100" name="l00100"></a><span class="lineno"> 100</span> </div> |
| <div class="line"><a id="l00106" name="l00106"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#acc91fba906944a22b3c9eb279335150f"> 106</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::vector<TableIdentifier></a>> <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>& ns) <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div> |
| <div class="line"><a id="l00117" name="l00117"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a2061c315402a11ac7ecc1921513588db"> 117</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<Table></a>> <a class="code hl_function" href="classiceberg_1_1Catalog.html#a2061c315402a11ac7ecc1921513588db">CreateTable</a>(</div> |
| <div class="line"><a id="l00118" name="l00118"></a><span class="lineno"> 118</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>& identifier, <span class="keyword">const</span> std::shared_ptr<Schema>& schema,</div> |
| <div class="line"><a id="l00119" name="l00119"></a><span class="lineno"> 119</span> <span class="keyword">const</span> std::shared_ptr<PartitionSpec>& spec, <span class="keyword">const</span> std::shared_ptr<SortOrder>& order,</div> |
| <div class="line"><a id="l00120" name="l00120"></a><span class="lineno"> 120</span> <span class="keyword">const</span> std::string& location,</div> |
| <div class="line"><a id="l00121" name="l00121"></a><span class="lineno"> 121</span> <span class="keyword">const</span> std::unordered_map<std::string, std::string>& properties) = 0;</div> |
| <div class="line"><a id="l00122" name="l00122"></a><span class="lineno"> 122</span> </div> |
| <div class="line"><a id="l00129" name="l00129"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a6af4029f0916dea3671d54c45ead31e5"> 129</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<Table></a>> <a class="code hl_function" href="classiceberg_1_1Catalog.html#a6af4029f0916dea3671d54c45ead31e5">UpdateTable</a>(</div> |
| <div class="line"><a id="l00130" name="l00130"></a><span class="lineno"> 130</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>& identifier,</div> |
| <div class="line"><a id="l00131" name="l00131"></a><span class="lineno"> 131</span> <span class="keyword">const</span> std::vector<std::unique_ptr<TableRequirement>>& requirements,</div> |
| <div class="line"><a id="l00132" name="l00132"></a><span class="lineno"> 132</span> <span class="keyword">const</span> std::vector<std::unique_ptr<TableUpdate>>& updates) = 0;</div> |
| <div class="line"><a id="l00133" name="l00133"></a><span class="lineno"> 133</span> </div> |
| <div class="line"><a id="l00144" name="l00144"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a26a46a17e3553c82ad4979562f4f05d5"> 144</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<Transaction></a>> <a class="code hl_function" href="classiceberg_1_1Catalog.html#a26a46a17e3553c82ad4979562f4f05d5">StageCreateTable</a>(</div> |
| <div class="line"><a id="l00145" name="l00145"></a><span class="lineno"> 145</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>& identifier, <span class="keyword">const</span> std::shared_ptr<Schema>& schema,</div> |
| <div class="line"><a id="l00146" name="l00146"></a><span class="lineno"> 146</span> <span class="keyword">const</span> std::shared_ptr<PartitionSpec>& spec, <span class="keyword">const</span> std::shared_ptr<SortOrder>& order,</div> |
| <div class="line"><a id="l00147" name="l00147"></a><span class="lineno"> 147</span> <span class="keyword">const</span> std::string& location,</div> |
| <div class="line"><a id="l00148" name="l00148"></a><span class="lineno"> 148</span> <span class="keyword">const</span> std::unordered_map<std::string, std::string>& properties) = 0;</div> |
| <div class="line"><a id="l00149" name="l00149"></a><span class="lineno"> 149</span> </div> |
| <div class="line"><a id="l00157" name="l00157"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#ab66f167fbdf318d497bd9f41e740e7cd"> 157</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<bool></a> <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>& identifier) <span class="keyword">const</span> = 0;</div> |
| <div class="line"><a id="l00158" name="l00158"></a><span class="lineno"> 158</span> </div> |
| <div class="line"><a id="l00169" name="l00169"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#a12fe952356fb24be53f753cb1b4cf380"> 169</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>& identifier, <span class="keywordtype">bool</span> purge) = 0;</div> |
| <div class="line"><a id="l00170" name="l00170"></a><span class="lineno"> 170</span> </div> |
| <div class="line"><a id="l00178" name="l00178"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#afab77ea12f9a8d2db3fa6e0f731656d1"> 178</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>& from, <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>& to) = 0;</div> |
| <div class="line"><a id="l00179" name="l00179"></a><span class="lineno"> 179</span> </div> |
| <div class="line"><a id="l00185" name="l00185"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#ab82d66ec150bb58007b9ece678461260"> 185</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<Table></a>> <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>& identifier) = 0;</div> |
| <div class="line"><a id="l00186" name="l00186"></a><span class="lineno"> 186</span> </div> |
| <div class="line"><a id="l00192" name="l00192"></a><span class="lineno"><a class="line" href="classiceberg_1_1Catalog.html#af51de918a47128398c0c5dcabb9ae781"> 192</a></span> <span class="keyword">virtual</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<Table></a>> <a class="code hl_function" href="classiceberg_1_1Catalog.html#af51de918a47128398c0c5dcabb9ae781">RegisterTable</a>(</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_1TableIdentifier.html">TableIdentifier</a>& identifier, <span class="keyword">const</span> std::string& metadata_file_location) = 0;</div> |
| <div class="line"><a id="l00194" name="l00194"></a><span class="lineno"> 194</span>};</div> |
| </div> |
| <div class="line"><a id="l00195" name="l00195"></a><span class="lineno"> 195</span> </div> |
| <div class="line"><a id="l00196" name="l00196"></a><span class="lineno"> 196</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:42</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< bool > NamespaceExists(const Namespace &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 &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< std::shared_ptr< Table > > CreateTable(const TableIdentifier &identifier, const std::shared_ptr< Schema > &schema, const std::shared_ptr< PartitionSpec > &spec, const std::shared_ptr< SortOrder > &order, const std::string &location, const std::unordered_map< std::string, std::string > &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< std::shared_ptr< Transaction > > StageCreateTable(const TableIdentifier &identifier, const std::shared_ptr< Schema > &schema, const std::shared_ptr< PartitionSpec > &spec, const std::shared_ptr< SortOrder > &order, const std::string &location, const std::unordered_map< std::string, std::string > &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 &ns, const std::unordered_map< std::string, std::string > &updates, const std::unordered_set< std::string > &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< std::shared_ptr< Table > > UpdateTable(const TableIdentifier &identifier, const std::vector< std::unique_ptr< TableRequirement > > &requirements, const std::vector< std::unique_ptr< TableUpdate > > &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 &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< bool > TableExists(const TableIdentifier &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< std::shared_ptr< Table > > LoadTable(const TableIdentifier &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< std::vector< TableIdentifier > > ListTables(const Namespace &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< std::vector< Namespace > > ListNamespaces(const Namespace &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< std::shared_ptr< Table > > RegisterTable(const TableIdentifier &identifier, const std::string &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 &from, const TableIdentifier &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< std::unordered_map< std::string, std::string > > GetNamespaceProperties(const Namespace &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 &ns, const std::unordered_map< std::string, std::string > &properties)=0</div><div class="ttdoc">Create a namespace with associated properties.</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="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 <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> |