blob: 10f568a4b9b32b77392cada2919672af95919476 [file]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>iceberg-cpp: iceberg::table::AddPartitionSpec 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"><b>table</b></li><li class="navelem"><a class="el" href="classiceberg_1_1table_1_1AddPartitionSpec.html">AddPartitionSpec</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classiceberg_1_1table_1_1AddPartitionSpec-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">iceberg::table::AddPartitionSpec Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Represents adding a new partition spec to the table.
<a href="classiceberg_1_1table_1_1AddPartitionSpec.html#details">More...</a></p>
<p><code>#include &lt;<a class="el" href="table__update_8h_source.html">table_update.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for iceberg::table::AddPartitionSpec:</div>
<div class="dyncontent">
<div class="center">
<img src="classiceberg_1_1table_1_1AddPartitionSpec.png" usemap="#iceberg::table::AddPartitionSpec_map" alt=""/>
<map id="iceberg::table::AddPartitionSpec_map" name="iceberg::table::AddPartitionSpec_map">
<area href="classiceberg_1_1TableUpdate.html" title="Base class for metadata update operations." alt="iceberg::TableUpdate" shape="rect" coords="0,0,192,24"/>
</map>
</div></div>
<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:a710a16e419a55999202edbfb4261b6d3" id="r_a710a16e419a55999202edbfb4261b6d3"><td class="memItemLeft" align="right" valign="top"><a id="a710a16e419a55999202edbfb4261b6d3" name="a710a16e419a55999202edbfb4261b6d3"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>AddPartitionSpec</b> (std::shared_ptr&lt; <a class="el" href="classiceberg_1_1PartitionSpec.html">PartitionSpec</a> &gt; spec)</td></tr>
<tr class="separator:a710a16e419a55999202edbfb4261b6d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a547d885ab65d5c47831c18e7fd984a" id="r_a4a547d885ab65d5c47831c18e7fd984a"><td class="memItemLeft" align="right" valign="top"><a id="a4a547d885ab65d5c47831c18e7fd984a" name="a4a547d885ab65d5c47831c18e7fd984a"></a>
const std::shared_ptr&lt; <a class="el" href="classiceberg_1_1PartitionSpec.html">PartitionSpec</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>spec</b> () const</td></tr>
<tr class="separator:a4a547d885ab65d5c47831c18e7fd984a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad72872bdc179dd1f60fd2b281c158a84" id="r_ad72872bdc179dd1f60fd2b281c158a84"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1table_1_1AddPartitionSpec.html#ad72872bdc179dd1f60fd2b281c158a84">ApplyTo</a> (<a class="el" href="classiceberg_1_1TableMetadataBuilder.html">TableMetadataBuilder</a> &amp;builder) const override</td></tr>
<tr class="memdesc:ad72872bdc179dd1f60fd2b281c158a84"><td class="mdescLeft">&#160;</td><td class="mdescRight">Apply this update to a <a class="el" href="classiceberg_1_1TableMetadataBuilder.html" title="Builder class for constructing TableMetadata objects.">TableMetadataBuilder</a>. <br /></td></tr>
<tr class="separator:ad72872bdc179dd1f60fd2b281c158a84"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0c2b4bd19f456250247a698df7e17b26" id="r_a0c2b4bd19f456250247a698df7e17b26"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1table_1_1AddPartitionSpec.html#a0c2b4bd19f456250247a698df7e17b26">GenerateRequirements</a> (<a class="el" href="classiceberg_1_1TableUpdateContext.html">TableUpdateContext</a> &amp;context) const override</td></tr>
<tr class="memdesc:a0c2b4bd19f456250247a698df7e17b26"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate update requirements for this metadata update. <br /></td></tr>
<tr class="separator:a0c2b4bd19f456250247a698df7e17b26"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a80b65c6102e3c47aa7bab1a827893555" id="r_a80b65c6102e3c47aa7bab1a827893555"><td class="memItemLeft" align="right" valign="top">Kind&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1table_1_1AddPartitionSpec.html#a80b65c6102e3c47aa7bab1a827893555">kind</a> () const override</td></tr>
<tr class="memdesc:a80b65c6102e3c47aa7bab1a827893555"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the kind of this update. <br /></td></tr>
<tr class="separator:a80b65c6102e3c47aa7bab1a827893555"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa055292f5d2233649c0211f39174af6c" id="r_aa055292f5d2233649c0211f39174af6c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1table_1_1AddPartitionSpec.html#aa055292f5d2233649c0211f39174af6c">Equals</a> (const <a class="el" href="classiceberg_1_1TableUpdate.html">TableUpdate</a> &amp;other) const override</td></tr>
<tr class="memdesc:aa055292f5d2233649c0211f39174af6c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check equality with another <a class="el" href="classiceberg_1_1TableUpdate.html" title="Base class for metadata update operations.">TableUpdate</a>. <br /></td></tr>
<tr class="separator:aa055292f5d2233649c0211f39174af6c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8abd4e7ea8c92afc15f7ac61e6baa5b8" id="r_a8abd4e7ea8c92afc15f7ac61e6baa5b8"><td class="memItemLeft" align="right" valign="top">std::unique_ptr&lt; <a class="el" href="classiceberg_1_1TableUpdate.html">TableUpdate</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1table_1_1AddPartitionSpec.html#a8abd4e7ea8c92afc15f7ac61e6baa5b8">Clone</a> () const override</td></tr>
<tr class="memdesc:a8abd4e7ea8c92afc15f7ac61e6baa5b8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a deep copy of this update. <br /></td></tr>
<tr class="separator:a8abd4e7ea8c92afc15f7ac61e6baa5b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="inherited" name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_classiceberg_1_1TableUpdate"><td colspan="2" onclick="javascript:toggleInherit('pub_types_classiceberg_1_1TableUpdate')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="classiceberg_1_1TableUpdate.html">iceberg::TableUpdate</a></td></tr>
<tr class="memitem:ad8c72b1755b111ad20acff6ae6d4974d inherit pub_types_classiceberg_1_1TableUpdate" id="r_ad8c72b1755b111ad20acff6ae6d4974d"><td class="memItemLeft" align="right" valign="top"><a id="ad8c72b1755b111ad20acff6ae6d4974d" name="ad8c72b1755b111ad20acff6ae6d4974d"></a>enum class &#160;</td><td class="memItemRight" valign="bottom"><b>Kind</b> : uint8_t { <br />
&#160;&#160;<b>kAssignUUID</b>
, <b>kUpgradeFormatVersion</b>
, <b>kAddSchema</b>
, <b>kSetCurrentSchema</b>
, <br />
&#160;&#160;<b>kAddPartitionSpec</b>
, <b>kSetDefaultPartitionSpec</b>
, <b>kRemovePartitionSpecs</b>
, <b>kRemoveSchemas</b>
, <br />
&#160;&#160;<b>kAddSortOrder</b>
, <b>kSetDefaultSortOrder</b>
, <b>kAddSnapshot</b>
, <b>kRemoveSnapshots</b>
, <br />
&#160;&#160;<b>kRemoveSnapshotRef</b>
, <b>kSetSnapshotRef</b>
, <b>kSetProperties</b>
, <b>kRemoveProperties</b>
, <br />
&#160;&#160;<b>kSetLocation</b>
, <b>kSetStatistics</b>
, <b>kRemoveStatistics</b>
, <b>kSetPartitionStatistics</b>
, <br />
&#160;&#160;<b>kRemovePartitionStatistics</b>
<br />
}</td></tr>
<tr class="separator:ad8c72b1755b111ad20acff6ae6d4974d inherit pub_types_classiceberg_1_1TableUpdate"><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>Represents adding a new partition spec to the table. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ad72872bdc179dd1f60fd2b281c158a84" name="ad72872bdc179dd1f60fd2b281c158a84"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad72872bdc179dd1f60fd2b281c158a84">&#9670;&#160;</a></span>ApplyTo()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void iceberg::table::AddPartitionSpec::ApplyTo </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classiceberg_1_1TableMetadataBuilder.html">TableMetadataBuilder</a> &amp;&#160;</td>
<td class="paramname"><em>builder</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Apply this update to a <a class="el" href="classiceberg_1_1TableMetadataBuilder.html" title="Builder class for constructing TableMetadata objects.">TableMetadataBuilder</a>. </p>
<p>This method modifies the builder by applying the update operation it represents. Each subclass implements this to apply its specific type of update.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">builder</td><td>The builder to apply this update to </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="classiceberg_1_1TableUpdate.html#af07326d407ad45eb6072b586ee6c9485">iceberg::TableUpdate</a>.</p>
</div>
</div>
<a id="a8abd4e7ea8c92afc15f7ac61e6baa5b8" name="a8abd4e7ea8c92afc15f7ac61e6baa5b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8abd4e7ea8c92afc15f7ac61e6baa5b8">&#9670;&#160;</a></span>Clone()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">std::unique_ptr&lt; <a class="el" href="classiceberg_1_1TableUpdate.html">TableUpdate</a> &gt; iceberg::table::AddPartitionSpec::Clone </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Create a deep copy of this update. </p>
<dl class="section return"><dt>Returns</dt><dd>A unique_ptr to a new <a class="el" href="classiceberg_1_1TableUpdate.html" title="Base class for metadata update operations.">TableUpdate</a> that is a copy of this one </dd></dl>
<p>Implements <a class="el" href="classiceberg_1_1TableUpdate.html#affb4be490ac63849864bf8ed636363aa">iceberg::TableUpdate</a>.</p>
</div>
</div>
<a id="aa055292f5d2233649c0211f39174af6c" name="aa055292f5d2233649c0211f39174af6c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa055292f5d2233649c0211f39174af6c">&#9670;&#160;</a></span>Equals()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">bool iceberg::table::AddPartitionSpec::Equals </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classiceberg_1_1TableUpdate.html">TableUpdate</a> &amp;&#160;</td>
<td class="paramname"><em>other</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Check equality with another <a class="el" href="classiceberg_1_1TableUpdate.html" title="Base class for metadata update operations.">TableUpdate</a>. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">other</td><td>The update to compare with </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the updates are equal, false otherwise </dd></dl>
<p>Implements <a class="el" href="classiceberg_1_1TableUpdate.html#afd0780e6106546f7462e8e66d62db1f2">iceberg::TableUpdate</a>.</p>
</div>
</div>
<a id="a0c2b4bd19f456250247a698df7e17b26" name="a0c2b4bd19f456250247a698df7e17b26"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0c2b4bd19f456250247a698df7e17b26">&#9670;&#160;</a></span>GenerateRequirements()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">void iceberg::table::AddPartitionSpec::GenerateRequirements </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classiceberg_1_1TableUpdateContext.html">TableUpdateContext</a> &amp;&#160;</td>
<td class="paramname"><em>context</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Generate update requirements for this metadata update. </p>
<p>This method generates the appropriate UpdateRequirement instances that must be validated before this update can be applied. The context provides information about the base metadata and operation mode.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">context</td><td>The context containing base metadata and operation state </td></tr>
</table>
</dd>
</dl>
<p>Implements <a class="el" href="classiceberg_1_1TableUpdate.html#adddc714f83cea93141bc5b771e326e05">iceberg::TableUpdate</a>.</p>
</div>
</div>
<a id="a80b65c6102e3c47aa7bab1a827893555" name="a80b65c6102e3c47aa7bab1a827893555"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a80b65c6102e3c47aa7bab1a827893555">&#9670;&#160;</a></span>kind()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">Kind iceberg::table::AddPartitionSpec::kind </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">override</span><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Return the kind of this update. </p>
<p>Implements <a class="el" href="classiceberg_1_1TableUpdate.html#acf1e83fa9835010cda68a6a3387a08a5">iceberg::TableUpdate</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>iceberg/<a class="el" href="table__update_8h_source.html">table_update.h</a></li>
<li>iceberg/<b>table_update.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>