blob: f51c98fdc356c2a59cfcc59dad87ea34040abbe1 [file] [log] [blame]
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
<compounddef id="statistics__file_8h" kind="file" language="C++">
<compoundname>statistics_file.h</compoundname>
<includes local="no">cstdint</includes>
<includes local="no">string</includes>
<includes local="no">unordered_map</includes>
<includes local="no">vector</includes>
<includes refid="iceberg__export_8h" local="yes">iceberg/iceberg_export.h</includes>
<includedby refid="json__serde_8cc" local="yes">iceberg/json_serde.cc</includedby>
<includedby refid="json__serde__internal_8h" local="yes">iceberg/json_serde_internal.h</includedby>
<includedby refid="statistics__file_8cc" local="yes">iceberg/statistics_file.cc</includedby>
<includedby refid="table__metadata_8cc" local="yes">iceberg/table_metadata.cc</includedby>
<includedby refid="table__update_8cc" local="yes">iceberg/table_update.cc</includedby>
<includedby refid="formatter__test_8cc" local="yes">iceberg/test/formatter_test.cc</includedby>
<includedby refid="json__serde__test_8cc" local="yes">iceberg/test/json_serde_test.cc</includedby>
<includedby refid="metadata__serde__test_8cc" local="yes">iceberg/test/metadata_serde_test.cc</includedby>
<includedby refid="update__partition__statistics__test_8cc" local="yes">iceberg/test/update_partition_statistics_test.cc</includedby>
<includedby refid="update__statistics__test_8cc" local="yes">iceberg/test/update_statistics_test.cc</includedby>
<includedby refid="transaction_8cc" local="yes">iceberg/transaction.cc</includedby>
<includedby refid="update__partition__statistics_8cc" local="yes">iceberg/update/update_partition_statistics.cc</includedby>
<includedby refid="update__statistics_8cc" local="yes">iceberg/update/update_statistics.cc</includedby>
<incdepgraph>
<node id="6">
<label>iceberg/iceberg_export.h</label>
<link refid="iceberg__export_8h_source"/>
</node>
<node id="1">
<label>iceberg/statistics_file.h</label>
<link refid="statistics__file_8h"/>
<childnode refid="2" relation="include">
</childnode>
<childnode refid="3" relation="include">
</childnode>
<childnode refid="4" relation="include">
</childnode>
<childnode refid="5" relation="include">
</childnode>
<childnode refid="6" relation="include">
</childnode>
</node>
<node id="2">
<label>cstdint</label>
</node>
<node id="3">
<label>string</label>
</node>
<node id="4">
<label>unordered_map</label>
</node>
<node id="5">
<label>vector</label>
</node>
</incdepgraph>
<invincdepgraph>
<node id="2">
<label>iceberg/json_serde_internal.h</label>
<link refid="json__serde__internal_8h_source"/>
<childnode refid="3" relation="include">
</childnode>
</node>
<node id="1">
<label>iceberg/statistics_file.h</label>
<link refid="statistics__file_8h"/>
<childnode refid="2" relation="include">
</childnode>
</node>
<node id="3">
<label>iceberg/test/test_resource.h</label>
<link refid="test__resource_8h_source"/>
<childnode refid="4" relation="include">
</childnode>
</node>
<node id="4">
<label>iceberg/test/update_test_base.h</label>
<link refid="update__test__base_8h_source"/>
</node>
</invincdepgraph>
<innerclass refid="structiceberg_1_1BlobMetadata" prot="public">iceberg::BlobMetadata</innerclass>
<innerclass refid="structiceberg_1_1StatisticsFile" prot="public">iceberg::StatisticsFile</innerclass>
<innerclass refid="structiceberg_1_1PartitionStatisticsFile" prot="public">iceberg::PartitionStatisticsFile</innerclass>
<innernamespace refid="namespaceiceberg">iceberg</innernamespace>
<briefdescription>
</briefdescription>
<detaileddescription>
<para>Statistics file for Iceberg tables. </para>
</detaileddescription>
<programlisting>
<codeline lineno="1"><highlight class="comment">/*</highlight></codeline>
<codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Licensed<sp/>to<sp/>the<sp/>Apache<sp/>Software<sp/>Foundation<sp/>(ASF)<sp/>under<sp/>one</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/>or<sp/>more<sp/>contributor<sp/>license<sp/>agreements.<sp/><sp/>See<sp/>the<sp/>NOTICE<sp/>file</highlight></codeline>
<codeline lineno="4"><highlight class="comment"><sp/>*<sp/>distributed<sp/>with<sp/>this<sp/>work<sp/>for<sp/>additional<sp/>information</highlight></codeline>
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/>regarding<sp/>copyright<sp/>ownership.<sp/><sp/>The<sp/>ASF<sp/>licenses<sp/>this<sp/>file</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>*<sp/>to<sp/>you<sp/>under<sp/>the<sp/>Apache<sp/>License,<sp/>Version<sp/>2.0<sp/>(the</highlight></codeline>
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/>&quot;License&quot;);<sp/>you<sp/>may<sp/>not<sp/>use<sp/>this<sp/>file<sp/>except<sp/>in<sp/>compliance</highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/>with<sp/>the<sp/>License.<sp/><sp/>You<sp/>may<sp/>obtain<sp/>a<sp/>copy<sp/>of<sp/>the<sp/>License<sp/>at</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/><sp/><sp/>http://www.apache.org/licenses/LICENSE-2.0</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>*<sp/>Unless<sp/>required<sp/>by<sp/>applicable<sp/>law<sp/>or<sp/>agreed<sp/>to<sp/>in<sp/>writing,</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/>software<sp/>distributed<sp/>under<sp/>the<sp/>License<sp/>is<sp/>distributed<sp/>on<sp/>an</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/>&quot;AS<sp/>IS&quot;<sp/>BASIS,<sp/>WITHOUT<sp/>WARRANTIES<sp/>OR<sp/>CONDITIONS<sp/>OF<sp/>ANY</highlight></codeline>
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/>KIND,<sp/>either<sp/>express<sp/>or<sp/>implied.<sp/><sp/>See<sp/>the<sp/>License<sp/>for<sp/>the</highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/>specific<sp/>language<sp/>governing<sp/>permissions<sp/>and<sp/>limitations</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/>under<sp/>the<sp/>License.</highlight></codeline>
<codeline lineno="18"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"></highlight></codeline>
<codeline lineno="20"><highlight class="normal"></highlight><highlight class="preprocessor">#pragma<sp/>once</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="21"><highlight class="normal"></highlight></codeline>
<codeline lineno="24"><highlight class="normal"></highlight></codeline>
<codeline lineno="25"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;cstdint&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="26"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;string&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="27"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;unordered_map&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="28"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;vector&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="29"><highlight class="normal"></highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&quot;iceberg/iceberg_export.h&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="31"><highlight class="normal"></highlight></codeline>
<codeline lineno="32"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">iceberg<sp/>{</highlight></codeline>
<codeline lineno="33"><highlight class="normal"></highlight></codeline>
<codeline lineno="35" refid="structiceberg_1_1BlobMetadata" refkind="compound"><highlight class="keyword">struct<sp/></highlight><highlight class="normal">ICEBERG_EXPORT<sp/><ref refid="structiceberg_1_1BlobMetadata" kindref="compound">BlobMetadata</ref><sp/>{</highlight></codeline>
<codeline lineno="37" refid="structiceberg_1_1BlobMetadata_1a24c36733628f7eb93dddf817db5f8cf3" refkind="member"><highlight class="normal"><sp/><sp/>std::string<sp/><ref refid="structiceberg_1_1BlobMetadata_1a24c36733628f7eb93dddf817db5f8cf3" kindref="member">type</ref>;</highlight></codeline>
<codeline lineno="39" refid="structiceberg_1_1BlobMetadata_1a65ffbc7cd817be822e60fffbb7217bc2" refkind="member"><highlight class="normal"><sp/><sp/>int64_t<sp/><ref refid="structiceberg_1_1BlobMetadata_1a65ffbc7cd817be822e60fffbb7217bc2" kindref="member">source_snapshot_id</ref>;</highlight></codeline>
<codeline lineno="41" refid="structiceberg_1_1BlobMetadata_1a677f24776580eecfc54caceaa59e6d7f" refkind="member"><highlight class="normal"><sp/><sp/>int64_t<sp/><ref refid="structiceberg_1_1BlobMetadata_1a677f24776580eecfc54caceaa59e6d7f" kindref="member">source_snapshot_sequence_number</ref>;</highlight></codeline>
<codeline lineno="43" refid="structiceberg_1_1BlobMetadata_1add0d07c5a907d2402900be541c0188f9" refkind="member"><highlight class="normal"><sp/><sp/>std::vector&lt;int32_t&gt;<sp/><ref refid="structiceberg_1_1BlobMetadata_1add0d07c5a907d2402900be541c0188f9" kindref="member">fields</ref>;</highlight></codeline>
<codeline lineno="45" refid="structiceberg_1_1BlobMetadata_1a4221b8b17fa719b1146c3c63248ffeb2" refkind="member"><highlight class="normal"><sp/><sp/>std::unordered_map&lt;std::string,<sp/>std::string&gt;<sp/><ref refid="structiceberg_1_1BlobMetadata_1a4221b8b17fa719b1146c3c63248ffeb2" kindref="member">properties</ref>;</highlight></codeline>
<codeline lineno="46"><highlight class="normal"></highlight></codeline>
<codeline lineno="48" refid="structiceberg_1_1BlobMetadata_1aaffda2f19d58a19f1b7ee90b35e289b4" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1BlobMetadata_1aaffda2f19d58a19f1b7ee90b35e289b4" kindref="member">operator==</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1BlobMetadata" kindref="compound">BlobMetadata</ref>&amp;<sp/>lhs,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1BlobMetadata" kindref="compound">BlobMetadata</ref>&amp;<sp/>rhs)<sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="49"><highlight class="normal">};</highlight></codeline>
<codeline lineno="50"><highlight class="normal"></highlight></codeline>
<codeline lineno="52" refid="structiceberg_1_1StatisticsFile" refkind="compound"><highlight class="keyword">struct<sp/></highlight><highlight class="normal">ICEBERG_EXPORT<sp/><ref refid="structiceberg_1_1StatisticsFile" kindref="compound">StatisticsFile</ref><sp/>{</highlight></codeline>
<codeline lineno="54" refid="structiceberg_1_1StatisticsFile_1a9aa6dd74b3c76db5333572b28f9efb1c" refkind="member"><highlight class="normal"><sp/><sp/>int64_t<sp/><ref refid="structiceberg_1_1StatisticsFile_1a9aa6dd74b3c76db5333572b28f9efb1c" kindref="member">snapshot_id</ref>;</highlight></codeline>
<codeline lineno="56" refid="structiceberg_1_1StatisticsFile_1a032a5ea20ec4a7b3f5eb535de8479580" refkind="member"><highlight class="normal"><sp/><sp/>std::string<sp/><ref refid="structiceberg_1_1StatisticsFile_1a032a5ea20ec4a7b3f5eb535de8479580" kindref="member">path</ref>;</highlight></codeline>
<codeline lineno="58" refid="structiceberg_1_1StatisticsFile_1a8054a05cbecaf8e231154d7a6e6d44b3" refkind="member"><highlight class="normal"><sp/><sp/>int64_t<sp/><ref refid="structiceberg_1_1StatisticsFile_1a8054a05cbecaf8e231154d7a6e6d44b3" kindref="member">file_size_in_bytes</ref>;</highlight></codeline>
<codeline lineno="60" refid="structiceberg_1_1StatisticsFile_1a20af7d8ad92b638206a0297d2b54146c" refkind="member"><highlight class="normal"><sp/><sp/>int64_t<sp/><ref refid="structiceberg_1_1StatisticsFile_1a20af7d8ad92b638206a0297d2b54146c" kindref="member">file_footer_size_in_bytes</ref>;</highlight></codeline>
<codeline lineno="62" refid="structiceberg_1_1StatisticsFile_1ad6facf9ebad5b69d7dbbd65b416b001b" refkind="member"><highlight class="normal"><sp/><sp/>std::vector&lt;BlobMetadata&gt;<sp/><ref refid="structiceberg_1_1StatisticsFile_1ad6facf9ebad5b69d7dbbd65b416b001b" kindref="member">blob_metadata</ref>;</highlight></codeline>
<codeline lineno="63"><highlight class="normal"></highlight></codeline>
<codeline lineno="65" refid="structiceberg_1_1StatisticsFile_1a55122ff2dcdb43cdb1dcd4fc66e87967" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1StatisticsFile_1a55122ff2dcdb43cdb1dcd4fc66e87967" kindref="member">operator==</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1StatisticsFile" kindref="compound">StatisticsFile</ref>&amp;<sp/>lhs,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1StatisticsFile" kindref="compound">StatisticsFile</ref>&amp;<sp/>rhs)<sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="66"><highlight class="normal">};</highlight></codeline>
<codeline lineno="67"><highlight class="normal"></highlight></codeline>
<codeline lineno="69" refid="structiceberg_1_1PartitionStatisticsFile" refkind="compound"><highlight class="keyword">struct<sp/></highlight><highlight class="normal">ICEBERG_EXPORT<sp/><ref refid="structiceberg_1_1PartitionStatisticsFile" kindref="compound">PartitionStatisticsFile</ref><sp/>{</highlight></codeline>
<codeline lineno="72" refid="structiceberg_1_1PartitionStatisticsFile_1aae2a7f546dbbbfc5ab27b06f887de129" refkind="member"><highlight class="normal"><sp/><sp/>int64_t<sp/><ref refid="structiceberg_1_1PartitionStatisticsFile_1aae2a7f546dbbbfc5ab27b06f887de129" kindref="member">snapshot_id</ref>;</highlight></codeline>
<codeline lineno="74" refid="structiceberg_1_1PartitionStatisticsFile_1ab2f5786ce6b9a7a4ecb1a7fec8cf6efc" refkind="member"><highlight class="normal"><sp/><sp/>std::string<sp/><ref refid="structiceberg_1_1PartitionStatisticsFile_1ab2f5786ce6b9a7a4ecb1a7fec8cf6efc" kindref="member">path</ref>;</highlight></codeline>
<codeline lineno="76" refid="structiceberg_1_1PartitionStatisticsFile_1aba9393e232f859d1931ec23feea9b65f" refkind="member"><highlight class="normal"><sp/><sp/>int64_t<sp/><ref refid="structiceberg_1_1PartitionStatisticsFile_1aba9393e232f859d1931ec23feea9b65f" kindref="member">file_size_in_bytes</ref>;</highlight></codeline>
<codeline lineno="77"><highlight class="normal"></highlight></codeline>
<codeline lineno="79" refid="structiceberg_1_1PartitionStatisticsFile_1aecbdcc088ef3f23462a8d8e997fe3089" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1PartitionStatisticsFile_1aecbdcc088ef3f23462a8d8e997fe3089" kindref="member">operator==</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1PartitionStatisticsFile" kindref="compound">PartitionStatisticsFile</ref>&amp;<sp/>lhs,</highlight></codeline>
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1PartitionStatisticsFile" kindref="compound">PartitionStatisticsFile</ref>&amp;<sp/>rhs)<sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="81"><highlight class="normal">};</highlight></codeline>
<codeline lineno="82"><highlight class="normal"></highlight></codeline>
<codeline lineno="84"><highlight class="normal">ICEBERG_EXPORT<sp/>std::string<sp/>ToString(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1BlobMetadata" kindref="compound">BlobMetadata</ref>&amp;<sp/>blob_metadata);</highlight></codeline>
<codeline lineno="85"><highlight class="normal"></highlight></codeline>
<codeline lineno="87"><highlight class="normal">ICEBERG_EXPORT<sp/>std::string<sp/>ToString(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1StatisticsFile" kindref="compound">StatisticsFile</ref>&amp;<sp/>statistics_file);</highlight></codeline>
<codeline lineno="88"><highlight class="normal"></highlight></codeline>
<codeline lineno="90"><highlight class="normal">ICEBERG_EXPORT<sp/>std::string<sp/>ToString(</highlight></codeline>
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1PartitionStatisticsFile" kindref="compound">PartitionStatisticsFile</ref>&amp;<sp/>partition_statistics_file);</highlight></codeline>
<codeline lineno="92"><highlight class="normal"></highlight></codeline>
<codeline lineno="93"><highlight class="normal">}<sp/><sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>iceberg</highlight><highlight class="normal"></highlight></codeline>
</programlisting>
<location file="iceberg/statistics_file.h"/>
</compounddef>
</doxygen>