| <?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="data__input__stream_8h" kind="file" language="C++"> |
| <compoundname>data_input_stream.h</compoundname> |
| <includes local="no">cstdint</includes> |
| <includes local="no">memory</includes> |
| <includes local="no">string</includes> |
| <includes refid="byte__order_8h" local="yes">paimon/io/byte_order.h</includes> |
| <includes refid="result_8h" local="yes">paimon/result.h</includes> |
| <includes refid="status_8h" local="yes">paimon/status.h</includes> |
| <includes refid="visibility_8h" local="yes">paimon/visibility.h</includes> |
| <incdepgraph> |
| <node id="5"> |
| <label>paimon/io/byte_order.h</label> |
| <link refid="byte__order_8h"/> |
| <childnode refid="2" relation="include"> |
| </childnode> |
| </node> |
| <node id="1"> |
| <label>/home/runner/work/paimon-cpp/paimon-cpp/include/paimon/io/data_input_stream.h</label> |
| <link refid="data__input__stream_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="10" relation="include"> |
| </childnode> |
| <childnode refid="18" relation="include"> |
| </childnode> |
| </node> |
| <node id="6"> |
| <label>paimon/result.h</label> |
| <link refid="result_8h"/> |
| <childnode refid="7" relation="include"> |
| </childnode> |
| <childnode refid="8" relation="include"> |
| </childnode> |
| <childnode refid="9" relation="include"> |
| </childnode> |
| <childnode refid="10" relation="include"> |
| </childnode> |
| <childnode refid="19" relation="include"> |
| </childnode> |
| </node> |
| <node id="10"> |
| <label>paimon/status.h</label> |
| <link refid="status_8h"/> |
| <childnode refid="11" relation="include"> |
| </childnode> |
| <childnode refid="12" relation="include"> |
| </childnode> |
| <childnode refid="3" relation="include"> |
| </childnode> |
| <childnode refid="4" relation="include"> |
| </childnode> |
| <childnode refid="9" relation="include"> |
| </childnode> |
| <childnode refid="13" relation="include"> |
| </childnode> |
| <childnode refid="14" relation="include"> |
| </childnode> |
| <childnode refid="15" relation="include"> |
| </childnode> |
| <childnode refid="18" relation="include"> |
| </childnode> |
| </node> |
| <node id="15"> |
| <label>paimon/string_builder.h</label> |
| <link refid="string__builder_8h"/> |
| <childnode refid="3" relation="include"> |
| </childnode> |
| <childnode refid="16" relation="include"> |
| </childnode> |
| <childnode refid="17" relation="include"> |
| </childnode> |
| <childnode refid="4" relation="include"> |
| </childnode> |
| <childnode refid="9" relation="include"> |
| </childnode> |
| <childnode refid="18" relation="include"> |
| </childnode> |
| </node> |
| <node id="18"> |
| <label>paimon/visibility.h</label> |
| <link refid="visibility_8h"/> |
| </node> |
| <node id="7"> |
| <label>cassert</label> |
| </node> |
| <node id="2"> |
| <label>cstdint</label> |
| </node> |
| <node id="11"> |
| <label>cstring</label> |
| </node> |
| <node id="12"> |
| <label>iosfwd</label> |
| </node> |
| <node id="3"> |
| <label>memory</label> |
| </node> |
| <node id="16"> |
| <label>ostream</label> |
| </node> |
| <node id="13"> |
| <label>paimon/compare.h</label> |
| </node> |
| <node id="14"> |
| <label>paimon/macros.h</label> |
| </node> |
| <node id="19"> |
| <label>paimon/traits.h</label> |
| </node> |
| <node id="17"> |
| <label>sstream</label> |
| </node> |
| <node id="4"> |
| <label>string</label> |
| </node> |
| <node id="8"> |
| <label>type_traits</label> |
| </node> |
| <node id="9"> |
| <label>utility</label> |
| </node> |
| </incdepgraph> |
| <innerclass refid="classpaimon_1_1_data_input_stream" prot="public">paimon::DataInputStream</innerclass> |
| <innernamespace refid="namespacepaimon">paimon</innernamespace> |
| <briefdescription> |
| </briefdescription> |
| <detaileddescription> |
| </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="22"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><cstdint></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="23"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><memory></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="24"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><string></highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="25"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="26"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="byte__order_8h" kindref="compound">paimon/io/byte_order.h</ref>"</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="27"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="result_8h" kindref="compound">paimon/result.h</ref>"</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="28"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="status_8h" kindref="compound">paimon/status.h</ref>"</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="29"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"<ref refid="visibility_8h" kindref="compound">paimon/visibility.h</ref>"</highlight><highlight class="normal"></highlight></codeline> |
| <codeline lineno="30"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="31"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal"><ref refid="namespacepaimon" kindref="compound">paimon</ref><sp/>{</highlight></codeline> |
| <codeline lineno="32"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal">Bytes;</highlight></codeline> |
| <codeline lineno="33"><highlight class="normal"></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal">InputStream;</highlight></codeline> |
| <codeline lineno="34"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="38" refid="classpaimon_1_1_data_input_stream" refkind="compound"><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">PAIMON_EXPORT</ref><sp/><ref refid="classpaimon_1_1_data_input_stream" kindref="compound">DataInputStream</ref><sp/>{</highlight></codeline> |
| <codeline lineno="39"><highlight class="normal"><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="42" refid="classpaimon_1_1_data_input_stream_1a2707cf4439bb0d8d14da34a7be98e508" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">explicit</highlight><highlight class="normal"><sp/><ref refid="classpaimon_1_1_data_input_stream_1a2707cf4439bb0d8d14da34a7be98e508" kindref="member">DataInputStream</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::shared_ptr<InputStream>&<sp/><ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">input_stream</ref>);</highlight></codeline> |
| <codeline lineno="43"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="46" refid="classpaimon_1_1_data_input_stream_1af8880ec11e07b93a631d503e2eba5d97" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classpaimon_1_1_status" kindref="compound">Status</ref><sp/><ref refid="classpaimon_1_1_data_input_stream_1af8880ec11e07b93a631d503e2eba5d97" kindref="member">Seek</ref>(<ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">int64_t</ref><sp/>offset)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="47"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline> |
| <codeline lineno="51" refid="classpaimon_1_1_data_input_stream_1a382fb1c4d6d93add5fbe1a7b339188c0" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classpaimon_1_1_result" kindref="compound">Result<T></ref><sp/><ref refid="classpaimon_1_1_data_input_stream_1a382fb1c4d6d93add5fbe1a7b339188c0" kindref="member">ReadValue</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="52"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="56" refid="classpaimon_1_1_data_input_stream_1a7e706f144cfd57fba8779f8b39b15778" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classpaimon_1_1_status" kindref="compound">Status</ref><sp/><ref refid="classpaimon_1_1_data_input_stream_1a7e706f144cfd57fba8779f8b39b15778" kindref="member">ReadBytes</ref>(<ref refid="classpaimon_1_1_bytes" kindref="compound">Bytes</ref>*<sp/><ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">bytes</ref>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="57"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="61" refid="classpaimon_1_1_data_input_stream_1acc3f894f0347171568a16db33937d74e" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classpaimon_1_1_status" kindref="compound">Status</ref><sp/><ref refid="classpaimon_1_1_data_input_stream_1acc3f894f0347171568a16db33937d74e" kindref="member">Read</ref>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal">*<sp/>data,<sp/><ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">uint32_t</ref><sp/>size)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="62"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="65" refid="classpaimon_1_1_data_input_stream_1a7ded3fd2556526c3850eb44b69fcaebe" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classpaimon_1_1_result" kindref="compound">Result<std::string></ref><sp/><ref refid="classpaimon_1_1_data_input_stream_1a7ded3fd2556526c3850eb44b69fcaebe" kindref="member">ReadString</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="66"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="68" refid="classpaimon_1_1_data_input_stream_1a9053538fb581beae3578505bd96a407b" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classpaimon_1_1_result" kindref="compound">Result<int64_t></ref><sp/><ref refid="classpaimon_1_1_data_input_stream_1a9053538fb581beae3578505bd96a407b" kindref="member">GetPos</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="69"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="71" refid="classpaimon_1_1_data_input_stream_1ae60d58539219a175067ea60742eb216c" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classpaimon_1_1_result" kindref="compound">Result<uint64_t></ref><sp/><ref refid="classpaimon_1_1_data_input_stream_1ae60d58539219a175067ea60742eb216c" kindref="member">Length</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="72"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="75" refid="classpaimon_1_1_data_input_stream_1ac3e6996300630f8853420fad310d8604" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classpaimon_1_1_data_input_stream_1ac3e6996300630f8853420fad310d8604" kindref="member">SetOrder</ref>(<ref refid="namespacepaimon_1ad9aa7d30bb0d191711934a49db8fece8" kindref="member">ByteOrder</ref><sp/><ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">order</ref>)<sp/>{</highlight></codeline> |
| <codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>byte_order_<sp/>=<sp/><ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">order</ref>;</highlight></codeline> |
| <codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> |
| <codeline lineno="78"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="79"><highlight class="normal"><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="83" refid="classpaimon_1_1_data_input_stream_1a3e8ecef0f8153d4cda3381f7abcfae30" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classpaimon_1_1_status" kindref="compound">Status</ref><sp/><ref refid="classpaimon_1_1_data_input_stream_1a3e8ecef0f8153d4cda3381f7abcfae30" kindref="member">AssertReadLength</ref>(<ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">int32_t</ref><sp/><ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">read_length</ref>,<sp/><ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">int32_t</ref><sp/><ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">actual_read_length</ref>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="84"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="87" refid="classpaimon_1_1_data_input_stream_1a38bee69a116c8900eb646500ceda4135" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classpaimon_1_1_status" kindref="compound">Status</ref><sp/><ref refid="classpaimon_1_1_data_input_stream_1a38bee69a116c8900eb646500ceda4135" kindref="member">AssertBoundary</ref>(<ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">int32_t</ref><sp/><ref refid="memory__pool_8h_1a147ba4ba34a215b3a4f3a95c1ee11704" kindref="member">need_length</ref>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="88"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="91" refid="classpaimon_1_1_data_input_stream_1a43d6ba0316bd2a34db9777c412780125" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="classpaimon_1_1_data_input_stream_1a43d6ba0316bd2a34db9777c412780125" kindref="member">NeedSwap</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline> |
| <codeline lineno="92"><highlight class="normal"></highlight></codeline> |
| <codeline lineno="93"><highlight class="normal"><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline> |
| <codeline lineno="94" refid="classpaimon_1_1_data_input_stream_1a385d07acfaae5dd188195a3c1864e41e" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/>std::shared_ptr<InputStream><sp/><ref refid="classpaimon_1_1_data_input_stream_1a385d07acfaae5dd188195a3c1864e41e" kindref="member">input_stream_</ref>;</highlight></codeline> |
| <codeline lineno="95" refid="classpaimon_1_1_data_input_stream_1a4281b3b15730084352d831579eb3a0d9" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="namespacepaimon_1ad9aa7d30bb0d191711934a49db8fece8" kindref="member">ByteOrder</ref><sp/>byte_order_<sp/>=<sp/>ByteOrder::PAIMON_BIG_ENDIAN;</highlight></codeline> |
| <codeline lineno="96"><highlight class="normal">};</highlight></codeline> |
| <codeline lineno="97"><highlight class="normal">}<sp/><sp/></highlight><highlight class="comment">//<sp/>namespace<sp/>paimon</highlight><highlight class="normal"></highlight></codeline> |
| </programlisting> |
| <location file="/home/runner/work/paimon-cpp/paimon-cpp/include/paimon/io/data_input_stream.h"/> |
| </compounddef> |
| </doxygen> |