blob: 0dd41145d76496401bf6bcc234f4a2512ba417d3 [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::InMemoryNamespace Class Reference</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>
<!-- 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"><b>iceberg</b></li><li class="navelem"><a class="el" href="classiceberg_1_1InMemoryNamespace.html">InMemoryNamespace</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classiceberg_1_1InMemoryNamespace-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">iceberg::InMemoryNamespace Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>A hierarchical namespace that manages namespaces and table metadata in-memory.
<a href="classiceberg_1_1InMemoryNamespace.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a04e65a38659c3e918034406e574b2bfc" id="r_a04e65a38659c3e918034406e574b2bfc"><td class="memItemLeft" align="right" valign="top">Result&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#a04e65a38659c3e918034406e574b2bfc">NamespaceExists</a> (const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;namespace_ident) const</td></tr>
<tr class="memdesc:a04e65a38659c3e918034406e574b2bfc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks whether the given namespace exists. <br /></td></tr>
<tr class="separator:a04e65a38659c3e918034406e574b2bfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6ff8a2b343931f9fb2964909bfc52e3" id="r_ab6ff8a2b343931f9fb2964909bfc52e3"><td class="memItemLeft" align="right" valign="top">Result&lt; std::vector&lt; <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#ab6ff8a2b343931f9fb2964909bfc52e3">ListNamespaces</a> (const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;parent_namespace_ident) const</td></tr>
<tr class="memdesc:ab6ff8a2b343931f9fb2964909bfc52e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lists immediate child namespaces under the given parent namespace. <br /></td></tr>
<tr class="separator:ab6ff8a2b343931f9fb2964909bfc52e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4aaaa95223cc8186a93ff86d6c27c884" id="r_a4aaaa95223cc8186a93ff86d6c27c884"><td class="memItemLeft" align="right" valign="top">Status&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#a4aaaa95223cc8186a93ff86d6c27c884">CreateNamespace</a> (const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;namespace_ident, const std::unordered_map&lt; std::string, std::string &gt; &amp;properties)</td></tr>
<tr class="memdesc:a4aaaa95223cc8186a93ff86d6c27c884"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new namespace with the specified properties. <br /></td></tr>
<tr class="separator:a4aaaa95223cc8186a93ff86d6c27c884"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9525be99cf53d85507d826e33036f6c6" id="r_a9525be99cf53d85507d826e33036f6c6"><td class="memItemLeft" align="right" valign="top">Status&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#a9525be99cf53d85507d826e33036f6c6">DropNamespace</a> (const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;namespace_ident)</td></tr>
<tr class="memdesc:a9525be99cf53d85507d826e33036f6c6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deletes an existing namespace. <br /></td></tr>
<tr class="separator:a9525be99cf53d85507d826e33036f6c6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a41d08709d98b711afa5aa89ecf92617b" id="r_a41d08709d98b711afa5aa89ecf92617b"><td class="memItemLeft" align="right" valign="top">Result&lt; std::unordered_map&lt; std::string, std::string &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#a41d08709d98b711afa5aa89ecf92617b">GetProperties</a> (const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;namespace_ident) const</td></tr>
<tr class="memdesc:a41d08709d98b711afa5aa89ecf92617b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieves the properties of the specified namespace. <br /></td></tr>
<tr class="separator:a41d08709d98b711afa5aa89ecf92617b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a031484d8bdfd6d060a0b42afda63da8e" id="r_a031484d8bdfd6d060a0b42afda63da8e"><td class="memItemLeft" align="right" valign="top">Status&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#a031484d8bdfd6d060a0b42afda63da8e">UpdateNamespaceProperties</a> (const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;namespace_ident, const std::unordered_map&lt; std::string, std::string &gt; &amp;updates, const std::unordered_set&lt; std::string &gt; &amp;removals)</td></tr>
<tr class="memdesc:a031484d8bdfd6d060a0b42afda63da8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates a namespace's properties by applying additions and removals. <br /></td></tr>
<tr class="separator:a031484d8bdfd6d060a0b42afda63da8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad6fd693f3910d519809f62d751c82683" id="r_ad6fd693f3910d519809f62d751c82683"><td class="memItemLeft" align="right" valign="top">Result&lt; std::vector&lt; std::string &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#ad6fd693f3910d519809f62d751c82683">ListTables</a> (const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;namespace_ident) const</td></tr>
<tr class="memdesc:ad6fd693f3910d519809f62d751c82683"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lists all table names under the specified namespace. <br /></td></tr>
<tr class="separator:ad6fd693f3910d519809f62d751c82683"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78f8e6508c88969dec781eff17185a35" id="r_a78f8e6508c88969dec781eff17185a35"><td class="memItemLeft" align="right" valign="top">Status&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#a78f8e6508c88969dec781eff17185a35">RegisterTable</a> (const <a class="el" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a> &amp;table_ident, const std::string &amp;metadata_location)</td></tr>
<tr class="memdesc:a78f8e6508c88969dec781eff17185a35"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers a table in the given namespace with a metadata location. <br /></td></tr>
<tr class="separator:a78f8e6508c88969dec781eff17185a35"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc683e8a2a2ce1e6e9d14ebabf18b920" id="r_adc683e8a2a2ce1e6e9d14ebabf18b920"><td class="memItemLeft" align="right" valign="top">Status&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#adc683e8a2a2ce1e6e9d14ebabf18b920">UnregisterTable</a> (const <a class="el" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a> &amp;table_ident)</td></tr>
<tr class="memdesc:adc683e8a2a2ce1e6e9d14ebabf18b920"><td class="mdescLeft">&#160;</td><td class="mdescRight">Unregisters a table from the specified namespace. <br /></td></tr>
<tr class="separator:adc683e8a2a2ce1e6e9d14ebabf18b920"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2353280e6b9f333a48ec9731f68907d" id="r_ab2353280e6b9f333a48ec9731f68907d"><td class="memItemLeft" align="right" valign="top">Result&lt; bool &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#ab2353280e6b9f333a48ec9731f68907d">TableExists</a> (const <a class="el" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a> &amp;table_ident) const</td></tr>
<tr class="memdesc:ab2353280e6b9f333a48ec9731f68907d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Checks if a table exists in the specified namespace. <br /></td></tr>
<tr class="separator:ab2353280e6b9f333a48ec9731f68907d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb1f717ddc308b2188ac5103c17e4011" id="r_afb1f717ddc308b2188ac5103c17e4011"><td class="memItemLeft" align="right" valign="top">Result&lt; std::string &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#afb1f717ddc308b2188ac5103c17e4011">GetTableMetadataLocation</a> (const <a class="el" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a> &amp;table_ident) const</td></tr>
<tr class="memdesc:afb1f717ddc308b2188ac5103c17e4011"><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the metadata location for the specified table. <br /></td></tr>
<tr class="separator:afb1f717ddc308b2188ac5103c17e4011"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43693e0845669d8bdf463c219e10ba71" id="r_a43693e0845669d8bdf463c219e10ba71"><td class="memItemLeft" align="right" valign="top">Status&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#a43693e0845669d8bdf463c219e10ba71">UpdateTableMetadataLocation</a> (const <a class="el" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a> &amp;table_ident, const std::string &amp;metadata_location)</td></tr>
<tr class="memdesc:a43693e0845669d8bdf463c219e10ba71"><td class="mdescLeft">&#160;</td><td class="mdescRight">Updates the metadata location for the specified table. <br /></td></tr>
<tr class="separator:a43693e0845669d8bdf463c219e10ba71"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:abb635e79334f879464f5a2d0f9064814" id="r_abb635e79334f879464f5a2d0f9064814"><td class="memTemplParams" colspan="2">template&lt;typename NamespacePtr &gt; </td></tr>
<tr class="memitem:abb635e79334f879464f5a2d0f9064814"><td class="memTemplItemLeft" align="right" valign="top">static Result&lt; NamespacePtr &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classiceberg_1_1InMemoryNamespace.html#abb635e79334f879464f5a2d0f9064814">GetNamespaceImpl</a> (NamespacePtr root, const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;namespace_ident)</td></tr>
<tr class="memdesc:abb635e79334f879464f5a2d0f9064814"><td class="mdescLeft">&#160;</td><td class="mdescRight">Internal utility for retrieving a namespace node pointer from the tree. <br /></td></tr>
<tr class="separator:abb635e79334f879464f5a2d0f9064814"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A hierarchical namespace that manages namespaces and table metadata in-memory. </p>
<p>Each <a class="el" href="classiceberg_1_1InMemoryNamespace.html" title="A hierarchical namespace that manages namespaces and table metadata in-memory.">InMemoryNamespace</a> represents a namespace level and can contain properties, tables, and child namespaces. This structure enables a tree-like representation of nested namespaces. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a4aaaa95223cc8186a93ff86d6c27c884" name="a4aaaa95223cc8186a93ff86d6c27c884"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4aaaa95223cc8186a93ff86d6c27c884">&#9670;&#160;</a></span>CreateNamespace()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Status iceberg::InMemoryNamespace::CreateNamespace </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;&#160;</td>
<td class="paramname"><em>namespace_ident</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::unordered_map&lt; std::string, std::string &gt; &amp;&#160;</td>
<td class="paramname"><em>properties</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Creates a new namespace with the specified properties. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">namespace_ident</td><td>The namespace to create. </td></tr>
<tr><td class="paramname">properties</td><td>A map of key-value pairs to associate with the namespace. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status indicating success if the namespace is created; ErrorKind::kAlreadyExists if the namespace already exists. </dd></dl>
</div>
</div>
<a id="a9525be99cf53d85507d826e33036f6c6" name="a9525be99cf53d85507d826e33036f6c6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9525be99cf53d85507d826e33036f6c6">&#9670;&#160;</a></span>DropNamespace()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Status iceberg::InMemoryNamespace::DropNamespace </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;&#160;</td>
<td class="paramname"><em>namespace_ident</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Deletes an existing namespace. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">namespace_ident</td><td>The namespace to delete. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status indicating success if the namespace is deleted; ErrorKind::kNoSuchNamespace if the namespace does not exist; ErrorKind::kNotAllowed if the namespace is not empty. </dd></dl>
</div>
</div>
<a id="abb635e79334f879464f5a2d0f9064814" name="abb635e79334f879464f5a2d0f9064814"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abb635e79334f879464f5a2d0f9064814">&#9670;&#160;</a></span>GetNamespaceImpl()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename NamespacePtr &gt; </div>
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">static Result&lt; NamespacePtr &gt; iceberg::InMemoryNamespace::GetNamespaceImpl </td>
<td>(</td>
<td class="paramtype">NamespacePtr&#160;</td>
<td class="paramname"><em>root</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;&#160;</td>
<td class="paramname"><em>namespace_ident</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Internal utility for retrieving a namespace node pointer from the tree. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">NamespacePtr</td><td>The type of the namespace node pointer. </td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">root</td><td>The root namespace node. </td></tr>
<tr><td class="paramname">namespace_ident</td><td>The fully qualified namespace to resolve. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A pointer to the namespace node if it exists; error otherwise. </dd></dl>
</div>
</div>
<a id="a41d08709d98b711afa5aa89ecf92617b" name="a41d08709d98b711afa5aa89ecf92617b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a41d08709d98b711afa5aa89ecf92617b">&#9670;&#160;</a></span>GetProperties()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Result&lt; std::unordered_map&lt; std::string, std::string &gt; &gt; iceberg::InMemoryNamespace::GetProperties </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;&#160;</td>
<td class="paramname"><em>namespace_ident</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Retrieves the properties of the specified namespace. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">namespace_ident</td><td>The namespace whose properties are to be retrieved. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A map of property key-value pairs if the namespace exists; error otherwise. </dd></dl>
</div>
</div>
<a id="afb1f717ddc308b2188ac5103c17e4011" name="afb1f717ddc308b2188ac5103c17e4011"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afb1f717ddc308b2188ac5103c17e4011">&#9670;&#160;</a></span>GetTableMetadataLocation()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Result&lt; std::string &gt; iceberg::InMemoryNamespace::GetTableMetadataLocation </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a> &amp;&#160;</td>
<td class="paramname"><em>table_ident</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Gets the metadata location for the specified table. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">table_ident</td><td>The identifier of the table. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The metadata location if the table exists; error otherwise. </dd></dl>
</div>
</div>
<a id="ab6ff8a2b343931f9fb2964909bfc52e3" name="ab6ff8a2b343931f9fb2964909bfc52e3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab6ff8a2b343931f9fb2964909bfc52e3">&#9670;&#160;</a></span>ListNamespaces()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Result&lt; std::vector&lt; <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &gt; &gt; iceberg::InMemoryNamespace::ListNamespaces </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;&#160;</td>
<td class="paramname"><em>parent_namespace_ident</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Lists immediate child namespaces under the given parent namespace. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">parent_namespace_ident</td><td>The parent namespace to list children for. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A vector of child namespaces if found; error otherwise. </dd></dl>
</div>
</div>
<a id="ad6fd693f3910d519809f62d751c82683" name="ad6fd693f3910d519809f62d751c82683"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad6fd693f3910d519809f62d751c82683">&#9670;&#160;</a></span>ListTables()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Result&lt; std::vector&lt; std::string &gt; &gt; iceberg::InMemoryNamespace::ListTables </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;&#160;</td>
<td class="paramname"><em>namespace_ident</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Lists all table names under the specified namespace. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">namespace_ident</td><td>The namespace to list tables from. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A vector of table names if successful; error otherwise. </dd></dl>
</div>
</div>
<a id="a04e65a38659c3e918034406e574b2bfc" name="a04e65a38659c3e918034406e574b2bfc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a04e65a38659c3e918034406e574b2bfc">&#9670;&#160;</a></span>NamespaceExists()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Result&lt; bool &gt; iceberg::InMemoryNamespace::NamespaceExists </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;&#160;</td>
<td class="paramname"><em>namespace_ident</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks whether the given namespace exists. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">namespace_ident</td><td>The namespace to check. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Result&lt;bool&gt; indicating whether the namespace exists. </dd></dl>
</div>
</div>
<a id="a78f8e6508c88969dec781eff17185a35" name="a78f8e6508c88969dec781eff17185a35"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a78f8e6508c88969dec781eff17185a35">&#9670;&#160;</a></span>RegisterTable()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Status iceberg::InMemoryNamespace::RegisterTable </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a> &amp;&#160;</td>
<td class="paramname"><em>table_ident</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>metadata_location</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Registers a table in the given namespace with a metadata location. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">table_ident</td><td>The fully qualified identifier of the table. </td></tr>
<tr><td class="paramname">metadata_location</td><td>The path to the table's metadata. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status indicating success if the table is registered; <a class="el" href="structiceberg_1_1Error.html" title="Error with a kind and a message.">Error</a> otherwise. </dd></dl>
</div>
</div>
<a id="ab2353280e6b9f333a48ec9731f68907d" name="ab2353280e6b9f333a48ec9731f68907d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab2353280e6b9f333a48ec9731f68907d">&#9670;&#160;</a></span>TableExists()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Result&lt; bool &gt; iceberg::InMemoryNamespace::TableExists </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a> &amp;&#160;</td>
<td class="paramname"><em>table_ident</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</div><div class="memdoc">
<p>Checks if a table exists in the specified namespace. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">table_ident</td><td>The identifier of the table to check. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Result&lt;bool&gt; indicating whether the table exists. </dd></dl>
</div>
</div>
<a id="adc683e8a2a2ce1e6e9d14ebabf18b920" name="adc683e8a2a2ce1e6e9d14ebabf18b920"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc683e8a2a2ce1e6e9d14ebabf18b920">&#9670;&#160;</a></span>UnregisterTable()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Status iceberg::InMemoryNamespace::UnregisterTable </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a> &amp;&#160;</td>
<td class="paramname"><em>table_ident</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Unregisters a table from the specified namespace. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">table_ident</td><td>The identifier of the table to unregister. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status indicating success if the table is removed; ErrorKind::kNoSuchTable if the table does not exist. </dd></dl>
</div>
</div>
<a id="a031484d8bdfd6d060a0b42afda63da8e" name="a031484d8bdfd6d060a0b42afda63da8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a031484d8bdfd6d060a0b42afda63da8e">&#9670;&#160;</a></span>UpdateNamespaceProperties()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Status iceberg::InMemoryNamespace::UpdateNamespaceProperties </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1Namespace.html">Namespace</a> &amp;&#160;</td>
<td class="paramname"><em>namespace_ident</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::unordered_map&lt; std::string, std::string &gt; &amp;&#160;</td>
<td class="paramname"><em>updates</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::unordered_set&lt; std::string &gt; &amp;&#160;</td>
<td class="paramname"><em>removals</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Updates a namespace's properties by applying additions and removals. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">namespace_ident</td><td>The namespace to update. </td></tr>
<tr><td class="paramname">updates</td><td>Properties to add or overwrite. </td></tr>
<tr><td class="paramname">removals</td><td>Property keys to remove. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status indicating success if the update is successful; ErrorKind::kNoSuchNamespace if the namespace does not exist; ErrorKind::kUnsupported if the operation is not supported. </dd></dl>
</div>
</div>
<a id="a43693e0845669d8bdf463c219e10ba71" name="a43693e0845669d8bdf463c219e10ba71"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43693e0845669d8bdf463c219e10ba71">&#9670;&#160;</a></span>UpdateTableMetadataLocation()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">Status iceberg::InMemoryNamespace::UpdateTableMetadataLocation </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="structiceberg_1_1TableIdentifier.html">TableIdentifier</a> &amp;&#160;</td>
<td class="paramname"><em>table_ident</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const std::string &amp;&#160;</td>
<td class="paramname"><em>metadata_location</em>&#160;</td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Updates the metadata location for the specified table. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">table_ident</td><td>The identifier of the table. </td></tr>
<tr><td class="paramname">metadata_location</td><td>The new metadata location. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>iceberg/catalog/memory/<b>in_memory_catalog.cc</b></li>
</ul>
</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>