Toggle navigation
Home
java.util.Optional to java.util.Set
No. of Instances - 9
No. of Commits - 5
No. of Projects - {'junit5', 'presto'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
Other
columnNames.stream().filter(columnStatisticsMap::containsKey).map(columnStatisticsMap::get).collect(toImmutableSet())
to
columnNames.stream().filter(columnStatisticsMap::containsKey).map(columnStatisticsMap::get).collect(toImmutableSet())
Add or Remove Method invocation
stats.getGetTableColumnStatistics().wrap(() -> { try (HiveMetastoreClient client=clientProvider.createMetastoreClient()){ return Optional.of(ImmutableSet.copyOf(client.getTableColumnStatistics(databaseName,tableName,ImmutableList.copyOf(columnNames)))); } } )
to
stats.getGetTableColumnStatistics().wrap(() -> { try (HiveMetastoreClient client=clientProvider.createMetastoreClient()){ return ImmutableSet.copyOf(client.getTableColumnStatistics(databaseName,tableName,ImmutableList.copyOf(columnNames))); } } )