File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
sdks/java/io/iceberg/src/main/java/org/apache/beam/sdk/io/iceberg Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 3131import org .apache .iceberg .Table ;
3232import org .apache .iceberg .catalog .Catalog ;
3333import org .apache .iceberg .catalog .TableIdentifier ;
34- import org .jetbrains .annotations .NotNull ;
3534
3635/** Utility to fetch and cache Iceberg {@link Table}s. */
3736class TableCache {
@@ -43,14 +42,13 @@ class TableCache {
4342 .build (
4443 new CacheLoader <String , Table >() {
4544 @ Override
46- public @ NotNull Table load (@ NotNull String identifier ) {
45+ public Table load (String identifier ) {
4746 return checkStateNotNull (CATALOG_CACHE .get (identifier ))
4847 .loadTable (TableIdentifier .parse (identifier ));
4948 }
5049
5150 @ Override
52- public @ NotNull ListenableFuture <Table > reload (
53- @ NotNull String unusedIdentifier , @ NotNull Table table ) {
51+ public ListenableFuture <Table > reload (String unusedIdentifier , Table table ) {
5452 table .refresh ();
5553 return Futures .immediateFuture (table );
5654 }
Original file line number Diff line number Diff line change 1919
2020import static org .apache .beam .sdk .transforms .Watch .Growth .PollResult ;
2121
22- import com .google .common .collect .ImmutableList ;
2322import java .util .List ;
2423import java .util .stream .Collectors ;
2524import org .apache .beam .sdk .coders .ListCoder ;
4039import org .apache .beam .sdk .values .TimestampedValue ;
4140import org .apache .beam .vendor .guava .v32_1_2_jre .com .google .common .base .MoreObjects ;
4241import org .apache .beam .vendor .guava .v32_1_2_jre .com .google .common .base .Objects ;
42+ import org .apache .beam .vendor .guava .v32_1_2_jre .com .google .common .collect .ImmutableList ;
4343import org .apache .beam .vendor .guava .v32_1_2_jre .com .google .common .collect .Iterables ;
4444import org .apache .iceberg .Snapshot ;
4545import org .apache .iceberg .Table ;
You can’t perform that action at this time.
0 commit comments