AddedRowsScanTask.java org::apache::iceberg::AddedRowsScanTask org::apache::iceberg /* *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; importjava.util.List; publicinterfaceAddedRowsScanTaskextendsChangelogScanTask,ContentScanTask<DataFile>{ List<DeleteFile>deletes(); @Override defaultChangelogOperationoperation(){ returnChangelogOperation.INSERT; } @Override defaultlongsizeBytes(){ returnlength()+deletes().stream().mapToLong(ContentFile::fileSizeInBytes).sum(); } @Override defaultintfilesCount(){ return1+deletes().size(); } }