AllEntriesTable.java org::apache::iceberg::AllEntriesTable org::apache::iceberg::AllEntriesTable::Scan 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; importorg.apache.iceberg.io.CloseableIterable; publicclassAllEntriesTableextendsBaseEntriesTable{ AllEntriesTable(Tabletable){ this(table,table.name()+".all_entries"); } AllEntriesTable(Tabletable,Stringname){ super(table,name); } @Override publicTableScannewScan(){ returnnewScan(table(),schema()); } @Override MetadataTableTypemetadataTableType(){ returnMetadataTableType.ALL_ENTRIES; } privatestaticclassScanextendsBaseAllMetadataTableScan{ Scan(Tabletable,Schemaschema){ super(table,schema,MetadataTableType.ALL_ENTRIES); } privateScan(Tabletable,Schemaschema,TableScanContextcontext){ super(table,schema,MetadataTableType.ALL_ENTRIES,context); } @Override protectedTableScannewRefinedScan(Tabletable,Schemaschema,TableScanContextcontext){ returnnewScan(table,schema,context); } @Override protectedCloseableIterable<FileScanTask>doPlanFiles(){ CloseableIterable<ManifestFile>manifests= reachableManifests(snapshot->snapshot.allManifests(table().io())); returnBaseEntriesTable.planFiles(table(),manifests,tableSchema(),schema(),context()); } } }