ooggss
initial
f0f4f2b
<?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.8.17">
<compounddef id="ArrowReader_8java" kind="file" language="Java">
<compoundname>ArrowReader.java</compoundname>
<innerclass refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader" prot="public">org::apache::iceberg::arrow::vectorized::ArrowReader</innerclass>
<innerclass refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator" prot="private">org::apache::iceberg::arrow::vectorized::ArrowReader::VectorizedCombinedScanIterator</innerclass>
<innernamespace refid="namespaceorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized">org::apache::iceberg::arrow::vectorized</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/>&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><highlight class="keyword">package<sp/></highlight><highlight class="normal">org.apache.iceberg.arrow.vectorized;</highlight></codeline>
<codeline lineno="20"><highlight class="normal"></highlight></codeline>
<codeline lineno="21"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.io.IOException;</highlight></codeline>
<codeline lineno="22"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.nio.ByteBuffer;</highlight></codeline>
<codeline lineno="23"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.util.Collection;</highlight></codeline>
<codeline lineno="24"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.util.Iterator;</highlight></codeline>
<codeline lineno="25"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.util.List;</highlight></codeline>
<codeline lineno="26"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.util.Map;</highlight></codeline>
<codeline lineno="27"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.util.NoSuchElementException;</highlight></codeline>
<codeline lineno="28"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.util.Set;</highlight></codeline>
<codeline lineno="29"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.util.stream.Collectors;</highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.util.stream.Stream;</highlight></codeline>
<codeline lineno="31"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/>java.util.stream.StreamSupport;</highlight></codeline>
<codeline lineno="32"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.arrow.vector.NullCheckingForGet;</highlight></codeline>
<codeline lineno="33"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.arrow.vector.VectorSchemaRoot;</highlight></codeline>
<codeline lineno="34"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.arrow.vector.types.Types.MinorType;</highlight></codeline>
<codeline lineno="35"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1CombinedScanTask" kindref="compound">CombinedScanTask</ref>;</highlight></codeline>
<codeline lineno="36"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1FileFormat" kindref="compound">FileFormat</ref>;</highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1FileScanTask" kindref="compound">FileScanTask</ref>;</highlight></codeline>
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1Schema" kindref="compound">Schema</ref>;</highlight></codeline>
<codeline lineno="39"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1TableScan" kindref="compound">TableScan</ref>;</highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1encryption" kindref="compound">encryption</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1EncryptedFiles" kindref="compound">EncryptedFiles</ref>;</highlight></codeline>
<codeline lineno="41"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1encryption" kindref="compound">encryption</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1encryption_1_1EncryptedInputFile" kindref="compound">EncryptedInputFile</ref>;</highlight></codeline>
<codeline lineno="42"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1encryption" kindref="compound">encryption</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1encryption_1_1EncryptionManager" kindref="compound">EncryptionManager</ref>;</highlight></codeline>
<codeline lineno="43"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1io" kindref="compound">io</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1io_1_1CloseableGroup" kindref="compound">CloseableGroup</ref>;</highlight></codeline>
<codeline lineno="44"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1io" kindref="compound">io</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterable" kindref="compound">CloseableIterable</ref>;</highlight></codeline>
<codeline lineno="45"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1io" kindref="compound">io</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterator" kindref="compound">CloseableIterator</ref>;</highlight></codeline>
<codeline lineno="46"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1io" kindref="compound">io</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1FileIO" kindref="compound">FileIO</ref>;</highlight></codeline>
<codeline lineno="47"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1io" kindref="compound">io</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1InputFile" kindref="compound">InputFile</ref>;</highlight></codeline>
<codeline lineno="48"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1mapping" kindref="compound">mapping</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1mapping_1_1NameMappingParser" kindref="compound">NameMappingParser</ref>;</highlight></codeline>
<codeline lineno="49"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1parquet" kindref="compound">parquet</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1Parquet" kindref="compound">Parquet</ref>;</highlight></codeline>
<codeline lineno="50"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1parquet" kindref="compound">parquet</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1TypeWithSchemaVisitor" kindref="compound">TypeWithSchemaVisitor</ref>;</highlight></codeline>
<codeline lineno="51"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.relocated.com.google.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1common" kindref="compound">common</ref>.base.<ref refid="classorg_1_1apache_1_1iceberg_1_1relocated_1_1com_1_1google_1_1common_1_1base_1_1Preconditions" kindref="compound">Preconditions</ref>;</highlight></codeline>
<codeline lineno="52"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.relocated.com.google.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1common" kindref="compound">common</ref>.collect.ImmutableMap;</highlight></codeline>
<codeline lineno="53"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.relocated.com.google.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1common" kindref="compound">common</ref>.collect.ImmutableSet;</highlight></codeline>
<codeline lineno="54"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.relocated.com.google.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1common" kindref="compound">common</ref>.collect.<ref refid="classorg_1_1apache_1_1iceberg_1_1relocated_1_1com_1_1google_1_1common_1_1collect_1_1Maps" kindref="compound">Maps</ref>;</highlight></codeline>
<codeline lineno="55"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.relocated.com.google.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1common" kindref="compound">common</ref>.collect.<ref refid="classorg_1_1apache_1_1iceberg_1_1relocated_1_1com_1_1google_1_1common_1_1collect_1_1Sets" kindref="compound">Sets</ref>;</highlight></codeline>
<codeline lineno="56"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1types" kindref="compound">types</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1types_1_1Type" kindref="compound">Type</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>;</highlight></codeline>
<codeline lineno="57"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1types" kindref="compound">types</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1types_1_1Types" kindref="compound">Types</ref>;</highlight></codeline>
<codeline lineno="58"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1util" kindref="compound">util</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1util_1_1ExceptionUtil" kindref="compound">ExceptionUtil</ref>;</highlight></codeline>
<codeline lineno="59"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg" kindref="compound">iceberg</ref>.<ref refid="namespaceorg_1_1apache_1_1iceberg_1_1util" kindref="compound">util</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1util_1_1TableScanUtil" kindref="compound">TableScanUtil</ref>;</highlight></codeline>
<codeline lineno="60"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.<ref refid="namespaceorg_1_1apache" kindref="compound">apache</ref>.parquet.schema.MessageType;</highlight></codeline>
<codeline lineno="61"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.slf4j.Logger;</highlight></codeline>
<codeline lineno="62"><highlight class="normal"></highlight><highlight class="keyword">import</highlight><highlight class="normal"><sp/><ref refid="namespaceorg" kindref="compound">org</ref>.slf4j.LoggerFactory;</highlight></codeline>
<codeline lineno="63"><highlight class="normal"></highlight></codeline>
<codeline lineno="101" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader" refkind="compound"><highlight class="keyword">public</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader" kindref="compound">ArrowReader</ref><sp/></highlight><highlight class="keyword">extends</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1io_1_1CloseableGroup" kindref="compound">CloseableGroup</ref><sp/>{</highlight></codeline>
<codeline lineno="102" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a11bb4ffafbc5c9356284e80a8d8744a2" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/>Logger<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a11bb4ffafbc5c9356284e80a8d8744a2" kindref="member">LOG</ref><sp/>=<sp/>LoggerFactory.getLogger(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader" kindref="compound">ArrowReader</ref>.class);</highlight></codeline>
<codeline lineno="103"><highlight class="normal"></highlight></codeline>
<codeline lineno="104" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a01d0dcb69dca62dececf71c08198537e" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/>Set&lt;TypeID&gt;<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a01d0dcb69dca62dececf71c08198537e" kindref="member">SUPPORTED_TYPES</ref><sp/>=</highlight></codeline>
<codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>ImmutableSet.of(</highlight></codeline>
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1aee22eec1cdd9d1ef42c88cae88218ec9" kindref="member">BOOLEAN</ref>,</highlight></codeline>
<codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1a0583dd600adf6b3f2181c9c368d39c23" kindref="member">INTEGER</ref>,</highlight></codeline>
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1a6d61b704a55b8ee3bf6f39113853ed6b" kindref="member">LONG</ref>,</highlight></codeline>
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1ad53332c09144e192b35b5eb6a1d41147" kindref="member">FLOAT</ref>,</highlight></codeline>
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1a65b806e4609ee71e6136ac5524b33144" kindref="member">DOUBLE</ref>,</highlight></codeline>
<codeline lineno="111"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1abba21af2596c57df35c2c4a5edc937da" kindref="member">STRING</ref>,</highlight></codeline>
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1a1534edefa504df38b2a0936ab641febe" kindref="member">TIMESTAMP</ref>,</highlight></codeline>
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1a3ca13bc66cd80c15538249cc05c6d33d" kindref="member">BINARY</ref>,</highlight></codeline>
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1a306db88c0868cdc8a97f9bfe4b5421cc" kindref="member">DATE</ref>,</highlight></codeline>
<codeline lineno="115"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1ac622b8dde27a2098ace11bee4e7d9f27" kindref="member">UUID</ref>,</highlight></codeline>
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1adace066291a5a9619faa4a96bd1666dd" kindref="member">TIME</ref>,</highlight></codeline>
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID" kindref="compound">TypeID</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1types_1_1Type_1_1TypeID_1a6f5530ab86fc66549d5d74fbe55a36be" kindref="member">DECIMAL</ref>);</highlight></codeline>
<codeline lineno="118"><highlight class="normal"></highlight></codeline>
<codeline lineno="119" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aa643d3209f401be2616bf5697a491ecc" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1Schema" kindref="compound">Schema</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aa643d3209f401be2616bf5697a491ecc" kindref="member">schema</ref>;</highlight></codeline>
<codeline lineno="120" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a1ba54a6db76961ea5191ed839e561476" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1FileIO" kindref="compound">FileIO</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a1ba54a6db76961ea5191ed839e561476" kindref="member">io</ref>;</highlight></codeline>
<codeline lineno="121" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a733ca39792f0570dc0f3566699086076" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1encryption_1_1EncryptionManager" kindref="compound">EncryptionManager</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a733ca39792f0570dc0f3566699086076" kindref="member">encryption</ref>;</highlight></codeline>
<codeline lineno="122" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aae93c867f95b29d10de69dd353c0458c" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aae93c867f95b29d10de69dd353c0458c" kindref="member">batchSize</ref>;</highlight></codeline>
<codeline lineno="123" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aeed9154507fc1e89cdefed308da74420" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">boolean</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aeed9154507fc1e89cdefed308da74420" kindref="member">reuseContainers</ref>;</highlight></codeline>
<codeline lineno="124"><highlight class="normal"></highlight></codeline>
<codeline lineno="138" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a432fab793cf4b508e3ac7ea07b708553" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a432fab793cf4b508e3ac7ea07b708553" kindref="member">ArrowReader</ref>(<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1TableScan" kindref="compound">TableScan</ref><sp/>scan,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aae93c867f95b29d10de69dd353c0458c" kindref="member">batchSize</ref>,<sp/></highlight><highlight class="keywordtype">boolean</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aeed9154507fc1e89cdefed308da74420" kindref="member">reuseContainers</ref>)<sp/>{</highlight></codeline>
<codeline lineno="139"><highlight class="normal"><sp/><sp/><sp/><sp/>this.schema<sp/>=<sp/>scan.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1Scan_1acb8fc9c08f016683ea0fb2a8d0f593e9" kindref="member">schema</ref>();</highlight></codeline>
<codeline lineno="140"><highlight class="normal"><sp/><sp/><sp/><sp/>this.io<sp/>=<sp/>scan.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1TableScan_1a8efe418c85919f1a6da69875b9cb46ab" kindref="member">table</ref>().<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1Table_1aae6b533eb4c5f1d348a092dfce3c789b" kindref="member">io</ref>();</highlight></codeline>
<codeline lineno="141"><highlight class="normal"><sp/><sp/><sp/><sp/>this.encryption<sp/>=<sp/>scan.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1TableScan_1a8efe418c85919f1a6da69875b9cb46ab" kindref="member">table</ref>().<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1Table_1aa936700e5d6aade74f96c4cf2ad67948" kindref="member">encryption</ref>();</highlight></codeline>
<codeline lineno="142"><highlight class="normal"><sp/><sp/><sp/><sp/>this.batchSize<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aae93c867f95b29d10de69dd353c0458c" kindref="member">batchSize</ref>;</highlight></codeline>
<codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>start<sp/>planning<sp/>tasks<sp/>in<sp/>the<sp/>background</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="144"><highlight class="normal"><sp/><sp/><sp/><sp/>this.reuseContainers<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aeed9154507fc1e89cdefed308da74420" kindref="member">reuseContainers</ref>;</highlight></codeline>
<codeline lineno="145"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="146"><highlight class="normal"></highlight></codeline>
<codeline lineno="173" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a792d096a6a740bf77b08821907659969" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterator" kindref="compound">CloseableIterator&lt;ColumnarBatch&gt;</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a792d096a6a740bf77b08821907659969" kindref="member">open</ref>(<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterable" kindref="compound">CloseableIterable&lt;CombinedScanTask&gt;</ref><sp/>tasks)<sp/>{</highlight></codeline>
<codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterator" kindref="compound">CloseableIterator&lt;ColumnarBatch&gt;</ref><sp/>itr<sp/>=</highlight></codeline>
<codeline lineno="175"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator" kindref="compound">VectorizedCombinedScanIterator</ref>(</highlight></codeline>
<codeline lineno="176"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>tasks,<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aa643d3209f401be2616bf5697a491ecc" kindref="member">schema</ref>,<sp/></highlight><highlight class="keyword">null</highlight><highlight class="normal">,<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a1ba54a6db76961ea5191ed839e561476" kindref="member">io</ref>,<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a733ca39792f0570dc0f3566699086076" kindref="member">encryption</ref>,<sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">,<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aae93c867f95b29d10de69dd353c0458c" kindref="member">batchSize</ref>,<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1aeed9154507fc1e89cdefed308da74420" kindref="member">reuseContainers</ref>);</highlight></codeline>
<codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1io_1_1CloseableGroup_1a3ffc580c50ca898063555662a3e30d0d" kindref="member">addCloseable</ref>(itr);</highlight></codeline>
<codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>itr;</highlight></codeline>
<codeline lineno="179"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="180"><highlight class="normal"></highlight></codeline>
<codeline lineno="181"><highlight class="normal"><sp/><sp/>@Override</highlight></codeline>
<codeline lineno="182" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a2729e7792e3504e00051af8c946f6bb2" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a2729e7792e3504e00051af8c946f6bb2" kindref="member">close</ref>()<sp/>throws<sp/>IOException<sp/>{</highlight></codeline>
<codeline lineno="183"><highlight class="normal"><sp/><sp/><sp/><sp/>super.close();<sp/></highlight><highlight class="comment">//<sp/>close<sp/>data<sp/>files</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="184"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="185"><highlight class="normal"></highlight></codeline>
<codeline lineno="190" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator" refkind="compound"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator" kindref="compound">VectorizedCombinedScanIterator</ref></highlight></codeline>
<codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">implements</highlight><highlight class="normal"><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterator" kindref="compound">CloseableIterator</ref>&lt;ColumnarBatch&gt;<sp/>{</highlight></codeline>
<codeline lineno="192"><highlight class="normal"></highlight></codeline>
<codeline lineno="193" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1abba540e5b20dde645d5497de4491c385" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/>Iterator&lt;FileScanTask&gt;<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1abba540e5b20dde645d5497de4491c385" kindref="member">fileItr</ref>;</highlight></codeline>
<codeline lineno="194" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a3da0daeb5cbef575e2069170fbbbcbf1" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/>Map&lt;String,<sp/>InputFile&gt;<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a3da0daeb5cbef575e2069170fbbbcbf1" kindref="member">inputFiles</ref>;</highlight></codeline>
<codeline lineno="195" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1Schema" kindref="compound">Schema</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" kindref="member">expectedSchema</ref>;</highlight></codeline>
<codeline lineno="196" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a25367b2c5c06d0aa28b85d0a13ced7ac" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/>String<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a25367b2c5c06d0aa28b85d0a13ced7ac" kindref="member">nameMapping</ref>;</highlight></codeline>
<codeline lineno="197" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a359ccebf5bca9dd801cc36ebf0caaae7" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">boolean</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a359ccebf5bca9dd801cc36ebf0caaae7" kindref="member">caseSensitive</ref>;</highlight></codeline>
<codeline lineno="198" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a194e1c4be951d20f17b50535d0f1ec2d" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a194e1c4be951d20f17b50535d0f1ec2d" kindref="member">batchSize</ref>;</highlight></codeline>
<codeline lineno="199" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1ae593477788734ed9a3417e40c172c62b" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">final</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">boolean</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1ae593477788734ed9a3417e40c172c62b" kindref="member">reuseContainers</ref>;</highlight></codeline>
<codeline lineno="200" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1af96dc47c89b9c8f3a65a685c8543d6dd" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterator" kindref="compound">CloseableIterator&lt;ColumnarBatch&gt;</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1af96dc47c89b9c8f3a65a685c8543d6dd" kindref="member">currentIterator</ref>;</highlight></codeline>
<codeline lineno="201" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a1ccd972ffada7ff1d4240b8706d679c3" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1FileScanTask" kindref="compound">FileScanTask</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a1ccd972ffada7ff1d4240b8706d679c3" kindref="member">currentTask</ref>;</highlight></codeline>
<codeline lineno="202"><highlight class="normal"></highlight></codeline>
<codeline lineno="223"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator" kindref="compound">VectorizedCombinedScanIterator</ref>(</highlight></codeline>
<codeline lineno="224"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterable" kindref="compound">CloseableIterable&lt;CombinedScanTask&gt;</ref><sp/>tasks,</highlight></codeline>
<codeline lineno="225"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1Schema" kindref="compound">Schema</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" kindref="member">expectedSchema</ref>,</highlight></codeline>
<codeline lineno="226"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>String<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a25367b2c5c06d0aa28b85d0a13ced7ac" kindref="member">nameMapping</ref>,</highlight></codeline>
<codeline lineno="227"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1FileIO" kindref="compound">FileIO</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a1ba54a6db76961ea5191ed839e561476" kindref="member">io</ref>,</highlight></codeline>
<codeline lineno="228"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1encryption_1_1EncryptionManager" kindref="compound">EncryptionManager</ref><sp/>encryptionManager,</highlight></codeline>
<codeline lineno="229"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">boolean</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a359ccebf5bca9dd801cc36ebf0caaae7" kindref="member">caseSensitive</ref>,</highlight></codeline>
<codeline lineno="230"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a194e1c4be951d20f17b50535d0f1ec2d" kindref="member">batchSize</ref>,</highlight></codeline>
<codeline lineno="231"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">boolean</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1ae593477788734ed9a3417e40c172c62b" kindref="member">reuseContainers</ref>)<sp/>{</highlight></codeline>
<codeline lineno="232"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>List&lt;FileScanTask&gt;<sp/>fileTasks<sp/>=</highlight></codeline>
<codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>StreamSupport.stream(tasks.spliterator(),<sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">)</highlight></codeline>
<codeline lineno="234"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.map(<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1CombinedScanTask_1a93006459ebde2b2dd782ca7a2368a7af" kindref="member">CombinedScanTask::files</ref>)</highlight></codeline>
<codeline lineno="235"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.flatMap(Collection::stream)</highlight></codeline>
<codeline lineno="236"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.collect(Collectors.toList());</highlight></codeline>
<codeline lineno="237"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>this.fileItr<sp/>=<sp/>fileTasks.iterator();</highlight></codeline>
<codeline lineno="238"><highlight class="normal"></highlight></codeline>
<codeline lineno="239"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(fileTasks.stream().anyMatch(<ref refid="classorg_1_1apache_1_1iceberg_1_1util_1_1TableScanUtil_1ab0d6214d6318d2bd167842b097cb3bac" kindref="member">TableScanUtil::hasDeletes</ref>))<sp/>{</highlight></codeline>
<codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>UnsupportedOperationException(</highlight></codeline>
<codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;Cannot<sp/>read<sp/>files<sp/>that<sp/>require<sp/>applying<sp/>delete<sp/>files&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="243"><highlight class="normal"></highlight></codeline>
<codeline lineno="244"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" kindref="member">expectedSchema</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1Schema_1a503ecd80a74c35c4b05435bb6afc9415" kindref="member">columns</ref>().isEmpty())<sp/>{</highlight></codeline>
<codeline lineno="245"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>UnsupportedOperationException(</highlight></codeline>
<codeline lineno="246"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;Cannot<sp/>read<sp/>without<sp/>at<sp/>least<sp/>one<sp/>projected<sp/>column&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="247"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="248"><highlight class="normal"></highlight></codeline>
<codeline lineno="249"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Set&lt;TypeID&gt;<sp/>unsupportedTypes<sp/>=</highlight></codeline>
<codeline lineno="250"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Sets.difference(</highlight></codeline>
<codeline lineno="251"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" kindref="member">expectedSchema</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1Schema_1a503ecd80a74c35c4b05435bb6afc9415" kindref="member">columns</ref>().stream()</highlight></codeline>
<codeline lineno="252"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.map(c<sp/>-&gt;<sp/>c.type().typeId())</highlight></codeline>
<codeline lineno="253"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.collect(Collectors.toSet()),</highlight></codeline>
<codeline lineno="254"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a01d0dcb69dca62dececf71c08198537e" kindref="member">SUPPORTED_TYPES</ref>);</highlight></codeline>
<codeline lineno="255"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!unsupportedTypes.isEmpty())<sp/>{</highlight></codeline>
<codeline lineno="256"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>UnsupportedOperationException(</highlight></codeline>
<codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;Cannot<sp/>read<sp/>unsupported<sp/>column<sp/>types:<sp/>&quot;</highlight><highlight class="normal"><sp/>+<sp/>unsupportedTypes);</highlight></codeline>
<codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="259"><highlight class="normal"></highlight></codeline>
<codeline lineno="260"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Map&lt;String,<sp/>ByteBuffer&gt;<sp/>keyMetadata<sp/>=<sp/>Maps.newHashMap();</highlight></codeline>
<codeline lineno="261"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>fileTasks.stream()</highlight></codeline>
<codeline lineno="262"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.map(<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1ContentScanTask_1aa15f447b4d93d067dad725838d22411c" kindref="member">FileScanTask::file</ref>)</highlight></codeline>
<codeline lineno="263"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.forEach(file<sp/>-&gt;<sp/>keyMetadata.put(file.path().toString(),<sp/>file.keyMetadata()));</highlight></codeline>
<codeline lineno="264"><highlight class="normal"></highlight></codeline>
<codeline lineno="265"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Stream&lt;EncryptedInputFile&gt;<sp/>encrypted<sp/>=</highlight></codeline>
<codeline lineno="266"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>keyMetadata.entrySet().stream()</highlight></codeline>
<codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.map(</highlight></codeline>
<codeline lineno="268"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>entry<sp/>-&gt;</highlight></codeline>
<codeline lineno="269"><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/><ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1EncryptedFiles" kindref="compound">EncryptedFiles</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1encryption_1_1EncryptedFiles_1a7b589bfd015436de5cffee826dbe4ef2" kindref="member">encryptedInput</ref>(</highlight></codeline>
<codeline lineno="270"><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/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a1ba54a6db76961ea5191ed839e561476" kindref="member">io</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1FileIO_1a54bd6931df3543c33aa9490c26e4e181" kindref="member">newInputFile</ref>(entry.getKey()),<sp/>entry.getValue()));</highlight></codeline>
<codeline lineno="271"><highlight class="normal"></highlight></codeline>
<codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>decrypt<sp/>with<sp/>the<sp/>batch<sp/>call<sp/>to<sp/>avoid<sp/>multiple<sp/>RPCs<sp/>to<sp/>a<sp/>key<sp/>server,<sp/>if<sp/>possible</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="273"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>@SuppressWarnings(</highlight><highlight class="stringliteral">&quot;StreamToIterable&quot;</highlight><highlight class="normal">)</highlight></codeline>
<codeline lineno="274"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Iterable&lt;InputFile&gt;<sp/>decryptedFiles<sp/>=<sp/>encryptionManager.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1encryption_1_1EncryptionManager_1ad86b68dbe2e56c67091441fe0558ac24" kindref="member">decrypt</ref>(encrypted::iterator);</highlight></codeline>
<codeline lineno="275"><highlight class="normal"></highlight></codeline>
<codeline lineno="276"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Map&lt;String,<sp/>InputFile&gt;<sp/>files<sp/>=<sp/>Maps.newHashMapWithExpectedSize(fileTasks.size());</highlight></codeline>
<codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>decryptedFiles.forEach(decrypted<sp/>-&gt;<sp/>files.putIfAbsent(decrypted.location(),<sp/>decrypted));</highlight></codeline>
<codeline lineno="278"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>this.inputFiles<sp/>=<sp/>ImmutableMap.copyOf(files);</highlight></codeline>
<codeline lineno="279"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>this.currentIterator<sp/>=<sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterator" kindref="compound">CloseableIterator</ref>.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterator_1a09b4f2bc39c2a2a894ad7b06257ffe06" kindref="member">empty</ref>();</highlight></codeline>
<codeline lineno="280"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>this.expectedSchema<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" kindref="member">expectedSchema</ref>;</highlight></codeline>
<codeline lineno="281"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>this.nameMapping<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a25367b2c5c06d0aa28b85d0a13ced7ac" kindref="member">nameMapping</ref>;</highlight></codeline>
<codeline lineno="282"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>this.caseSensitive<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a359ccebf5bca9dd801cc36ebf0caaae7" kindref="member">caseSensitive</ref>;</highlight></codeline>
<codeline lineno="283"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>this.batchSize<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a194e1c4be951d20f17b50535d0f1ec2d" kindref="member">batchSize</ref>;</highlight></codeline>
<codeline lineno="284"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>this.reuseContainers<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1ae593477788734ed9a3417e40c172c62b" kindref="member">reuseContainers</ref>;</highlight></codeline>
<codeline lineno="285"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="286"><highlight class="normal"></highlight></codeline>
<codeline lineno="287"><highlight class="normal"><sp/><sp/><sp/><sp/>@Override</highlight></codeline>
<codeline lineno="288" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a1c920062b40fce01cc68543f523c2245" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">boolean</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a1c920062b40fce01cc68543f523c2245" kindref="member">hasNext</ref>()<sp/>{</highlight></codeline>
<codeline lineno="289"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">try</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="290"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">true</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="291"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1af96dc47c89b9c8f3a65a685c8543d6dd" kindref="member">currentIterator</ref>.hasNext())<sp/>{</highlight></codeline>
<codeline lineno="292"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">true</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="293"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1abba540e5b20dde645d5497de4491c385" kindref="member">fileItr</ref>.hasNext())<sp/>{</highlight></codeline>
<codeline lineno="294"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>this.currentIterator.close();</highlight></codeline>
<codeline lineno="295"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>this.currentTask<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1abba540e5b20dde645d5497de4491c385" kindref="member">fileItr</ref>.next();</highlight></codeline>
<codeline lineno="296"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>this.currentIterator<sp/>=<sp/>open(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a1ccd972ffada7ff1d4240b8706d679c3" kindref="member">currentTask</ref>);</highlight></codeline>
<codeline lineno="297"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="298"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>this.currentIterator.close();</highlight></codeline>
<codeline lineno="299"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="300"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="301"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="302"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">catch</highlight><highlight class="normal"><sp/>(IOException<sp/>|<sp/>RuntimeException<sp/>e)<sp/>{</highlight></codeline>
<codeline lineno="303"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a1ccd972ffada7ff1d4240b8706d679c3" kindref="member">currentTask</ref><sp/>!=<sp/></highlight><highlight class="keyword">null</highlight><highlight class="normal"><sp/>&amp;&amp;<sp/>!<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a1ccd972ffada7ff1d4240b8706d679c3" kindref="member">currentTask</ref>.isDataTask())<sp/>{</highlight></codeline>
<codeline lineno="304"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1a11bb4ffafbc5c9356284e80a8d8744a2" kindref="member">LOG</ref>.error(</highlight><highlight class="stringliteral">&quot;Error<sp/>reading<sp/>file:<sp/>{}&quot;</highlight><highlight class="normal">,<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a27a7a65347737713a0013b3beea1c800" kindref="member">getInputFile</ref>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a1ccd972ffada7ff1d4240b8706d679c3" kindref="member">currentTask</ref>).location(),<sp/>e);</highlight></codeline>
<codeline lineno="305"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="306"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1util_1_1ExceptionUtil" kindref="compound">ExceptionUtil</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1util_1_1ExceptionUtil_1a48ebf1997a55101b483e9c77e5514705" kindref="member">castAndThrow</ref>(e,<sp/>RuntimeException.class);</highlight></codeline>
<codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">false</highlight><highlight class="normal">;</highlight></codeline>
<codeline lineno="308"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="309"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="310"><highlight class="normal"></highlight></codeline>
<codeline lineno="311"><highlight class="normal"><sp/><sp/><sp/><sp/>@Override</highlight></codeline>
<codeline lineno="312" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a10f3da16386e369024b19b1e275907ce" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ColumnarBatch" kindref="compound">ColumnarBatch</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a10f3da16386e369024b19b1e275907ce" kindref="member">next</ref>()<sp/>{</highlight></codeline>
<codeline lineno="313"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a1c920062b40fce01cc68543f523c2245" kindref="member">hasNext</ref>())<sp/>{</highlight></codeline>
<codeline lineno="314"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1af96dc47c89b9c8f3a65a685c8543d6dd" kindref="member">currentIterator</ref>.next();</highlight></codeline>
<codeline lineno="315"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="316"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>NoSuchElementException();</highlight></codeline>
<codeline lineno="317"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="318"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="319"><highlight class="normal"></highlight></codeline>
<codeline lineno="320"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterator" kindref="compound">CloseableIterator&lt;ColumnarBatch&gt;</ref><sp/>open(<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1FileScanTask" kindref="compound">FileScanTask</ref><sp/>task)<sp/>{</highlight></codeline>
<codeline lineno="321"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterable" kindref="compound">CloseableIterable&lt;ColumnarBatch&gt;</ref><sp/>iter;</highlight></codeline>
<codeline lineno="322"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1InputFile" kindref="compound">InputFile</ref><sp/>location<sp/>=<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a27a7a65347737713a0013b3beea1c800" kindref="member">getInputFile</ref>(task);</highlight></codeline>
<codeline lineno="323"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Preconditions.checkNotNull(location,<sp/></highlight><highlight class="stringliteral">&quot;Could<sp/>not<sp/>find<sp/>InputFile<sp/>associated<sp/>with<sp/>FileScanTask&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="324"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(task.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1ContentScanTask_1aa15f447b4d93d067dad725838d22411c" kindref="member">file</ref>().format()<sp/>==<sp/><ref refid="enumorg_1_1apache_1_1iceberg_1_1FileFormat" kindref="compound">FileFormat</ref>.<ref refid="enumorg_1_1apache_1_1iceberg_1_1FileFormat_1a6d83d35a1884fdc671bbc3166f688788" kindref="member">PARQUET</ref>)<sp/>{</highlight></codeline>
<codeline lineno="325"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1Parquet" kindref="compound">Parquet</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1Parquet_1_1ReadBuilder" kindref="compound">ReadBuilder</ref><sp/>builder<sp/>=</highlight></codeline>
<codeline lineno="326"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1Parquet" kindref="compound">Parquet</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1Parquet_1ac0214f32d0db284f0694a1a037c3ed11" kindref="member">read</ref>(location)</highlight></codeline>
<codeline lineno="327"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.<ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1Parquet_1_1ReadBuilder_1ac0e8c1dc351be9622a0692d0fb82fef4" kindref="member">project</ref>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" kindref="member">expectedSchema</ref>)</highlight></codeline>
<codeline lineno="328"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.<ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1Parquet_1_1ReadBuilder_1aff07e14450592989550150396bdf5734" kindref="member">split</ref>(task.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1ContentScanTask_1a7e54ed62ec2bba438912f04b17e62e6b" kindref="member">start</ref>(),<sp/>task.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1ContentScanTask_1a6daf95d6bf158b0fc709102af76b0fb2" kindref="member">length</ref>())</highlight></codeline>
<codeline lineno="329"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.<ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1Parquet_1_1ReadBuilder_1a84c29e1dc09160bff4eb8aa09338f0b9" kindref="member">createBatchedReaderFunc</ref>(</highlight></codeline>
<codeline lineno="330"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fileSchema<sp/>-&gt;</highlight></codeline>
<codeline lineno="331"><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/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a6550c462e817027cea101c4ca342ea3d" kindref="member">buildReader</ref>(</highlight></codeline>
<codeline lineno="332"><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/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" kindref="member">expectedSchema</ref>,</highlight></codeline>
<codeline lineno="333"><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/><sp/><sp/>fileSchema,<sp/></highlight><highlight class="comment">/*<sp/>setArrowValidityVector<sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="334"><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/><sp/><sp/>NullCheckingForGet.NULL_CHECKING_ENABLED))</highlight></codeline>
<codeline lineno="335"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.<ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1Parquet_1_1ReadBuilder_1a6fc509ca2bcfb7c8a842c5b2419e99fd" kindref="member">recordsPerBatch</ref>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a194e1c4be951d20f17b50535d0f1ec2d" kindref="member">batchSize</ref>)</highlight></codeline>
<codeline lineno="336"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.<ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1Parquet_1_1ReadBuilder_1a574401000044ceb8b5eab2f8cf562ecd" kindref="member">filter</ref>(task.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1ContentScanTask_1a4ae34a267f46388574e381ff3be55a1a" kindref="member">residual</ref>())</highlight></codeline>
<codeline lineno="337"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>.caseSensitive(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a359ccebf5bca9dd801cc36ebf0caaae7" kindref="member">caseSensitive</ref>);</highlight></codeline>
<codeline lineno="338"><highlight class="normal"></highlight></codeline>
<codeline lineno="339"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1ae593477788734ed9a3417e40c172c62b" kindref="member">reuseContainers</ref>)<sp/>{</highlight></codeline>
<codeline lineno="340"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>builder.reuseContainers();</highlight></codeline>
<codeline lineno="341"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="342"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a25367b2c5c06d0aa28b85d0a13ced7ac" kindref="member">nameMapping</ref><sp/>!=<sp/></highlight><highlight class="keyword">null</highlight><highlight class="normal">)<sp/>{</highlight></codeline>
<codeline lineno="343"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>builder.withNameMapping(<ref refid="classorg_1_1apache_1_1iceberg_1_1mapping_1_1NameMappingParser" kindref="compound">NameMappingParser</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1mapping_1_1NameMappingParser_1afeea97b0984ec884ef122edf92f018c2" kindref="member">fromJson</ref>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a25367b2c5c06d0aa28b85d0a13ced7ac" kindref="member">nameMapping</ref>));</highlight></codeline>
<codeline lineno="344"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="345"><highlight class="normal"></highlight></codeline>
<codeline lineno="346"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>iter<sp/>=<sp/>builder.build();</highlight></codeline>
<codeline lineno="347"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="348"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/>UnsupportedOperationException(</highlight></codeline>
<codeline lineno="349"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="stringliteral">&quot;Format:<sp/>&quot;</highlight><highlight class="normal"><sp/>+<sp/>task.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1ContentScanTask_1aa15f447b4d93d067dad725838d22411c" kindref="member">file</ref>().format()<sp/>+<sp/></highlight><highlight class="stringliteral">&quot;<sp/>not<sp/>supported<sp/>for<sp/>batched<sp/>reads&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="350"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="351"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>iter.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1CloseableIterable_1aadef76c0b5c8cff41a46429f09617e34" kindref="member">iterator</ref>();</highlight></codeline>
<codeline lineno="352"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="353"><highlight class="normal"></highlight></codeline>
<codeline lineno="354"><highlight class="normal"><sp/><sp/><sp/><sp/>@Override</highlight></codeline>
<codeline lineno="355" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1ad664f366bc4c6136863ec1aa2e24a061" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1ad664f366bc4c6136863ec1aa2e24a061" kindref="member">close</ref>()<sp/>throws<sp/>IOException<sp/>{</highlight></codeline>
<codeline lineno="356"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>close<sp/>the<sp/>current<sp/>iterator</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="357"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>this.currentIterator.close();</highlight></codeline>
<codeline lineno="358"><highlight class="normal"></highlight></codeline>
<codeline lineno="359"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>exhaust<sp/>the<sp/>task<sp/>iterator</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="360"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(<ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1abba540e5b20dde645d5497de4491c385" kindref="member">fileItr</ref>.hasNext())<sp/>{</highlight></codeline>
<codeline lineno="361"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1abba540e5b20dde645d5497de4491c385" kindref="member">fileItr</ref>.next();</highlight></codeline>
<codeline lineno="362"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="363"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="364"><highlight class="normal"></highlight></codeline>
<codeline lineno="365" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a27a7a65347737713a0013b3beea1c800" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/><ref refid="interfaceorg_1_1apache_1_1iceberg_1_1io_1_1InputFile" kindref="compound">InputFile</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a27a7a65347737713a0013b3beea1c800" kindref="member">getInputFile</ref>(<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1FileScanTask" kindref="compound">FileScanTask</ref><sp/>task)<sp/>{</highlight></codeline>
<codeline lineno="366"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>Preconditions.checkArgument(!task.isDataTask(),<sp/></highlight><highlight class="stringliteral">&quot;Invalid<sp/>task<sp/>type&quot;</highlight><highlight class="normal">);</highlight></codeline>
<codeline lineno="367"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a3da0daeb5cbef575e2069170fbbbcbf1" kindref="member">inputFiles</ref>.get(task.<ref refid="interfaceorg_1_1apache_1_1iceberg_1_1ContentScanTask_1aa15f447b4d93d067dad725838d22411c" kindref="member">file</ref>().path().toString());</highlight></codeline>
<codeline lineno="368"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="369"><highlight class="normal"></highlight></codeline>
<codeline lineno="377" refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a6550c462e817027cea101c4ca342ea3d" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/>ArrowBatchReader<sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1a6550c462e817027cea101c4ca342ea3d" kindref="member">buildReader</ref>(</highlight></codeline>
<codeline lineno="378"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1Schema" kindref="compound">Schema</ref><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" kindref="member">expectedSchema</ref>,<sp/>MessageType<sp/>fileSchema,<sp/></highlight><highlight class="keywordtype">boolean</highlight><highlight class="normal"><sp/>setArrowValidityVector)<sp/>{</highlight></codeline>
<codeline lineno="379"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(ArrowBatchReader)</highlight></codeline>
<codeline lineno="380"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1TypeWithSchemaVisitor" kindref="compound">TypeWithSchemaVisitor</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1parquet_1_1TypeWithSchemaVisitor_1a17c59078f81e2d4a94e123452720f43f" kindref="member">visit</ref>(</highlight></codeline>
<codeline lineno="381"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" kindref="member">expectedSchema</ref>.<ref refid="classorg_1_1apache_1_1iceberg_1_1Schema_1a6f726c07b15a68fc5cb6e1b1e185876c" kindref="member">asStruct</ref>(),</highlight></codeline>
<codeline lineno="382"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fileSchema,</highlight></codeline>
<codeline lineno="383"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">new</highlight><highlight class="normal"><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1VectorizedReaderBuilder" kindref="compound">VectorizedReaderBuilder</ref>(</highlight></codeline>
<codeline lineno="384"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="classorg_1_1apache_1_1iceberg_1_1arrow_1_1vectorized_1_1ArrowReader_1_1VectorizedCombinedScanIterator_1aeb8791b1cac450d7be2d3b6876d3ed60" kindref="member">expectedSchema</ref>,</highlight></codeline>
<codeline lineno="385"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fileSchema,</highlight></codeline>
<codeline lineno="386"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>setArrowValidityVector,</highlight></codeline>
<codeline lineno="387"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ImmutableMap.of(),</highlight></codeline>
<codeline lineno="388"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ArrowBatchReader::new));</highlight></codeline>
<codeline lineno="389"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="390"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="391"><highlight class="normal">}</highlight></codeline>
</programlisting>
<location file="arrow/src/main/java/org/apache/iceberg/arrow/vectorized/ArrowReader.java"/>
</compounddef>
</doxygen>