blob: f32335d83b99e00487b1999f8b9f17064f05c0e9 [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::SetPartitionStatistics 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"><a class="el" href="namespaceiceberg.html">iceberg</a></li><li class="navelem"><a class="el" href="namespaceiceberg_1_1table.html">table</a></li><li class="navelem"><a class="el" href="classiceberg_1_1table_1_1SetPartitionStatistics.html">SetPartitionStatistics</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_1SetPartitionStatistics-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">iceberg::table::SetPartitionStatistics Class Reference</div></div>
</div><!--header-->
<div class="contents">
<p>Represents setting partition statistics for a snapshot.
<a href="classiceberg_1_1table_1_1SetPartitionStatistics.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::SetPartitionStatistics:</div>
<div class="dyncontent">
<div class="center">
<img src="classiceberg_1_1table_1_1SetPartitionStatistics.png" usemap="#iceberg::table::SetPartitionStatistics_map" alt=""/>
<map id="iceberg::table::SetPartitionStatistics_map" name="iceberg::table::SetPartitionStatistics_map">
<area href="classiceberg_1_1TableUpdate.html" title="Base class for metadata update operations." alt="iceberg::TableUpdate" shape="rect" coords="0,0,207,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:afa430235ab8c21626cab2c024ce70864" id="r_afa430235ab8c21626cab2c024ce70864"><td class="memItemLeft" align="right" valign="top"><a id="afa430235ab8c21626cab2c024ce70864" name="afa430235ab8c21626cab2c024ce70864"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>SetPartitionStatistics</b> (std::shared_ptr&lt; <a class="el" href="structiceberg_1_1PartitionStatisticsFile.html">PartitionStatisticsFile</a> &gt; partition_statistics_file)</td></tr>
<tr class="separator:afa430235ab8c21626cab2c024ce70864"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e770e0733ad60c9aafc162bd93e0ed9" id="r_a5e770e0733ad60c9aafc162bd93e0ed9"><td class="memItemLeft" align="right" valign="top"><a id="a5e770e0733ad60c9aafc162bd93e0ed9" name="a5e770e0733ad60c9aafc162bd93e0ed9"></a>
int64_t&#160;</td><td class="memItemRight" valign="bottom"><b>snapshot_id</b> () const</td></tr>
<tr class="separator:a5e770e0733ad60c9aafc162bd93e0ed9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8e6c1f81148caee30b82a4e9c56b736d" id="r_a8e6c1f81148caee30b82a4e9c56b736d"><td class="memItemLeft" align="right" valign="top"><a id="a8e6c1f81148caee30b82a4e9c56b736d" name="a8e6c1f81148caee30b82a4e9c56b736d"></a>
const std::shared_ptr&lt; <a class="el" href="structiceberg_1_1PartitionStatisticsFile.html">PartitionStatisticsFile</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>partition_statistics_file</b> () const</td></tr>
<tr class="separator:a8e6c1f81148caee30b82a4e9c56b736d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aea5f77d8b32eae7d32c295bf7bcede29" id="r_aea5f77d8b32eae7d32c295bf7bcede29"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1table_1_1SetPartitionStatistics.html#aea5f77d8b32eae7d32c295bf7bcede29">ApplyTo</a> (<a class="el" href="classiceberg_1_1TableMetadataBuilder.html">TableMetadataBuilder</a> &amp;builder) const override</td></tr>
<tr class="memdesc:aea5f77d8b32eae7d32c295bf7bcede29"><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:aea5f77d8b32eae7d32c295bf7bcede29"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a001a84b6fc69b69291ab53d809642e93" id="r_a001a84b6fc69b69291ab53d809642e93"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1table_1_1SetPartitionStatistics.html#a001a84b6fc69b69291ab53d809642e93">GenerateRequirements</a> (<a class="el" href="classiceberg_1_1TableUpdateContext.html">TableUpdateContext</a> &amp;context) const override</td></tr>
<tr class="memdesc:a001a84b6fc69b69291ab53d809642e93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Generate update requirements for this metadata update. <br /></td></tr>
<tr class="separator:a001a84b6fc69b69291ab53d809642e93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0b775f56c032b872ef0d93a17369466" id="r_ab0b775f56c032b872ef0d93a17369466"><td class="memItemLeft" align="right" valign="top">Kind&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1table_1_1SetPartitionStatistics.html#ab0b775f56c032b872ef0d93a17369466">kind</a> () const override</td></tr>
<tr class="memdesc:ab0b775f56c032b872ef0d93a17369466"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the kind of this update. <br /></td></tr>
<tr class="separator:ab0b775f56c032b872ef0d93a17369466"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a00d38290ec0c6542d1982e72b26ba6ef" id="r_a00d38290ec0c6542d1982e72b26ba6ef"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classiceberg_1_1table_1_1SetPartitionStatistics.html#a00d38290ec0c6542d1982e72b26ba6ef">Equals</a> (const <a class="el" href="classiceberg_1_1TableUpdate.html">TableUpdate</a> &amp;other) const override</td></tr>
<tr class="memdesc:a00d38290ec0c6542d1982e72b26ba6ef"><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:a00d38290ec0c6542d1982e72b26ba6ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace74e4104d5e9e8271d63bc830eab48e" id="r_ace74e4104d5e9e8271d63bc830eab48e"><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_1SetPartitionStatistics.html#ace74e4104d5e9e8271d63bc830eab48e">Clone</a> () const override</td></tr>
<tr class="memdesc:ace74e4104d5e9e8271d63bc830eab48e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a deep copy of this update. <br /></td></tr>
<tr class="separator:ace74e4104d5e9e8271d63bc830eab48e"><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>
, <b>kAddEncryptionKey</b>
, <b>kRemoveEncryptionKey</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 setting partition statistics for a snapshot. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="aea5f77d8b32eae7d32c295bf7bcede29" name="aea5f77d8b32eae7d32c295bf7bcede29"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea5f77d8b32eae7d32c295bf7bcede29">&#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::SetPartitionStatistics::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="ace74e4104d5e9e8271d63bc830eab48e" name="ace74e4104d5e9e8271d63bc830eab48e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace74e4104d5e9e8271d63bc830eab48e">&#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::SetPartitionStatistics::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="a00d38290ec0c6542d1982e72b26ba6ef" name="a00d38290ec0c6542d1982e72b26ba6ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a00d38290ec0c6542d1982e72b26ba6ef">&#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::SetPartitionStatistics::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="a001a84b6fc69b69291ab53d809642e93" name="a001a84b6fc69b69291ab53d809642e93"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a001a84b6fc69b69291ab53d809642e93">&#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::SetPartitionStatistics::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="ab0b775f56c032b872ef0d93a17369466" name="ab0b775f56c032b872ef0d93a17369466"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0b775f56c032b872ef0d93a17369466">&#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::SetPartitionStatistics::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 file:<ul>
<li>iceberg/<a class="el" href="table__update_8h_source.html">table_update.h</a></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>