| <?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="inheritable__metadata_8h" kind="file" language="C++"> |
| <compoundname>inheritable_metadata.h</compoundname> |
| <includes local="no">cstdint</includes> |
| <includes local="no">memory</includes> |
| <includes local="no">string</includes> |
| <includes refid="iceberg__export_8h" local="yes">iceberg/iceberg_export.h</includes> |
| <includes refid="result_8h" local="yes">iceberg/result.h</includes> |
| <includes refid="type__fwd_8h" local="yes">iceberg/type_fwd.h</includes> |
| <includedby refid="inheritable__metadata_8cc" local="yes">iceberg/inheritable_metadata.cc</includedby> |
| <includedby refid="manifest__reader_8cc" local="yes">iceberg/manifest/manifest_reader.cc</includedby> |
| <includedby refid="manifest__reader__internal_8h" local="yes">iceberg/manifest/manifest_reader_internal.h</includedby> |
| <includedby refid="manifest__util_8cc" local="yes">iceberg/manifest/manifest_util.cc</includedby> |
| <incdepgraph> |
| <node id="5"> |
| <label>iceberg/iceberg_export.h</label> |
| <link refid="iceberg__export_8h_source"/> |
| </node> |
| <node id="1"> |
| <label>iceberg/inheritable_metadata.h</label> |
| <link refid="inheritable__metadata_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> |
| <childnode refid="9" relation="include"> |
| </childnode> |
| </node> |
| <node id="6"> |
| <label>iceberg/result.h</label> |
| <link refid="result_8h_source"/> |
| <childnode refid="7" relation="include"> |
| </childnode> |
| <childnode refid="8" relation="include"> |
| </childnode> |
| <childnode refid="4" relation="include"> |
| </childnode> |
| <childnode refid="5" relation="include"> |
| </childnode> |
| </node> |
| <node id="9"> |
| <label>iceberg/type_fwd.h</label> |
| <link refid="type__fwd_8h"/> |
| </node> |
| <node id="2"> |
| <label>cstdint</label> |
| </node> |
| <node id="7"> |
| <label>expected</label> |
| </node> |
| <node id="8"> |
| <label>format</label> |
| </node> |
| <node id="3"> |
| <label>memory</label> |
| </node> |
| <node id="4"> |
| <label>string</label> |
| </node> |
| </incdepgraph> |
| <invincdepgraph> |
| <node id="1"> |
| <label>iceberg/inheritable_metadata.h</label> |
| <link refid="inheritable__metadata_8h"/> |
| <childnode refid="2" relation="include"> |
| </childnode> |
| </node> |
| <node id="2"> |
| <label>iceberg/manifest/manifest_reader_internal.h</label> |
| <link refid="manifest__reader__internal_8h"/> |
| </node> |
| </invincdepgraph> |
| <innerclass refid="classiceberg_1_1InheritableMetadata" prot="public">iceberg::InheritableMetadata</innerclass> |
| <innerclass refid="classiceberg_1_1BaseInheritableMetadata" prot="public">iceberg::BaseInheritableMetadata</innerclass> |
| <innerclass refid="classiceberg_1_1EmptyInheritableMetadata" prot="public">iceberg::EmptyInheritableMetadata</innerclass> |
| <innerclass refid="classiceberg_1_1CopyInheritableMetadata" prot="public">iceberg::CopyInheritableMetadata</innerclass> |
| <innerclass refid="classiceberg_1_1InheritableMetadataFactory" prot="public">iceberg::InheritableMetadataFactory</innerclass> |
| <innernamespace refid="namespaceiceberg">iceberg</innernamespace> |
| <briefdescription> |
| </briefdescription> |
| <detaileddescription> |
| <para>Metadata inheritance system for manifest entries. </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/>"License");<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/>"AS<sp/>IS"<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/><cstdint></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="26"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><memory></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="27"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><string></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="28"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="29"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"iceberg/iceberg_export.h"</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"iceberg/result.h"</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="31"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="type__fwd_8h" kindref="compound">iceberg/type_fwd.h</ref>"</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="32"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="33"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">iceberg<sp/>{</highlight></codeline> |
| <codeline lineno="34"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="40" refid="classiceberg_1_1InheritableMetadata" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal">ICEBERG_EXPORT<sp/><ref refid="classiceberg_1_1InheritableMetadata" kindref="compound">InheritableMetadata</ref><sp/>{</highlight></codeline> |
| <codeline lineno="41"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="42"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1InheritableMetadata" kindref="compound">~InheritableMetadata</ref>();</highlight></codeline> |
| <codeline lineno="43"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="47" refid="classiceberg_1_1InheritableMetadata_1a8cce7bd6676ae4bd6b69eff701c6398f" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>Status<sp/><ref refid="classiceberg_1_1InheritableMetadata_1a8cce7bd6676ae4bd6b69eff701c6398f" kindref="member">Apply</ref>(<ref refid="structiceberg_1_1ManifestEntry" kindref="compound">ManifestEntry</ref>&<sp/>entry)<sp/>=<sp/>0;</highlight></codeline> |
| <codeline lineno="48"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="49"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="52" refid="classiceberg_1_1BaseInheritableMetadata" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal">ICEBERG_EXPORT<sp/><ref refid="classiceberg_1_1BaseInheritableMetadata" kindref="compound">BaseInheritableMetadata</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1InheritableMetadata" kindref="compound">InheritableMetadata</ref><sp/>{</highlight></codeline> |
| <codeline lineno="53"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="59"><highlight class="normal"><sp/><sp/><ref refid="classiceberg_1_1BaseInheritableMetadata" kindref="compound">BaseInheritableMetadata</ref>(int32_t<sp/>spec_id,<sp/>int64_t<sp/>snapshot_id,<sp/>int64_t<sp/>sequence_number,</highlight></codeline> |
| <codeline lineno="60"><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/><sp/>std::string<sp/>manifest_location);</highlight></codeline> |
| <codeline lineno="61"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="62"><highlight class="normal"><sp/><sp/>Status<sp/>Apply(<ref refid="structiceberg_1_1ManifestEntry" kindref="compound">ManifestEntry</ref>&<sp/>entry)<sp/></highlight><highlight class="keyword">override</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="63"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="64"><highlight class="normal"><sp/><sp/><ref refid="classiceberg_1_1BaseInheritableMetadata" kindref="compound">~BaseInheritableMetadata</ref>()<sp/></highlight><highlight class="keyword">override</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="65"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="66"><highlight class="normal"><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="67"><highlight class="normal"><sp/><sp/>int32_t<sp/>spec_id_;</highlight></codeline> |
| <codeline lineno="68"><highlight class="normal"><sp/><sp/>int64_t<sp/>snapshot_id_;</highlight></codeline> |
| <codeline lineno="69"><highlight class="normal"><sp/><sp/>int64_t<sp/>sequence_number_;</highlight></codeline> |
| <codeline lineno="70"><highlight class="normal"><sp/><sp/>std::string<sp/>manifest_location_;</highlight></codeline> |
| <codeline lineno="71"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="72"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="74" refid="classiceberg_1_1EmptyInheritableMetadata" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal">ICEBERG_EXPORT<sp/><ref refid="classiceberg_1_1EmptyInheritableMetadata" kindref="compound">EmptyInheritableMetadata</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1InheritableMetadata" kindref="compound">InheritableMetadata</ref><sp/>{</highlight></codeline> |
| <codeline lineno="75"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="76"><highlight class="normal"><sp/><sp/>Status<sp/>Apply(<ref refid="structiceberg_1_1ManifestEntry" kindref="compound">ManifestEntry</ref>&<sp/>entry)<sp/></highlight><highlight class="keyword">override</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="77"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="78"><highlight class="normal"><sp/><sp/><ref refid="classiceberg_1_1EmptyInheritableMetadata" kindref="compound">~EmptyInheritableMetadata</ref>()<sp/></highlight><highlight class="keyword">override</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="79"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="80"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="82" refid="classiceberg_1_1CopyInheritableMetadata" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal">ICEBERG_EXPORT<sp/><ref refid="classiceberg_1_1CopyInheritableMetadata" kindref="compound">CopyInheritableMetadata</ref><sp/>:<sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1InheritableMetadata" kindref="compound">InheritableMetadata</ref><sp/>{</highlight></codeline> |
| <codeline lineno="83"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="86"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/><ref refid="classiceberg_1_1CopyInheritableMetadata" kindref="compound">CopyInheritableMetadata</ref>(int64_t<sp/>snapshot_id);</highlight></codeline> |
| <codeline lineno="87"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="88"><highlight class="normal"><sp/><sp/>Status<sp/>Apply(<ref refid="structiceberg_1_1ManifestEntry" kindref="compound">ManifestEntry</ref>&<sp/>entry)<sp/></highlight><highlight class="keyword">override</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="89"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="90"><highlight class="normal"><sp/><sp/><ref refid="classiceberg_1_1CopyInheritableMetadata" kindref="compound">~CopyInheritableMetadata</ref>()<sp/></highlight><highlight class="keyword">override</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="91"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="92"><highlight class="normal"><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="93"><highlight class="normal"><sp/><sp/>int64_t<sp/>snapshot_id_;</highlight></codeline> |
| <codeline lineno="94"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="95"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="97" refid="classiceberg_1_1InheritableMetadataFactory" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal">ICEBERG_EXPORT<sp/><ref refid="classiceberg_1_1InheritableMetadataFactory" kindref="compound">InheritableMetadataFactory</ref><sp/>{</highlight></codeline> |
| <codeline lineno="98"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="100"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/>Result<std::unique_ptr<InheritableMetadata>><sp/>Empty();</highlight></codeline> |
| <codeline lineno="101"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="105"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/>Result<std::unique_ptr<InheritableMetadata>><sp/>FromManifest(</highlight></codeline> |
| <codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="structiceberg_1_1ManifestFile" kindref="compound">ManifestFile</ref>&<sp/>manifest);</highlight></codeline> |
| <codeline lineno="107"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="111"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/>Result<std::unique_ptr<InheritableMetadata>><sp/>ForCopy(int64_t<sp/>snapshot_id);</highlight></codeline> |
| <codeline lineno="112"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="113"><highlight class="normal"><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="114"><highlight class="normal"><sp/><sp/><ref refid="classiceberg_1_1InheritableMetadataFactory" kindref="compound">InheritableMetadataFactory</ref>()<sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="115"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="116"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="117"><highlight class="normal">}<sp/><sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>iceberg</highlight><highlight class="normal"></highlight></codeline> |
| </programlisting> |
| <location file="iceberg/inheritable_metadata.h"/> |
| </compounddef> |
| </doxygen> |