ADLSInputFile.java org::apache::iceberg::azure::adlsv2::ADLSInputFile org::apache::iceberg::azure::adlsv2 /* *LicensedtotheApacheSoftwareFoundation(ASF)underone *ormorecontributorlicenseagreements.SeetheNOTICEfile *distributedwiththisworkforadditionalinformation *regardingcopyrightownership.TheASFlicensesthisfile *toyouundertheApacheLicense,Version2.0(the *"License");youmaynotusethisfileexceptincompliance *withtheLicense.YoumayobtainacopyoftheLicenseat * *http://www.apache.org/licenses/LICENSE-2.0 * *Unlessrequiredbyapplicablelaworagreedtoinwriting, *softwaredistributedundertheLicenseisdistributedonan *"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANY *KIND,eitherexpressorimplied.SeetheLicenseforthe *specificlanguagegoverningpermissionsandlimitations *undertheLicense. */ packageorg.apache.iceberg.azure.adlsv2; importcom.azure.storage.file.datalake.DataLakeFileClient; importorg.apache.iceberg.azure.AzureProperties; importorg.apache.iceberg.io.InputFile; importorg.apache.iceberg.io.SeekableInputStream; importorg.apache.iceberg.metrics.MetricsContext; classADLSInputFileextendsBaseADLSFileimplementsInputFile{ privateLongfileSize; ADLSInputFile( Stringlocation, DataLakeFileClientfileClient, AzurePropertiesazureProperties, MetricsContextmetrics){ this(location,null,fileClient,azureProperties,metrics); } ADLSInputFile( Stringlocation, LongfileSize, DataLakeFileClientfileClient, AzurePropertiesazureProperties, MetricsContextmetrics){ super(location,fileClient,azureProperties,metrics); this.fileSize=fileSize!=null&&fileSize>0?fileSize:null; } @Override publiclonggetLength(){ if(fileSize==null){ this.fileSize=fileClient().getProperties().getFileSize(); } returnfileSize; } @Override publicSeekableInputStreamnewStream(){ returnnewADLSInputStream(fileClient(),fileSize,azureProperties(),metrics()); } }