| <!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/hive/hive_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><li class="navelem"><a class="el" href="dir_a7beda0dac529a54d3cdf90e787bdce7.html">catalog</a></li><li class="navelem"><a class="el" href="dir_84b526a9b166937dfaa5c194acfccb63.html">hive</a></li> </ul> |
| </div> |
| </div><!-- top --> |
| <div class="header"> |
| <div class="headertitle"><div class="title">hive_catalog.h</div></div> |
| </div><!--header--> |
| <div class="contents"> |
| <a href="hive__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="l00022" name="l00022"></a><span class="lineno"> 22</span><span class="preprocessor">#include <memory></span></div> |
| <div class="line"><a id="l00023" name="l00023"></a><span class="lineno"> 23</span><span class="preprocessor">#include <string></span></div> |
| <div class="line"><a id="l00024" name="l00024"></a><span class="lineno"> 24</span><span class="preprocessor">#include <unordered_set></span></div> |
| <div class="line"><a id="l00025" name="l00025"></a><span class="lineno"> 25</span> </div> |
| <div class="line"><a id="l00026" name="l00026"></a><span class="lineno"> 26</span><span class="preprocessor">#include "<a class="code" href="catalog_8h.html">iceberg/catalog.h</a>"</span></div> |
| <div class="line"><a id="l00027" name="l00027"></a><span class="lineno"> 27</span><span class="preprocessor">#include "<a class="code" href="hive__catalog__properties_8h.html">iceberg/catalog/hive/hive_catalog_properties.h</a>"</span></div> |
| <div class="line"><a id="l00028" name="l00028"></a><span class="lineno"> 28</span><span class="preprocessor">#include "<a class="code" href="iceberg__hive__export_8h.html">iceberg/catalog/hive/iceberg_hive_export.h</a>"</span></div> |
| <div class="line"><a id="l00029" name="l00029"></a><span class="lineno"> 29</span><span class="preprocessor">#include "<a class="code" href="result_8h.html">iceberg/result.h</a>"</span></div> |
| <div class="line"><a id="l00030" name="l00030"></a><span class="lineno"> 30</span> </div> |
| <div class="line"><a id="l00033" name="l00033"></a><span class="lineno"> 33</span> </div> |
| <div class="foldopen" id="foldopen00034" data-start="{" data-end="}"> |
| <div class="line"><a id="l00034" name="l00034"></a><span class="lineno"><a class="line" href="namespaceiceberg_1_1hive.html"> 34</a></span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespaceiceberg_1_1hive.html">iceberg::hive</a> {</div> |
| <div class="line"><a id="l00035" name="l00035"></a><span class="lineno"> 35</span> </div> |
| <div class="foldopen" id="foldopen00041" data-start="{" data-end="};"> |
| <div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html"> 41</a></span><span class="keyword">class </span>ICEBERG_HIVE_EXPORT <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">HiveCatalog</a> : <span class="keyword">public</span> <a class="code hl_class" href="classiceberg_1_1Catalog.html">Catalog</a>,</div> |
| <div class="line"><a id="l00042" name="l00042"></a><span class="lineno"> 42</span> <span class="keyword">public</span> std::enable_shared_from_this<HiveCatalog> {</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> <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">~HiveCatalog</a>() <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00045" name="l00045"></a><span class="lineno"> 45</span> </div> |
| <div class="line"><a id="l00046" name="l00046"></a><span class="lineno"> 46</span> <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">HiveCatalog</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">HiveCatalog</a>&) = <span class="keyword">delete</span>;</div> |
| <div class="line"><a id="l00047" name="l00047"></a><span class="lineno"> 47</span> <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">HiveCatalog</a>& operator=(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">HiveCatalog</a>&) = <span class="keyword">delete</span>;</div> |
| <div class="line"><a id="l00048" name="l00048"></a><span class="lineno"> 48</span> <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">HiveCatalog</a>(<a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">HiveCatalog</a>&&) = <span class="keyword">delete</span>;</div> |
| <div class="line"><a id="l00049" name="l00049"></a><span class="lineno"> 49</span> <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">HiveCatalog</a>& operator=(<a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">HiveCatalog</a>&&) = <span class="keyword">delete</span>;</div> |
| <div class="line"><a id="l00050" name="l00050"></a><span class="lineno"> 50</span> </div> |
| <div class="line"><a id="l00056" name="l00056"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#ae8b30bfb8d9b54c191cd212bb775baa5"> 56</a></span> <span class="keyword">static</span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<HiveCatalog></a>> <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#ae8b30bfb8d9b54c191cd212bb775baa5">Make</a>(<span class="keyword">const</span> <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalogProperties.html">HiveCatalogProperties</a>& config);</div> |
| <div class="line"><a id="l00057" name="l00057"></a><span class="lineno"> 57</span> </div> |
| <div class="line"><a id="l00058" name="l00058"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#ac9a5b5821b17bd188844c81ce089704c"> 58</a></span> std::string_view <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#ac9a5b5821b17bd188844c81ce089704c">name</a>() <span class="keyword">const override</span>;</div> |
| <div class="line"><a id="l00059" name="l00059"></a><span class="lineno"> 59</span> </div> |
| <div class="line"><a id="l00060" name="l00060"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#ab8268d168dd195922284c3151091dc3c"> 60</a></span> Status <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#ab8268d168dd195922284c3151091dc3c">CreateNamespace</a>(</div> |
| <div class="line"><a id="l00061" name="l00061"></a><span class="lineno"> 61</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="l00062" name="l00062"></a><span class="lineno"> 62</span> <span class="keyword">const</span> std::unordered_map<std::string, std::string>& properties) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00063" name="l00063"></a><span class="lineno"> 63</span> </div> |
| <div class="line"><a id="l00064" name="l00064"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#acff71b9276d1b19688f2c16afde07ee6"> 64</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::vector<Namespace></a>> <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#acff71b9276d1b19688f2c16afde07ee6">ListNamespaces</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>& ns) <span class="keyword">const override</span>;</div> |
| <div class="line"><a id="l00065" name="l00065"></a><span class="lineno"> 65</span> </div> |
| <div class="line"><a id="l00066" name="l00066"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#aa85c718aa78de30babf8a50c8d47a8e1"> 66</a></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_1hive_1_1HiveCatalog.html#aa85c718aa78de30babf8a50c8d47a8e1">GetNamespaceProperties</a>(</div> |
| <div class="line"><a id="l00067" name="l00067"></a><span class="lineno"> 67</span> <span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>& ns) <span class="keyword">const override</span>;</div> |
| <div class="line"><a id="l00068" name="l00068"></a><span class="lineno"> 68</span> </div> |
| <div class="line"><a id="l00069" name="l00069"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#a932e859c72729706d771ede26128e3fc"> 69</a></span> Status <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#a932e859c72729706d771ede26128e3fc">DropNamespace</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>& ns) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00070" name="l00070"></a><span class="lineno"> 70</span> </div> |
| <div class="line"><a id="l00071" name="l00071"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#a7ab781b3ada0b994b538276fd1e1f9d7"> 71</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<bool></a> <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#a7ab781b3ada0b994b538276fd1e1f9d7">NamespaceExists</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>& ns) <span class="keyword">const override</span>;</div> |
| <div class="line"><a id="l00072" name="l00072"></a><span class="lineno"> 72</span> </div> |
| <div class="line"><a id="l00073" name="l00073"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#aaa2e07c7038895f9fbba4c3129861ce5"> 73</a></span> Status <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#aaa2e07c7038895f9fbba4c3129861ce5">UpdateNamespaceProperties</a>(</div> |
| <div class="line"><a id="l00074" name="l00074"></a><span class="lineno"> 74</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="l00075" name="l00075"></a><span class="lineno"> 75</span> <span class="keyword">const</span> std::unordered_set<std::string>& removals) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00076" name="l00076"></a><span class="lineno"> 76</span> </div> |
| <div class="line"><a id="l00077" name="l00077"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#a600705c45fc3d2d99056442adae883dd"> 77</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::vector<TableIdentifier></a>> <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#a600705c45fc3d2d99056442adae883dd">ListTables</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1Namespace.html">Namespace</a>& ns) <span class="keyword">const override</span>;</div> |
| <div class="line"><a id="l00078" name="l00078"></a><span class="lineno"> 78</span> </div> |
| <div class="line"><a id="l00079" name="l00079"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#a35801fc16c82482aeb8b6bf4b2ab991b"> 79</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<Table></a>> <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#a35801fc16c82482aeb8b6bf4b2ab991b">CreateTable</a>(</div> |
| <div class="line"><a id="l00080" name="l00080"></a><span class="lineno"> 80</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="l00081" name="l00081"></a><span class="lineno"> 81</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="l00082" name="l00082"></a><span class="lineno"> 82</span> <span class="keyword">const</span> std::string& location,</div> |
| <div class="line"><a id="l00083" name="l00083"></a><span class="lineno"> 83</span> <span class="keyword">const</span> std::unordered_map<std::string, std::string>& properties) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00084" name="l00084"></a><span class="lineno"> 84</span> </div> |
| <div class="line"><a id="l00085" name="l00085"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#abff2513ac1d55e5bb014cdd6e479efce"> 85</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<Table></a>> <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#abff2513ac1d55e5bb014cdd6e479efce">UpdateTable</a>(</div> |
| <div class="line"><a id="l00086" name="l00086"></a><span class="lineno"> 86</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="l00087" name="l00087"></a><span class="lineno"> 87</span> <span class="keyword">const</span> std::vector<std::unique_ptr<TableRequirement>>& requirements,</div> |
| <div class="line"><a id="l00088" name="l00088"></a><span class="lineno"> 88</span> <span class="keyword">const</span> std::vector<std::unique_ptr<TableUpdate>>& updates) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00089" name="l00089"></a><span class="lineno"> 89</span> </div> |
| <div class="line"><a id="l00090" name="l00090"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#a977ac42cf8ce241df86883812f1f8987"> 90</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<Transaction></a>> <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#a977ac42cf8ce241df86883812f1f8987">StageCreateTable</a>(</div> |
| <div class="line"><a id="l00091" name="l00091"></a><span class="lineno"> 91</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="l00092" name="l00092"></a><span class="lineno"> 92</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="l00093" name="l00093"></a><span class="lineno"> 93</span> <span class="keyword">const</span> std::string& location,</div> |
| <div class="line"><a id="l00094" name="l00094"></a><span class="lineno"> 94</span> <span class="keyword">const</span> std::unordered_map<std::string, std::string>& properties) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00095" name="l00095"></a><span class="lineno"> 95</span> </div> |
| <div class="line"><a id="l00096" name="l00096"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#a1634dd6354e6b02df27e9c7acd383d55"> 96</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<bool></a> <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#a1634dd6354e6b02df27e9c7acd383d55">TableExists</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>& identifier) <span class="keyword">const override</span>;</div> |
| <div class="line"><a id="l00097" name="l00097"></a><span class="lineno"> 97</span> </div> |
| <div class="line"><a id="l00098" name="l00098"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#a51bb8427cedf9e662ef3f02926300ccb"> 98</a></span> Status <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#a51bb8427cedf9e662ef3f02926300ccb">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) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00099" name="l00099"></a><span class="lineno"> 99</span> </div> |
| <div class="line"><a id="l00100" name="l00100"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#a76e1b1c4e07468ce478de63e76dc1281"> 100</a></span> Status <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#a76e1b1c4e07468ce478de63e76dc1281">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) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00101" name="l00101"></a><span class="lineno"> 101</span> </div> |
| <div class="line"><a id="l00102" name="l00102"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#a5ac387f20994825d84d58fc81b3f5a68"> 102</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<Table></a>> <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#a5ac387f20994825d84d58fc81b3f5a68">LoadTable</a>(<span class="keyword">const</span> <a class="code hl_struct" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a>& identifier) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00103" name="l00103"></a><span class="lineno"> 103</span> </div> |
| <div class="line"><a id="l00104" name="l00104"></a><span class="lineno"><a class="line" href="classiceberg_1_1hive_1_1HiveCatalog.html#aa7873470c666e9ca0b728d9d2b812d20"> 104</a></span> <a class="code hl_typedef" href="namespaceiceberg.html#a9d5594e371beb516b0120e07e69d3af6">Result<std::shared_ptr<Table></a>> <a class="code hl_function" href="classiceberg_1_1hive_1_1HiveCatalog.html#aa7873470c666e9ca0b728d9d2b812d20">RegisterTable</a>(</div> |
| <div class="line"><a id="l00105" name="l00105"></a><span class="lineno"> 105</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="l00106" name="l00106"></a><span class="lineno"> 106</span> <span class="keyword">const</span> std::string& metadata_file_location) <span class="keyword">override</span>;</div> |
| <div class="line"><a id="l00107" name="l00107"></a><span class="lineno"> 107</span> </div> |
| <div class="line"><a id="l00108" name="l00108"></a><span class="lineno"> 108</span> <span class="keyword">private</span>:</div> |
| <div class="line"><a id="l00109" name="l00109"></a><span class="lineno"> 109</span> <span class="keyword">explicit</span> <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalog.html">HiveCatalog</a>(<a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalogProperties.html">HiveCatalogProperties</a> config);</div> |
| <div class="line"><a id="l00110" name="l00110"></a><span class="lineno"> 110</span> </div> |
| <div class="line"><a id="l00111" name="l00111"></a><span class="lineno"> 111</span> <a class="code hl_class" href="classiceberg_1_1hive_1_1HiveCatalogProperties.html">HiveCatalogProperties</a> config_;</div> |
| <div class="line"><a id="l00112" name="l00112"></a><span class="lineno"> 112</span> std::string name_;</div> |
| <div class="line"><a id="l00113" name="l00113"></a><span class="lineno"> 113</span>};</div> |
| </div> |
| <div class="line"><a id="l00114" name="l00114"></a><span class="lineno"> 114</span> </div> |
| <div class="line"><a id="l00115" name="l00115"></a><span class="lineno"> 115</span>} <span class="comment">// namespace iceberg::hive</span></div> |
| </div> |
| <div class="ttc" id="acatalog_8h_html"><div class="ttname"><a href="catalog_8h.html">catalog.h</a></div><div class="ttdoc">Define the catalog API for table and namespace operations.</div></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_1hive_1_1HiveCatalogProperties_html"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalogProperties.html">iceberg::hive::HiveCatalogProperties</a></div><div class="ttdoc">Configuration for the iceberg_hive HiveCatalog.</div><div class="ttdef"><b>Definition</b> hive_catalog_properties.h:47</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html">iceberg::hive::HiveCatalog</a></div><div class="ttdoc">Catalog implementation backed by a Hive Metastore.</div><div class="ttdef"><b>Definition</b> hive_catalog.h:42</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_a1634dd6354e6b02df27e9c7acd383d55"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#a1634dd6354e6b02df27e9c7acd383d55">iceberg::hive::HiveCatalog::TableExists</a></div><div class="ttdeci">Result< bool > TableExists(const TableIdentifier &identifier) const override</div><div class="ttdoc">Check whether table exists.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_a35801fc16c82482aeb8b6bf4b2ab991b"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#a35801fc16c82482aeb8b6bf4b2ab991b">iceberg::hive::HiveCatalog::CreateTable</a></div><div class="ttdeci">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) override</div><div class="ttdoc">Create a table.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_a51bb8427cedf9e662ef3f02926300ccb"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#a51bb8427cedf9e662ef3f02926300ccb">iceberg::hive::HiveCatalog::DropTable</a></div><div class="ttdeci">Status DropTable(const TableIdentifier &identifier, bool purge) override</div><div class="ttdoc">Drop a table; optionally delete data and metadata files.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_a5ac387f20994825d84d58fc81b3f5a68"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#a5ac387f20994825d84d58fc81b3f5a68">iceberg::hive::HiveCatalog::LoadTable</a></div><div class="ttdeci">Result< std::shared_ptr< Table > > LoadTable(const TableIdentifier &identifier) override</div><div class="ttdoc">Load a table.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_a600705c45fc3d2d99056442adae883dd"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#a600705c45fc3d2d99056442adae883dd">iceberg::hive::HiveCatalog::ListTables</a></div><div class="ttdeci">Result< std::vector< TableIdentifier > > ListTables(const Namespace &ns) const override</div><div class="ttdoc">Return all the identifiers under this namespace.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_a76e1b1c4e07468ce478de63e76dc1281"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#a76e1b1c4e07468ce478de63e76dc1281">iceberg::hive::HiveCatalog::RenameTable</a></div><div class="ttdeci">Status RenameTable(const TableIdentifier &from, const TableIdentifier &to) override</div><div class="ttdoc">Rename a table.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_a7ab781b3ada0b994b538276fd1e1f9d7"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#a7ab781b3ada0b994b538276fd1e1f9d7">iceberg::hive::HiveCatalog::NamespaceExists</a></div><div class="ttdeci">Result< bool > NamespaceExists(const Namespace &ns) const override</div><div class="ttdoc">Check whether the namespace exists.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_a932e859c72729706d771ede26128e3fc"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#a932e859c72729706d771ede26128e3fc">iceberg::hive::HiveCatalog::DropNamespace</a></div><div class="ttdeci">Status DropNamespace(const Namespace &ns) override</div><div class="ttdoc">Drop a namespace.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_a977ac42cf8ce241df86883812f1f8987"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#a977ac42cf8ce241df86883812f1f8987">iceberg::hive::HiveCatalog::StageCreateTable</a></div><div class="ttdeci">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) override</div><div class="ttdoc">Start a transaction to create a table.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_aa7873470c666e9ca0b728d9d2b812d20"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#aa7873470c666e9ca0b728d9d2b812d20">iceberg::hive::HiveCatalog::RegisterTable</a></div><div class="ttdeci">Result< std::shared_ptr< Table > > RegisterTable(const TableIdentifier &identifier, const std::string &metadata_file_location) override</div><div class="ttdoc">Register a table with the catalog if it does not exist.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_aa85c718aa78de30babf8a50c8d47a8e1"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#aa85c718aa78de30babf8a50c8d47a8e1">iceberg::hive::HiveCatalog::GetNamespaceProperties</a></div><div class="ttdeci">Result< std::unordered_map< std::string, std::string > > GetNamespaceProperties(const Namespace &ns) const override</div><div class="ttdoc">Get metadata properties for a namespace.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_aaa2e07c7038895f9fbba4c3129861ce5"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#aaa2e07c7038895f9fbba4c3129861ce5">iceberg::hive::HiveCatalog::UpdateNamespaceProperties</a></div><div class="ttdeci">Status UpdateNamespaceProperties(const Namespace &ns, const std::unordered_map< std::string, std::string > &updates, const std::unordered_set< std::string > &removals) override</div><div class="ttdoc">Update a namespace's properties by applying additions and removals.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_ab8268d168dd195922284c3151091dc3c"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#ab8268d168dd195922284c3151091dc3c">iceberg::hive::HiveCatalog::CreateNamespace</a></div><div class="ttdeci">Status CreateNamespace(const Namespace &ns, const std::unordered_map< std::string, std::string > &properties) override</div><div class="ttdoc">Create a namespace with associated properties.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_abff2513ac1d55e5bb014cdd6e479efce"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#abff2513ac1d55e5bb014cdd6e479efce">iceberg::hive::HiveCatalog::UpdateTable</a></div><div class="ttdeci">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) override</div><div class="ttdoc">Update a table.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_ac9a5b5821b17bd188844c81ce089704c"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#ac9a5b5821b17bd188844c81ce089704c">iceberg::hive::HiveCatalog::name</a></div><div class="ttdeci">std::string_view name() const override</div><div class="ttdoc">Return the name for this catalog.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_acff71b9276d1b19688f2c16afde07ee6"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#acff71b9276d1b19688f2c16afde07ee6">iceberg::hive::HiveCatalog::ListNamespaces</a></div><div class="ttdeci">Result< std::vector< Namespace > > ListNamespaces(const Namespace &ns) const override</div><div class="ttdoc">List child namespaces from the given namespace.</div></div> |
| <div class="ttc" id="aclassiceberg_1_1hive_1_1HiveCatalog_html_ae8b30bfb8d9b54c191cd212bb775baa5"><div class="ttname"><a href="classiceberg_1_1hive_1_1HiveCatalog.html#ae8b30bfb8d9b54c191cd212bb775baa5">iceberg::hive::HiveCatalog::Make</a></div><div class="ttdeci">static Result< std::shared_ptr< HiveCatalog > > Make(const HiveCatalogProperties &config)</div><div class="ttdoc">Construct a HiveCatalog from config.</div></div> |
| <div class="ttc" id="ahive__catalog__properties_8h_html"><div class="ttname"><a href="hive__catalog__properties_8h.html">hive_catalog_properties.h</a></div><div class="ttdoc">Configuration for connecting to a Hive Metastore (HMS) over Thrift.</div></div> |
| <div class="ttc" id="aiceberg__hive__export_8h_html"><div class="ttname"><a href="iceberg__hive__export_8h.html">iceberg_hive_export.h</a></div><div class="ttdoc">Define symbol visibility macros for the Hive catalog library.</div></div> |
| <div class="ttc" id="anamespaceiceberg_1_1hive_html"><div class="ttname"><a href="namespaceiceberg_1_1hive.html">iceberg::hive</a></div><div class="ttdoc">Hive catalog APIs.</div><div class="ttdef"><b>Definition</b> hive_catalog.h:34</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><!-- 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> |