java.util.List to java.util.Optional
No. of Instances - 151
No. of Commits - 28
No. of Projects - {'sonarqube', 'javaparser', 'keywhiz', 'graylog2-server', 'junit5', 'flink', 'presto', 'james-project', 'aima-java'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Jdk
Mapping:
- Add or Remove Method invocation
- Optional.ofNullable(userMailboxesMetadata) to preloadedUserDefaultQuotas
- preloadedUserDefaultQuotas to preloadedUserDefaultQuotas
- SearchUtils.failure() to SearchUtils.toActions(node)
- SearchUtils.getSequenceOfActions(node) to Optional.empty()
- anonymousClassBody to anonymousClassBody.get()
- types to assertNotNull(typeArguments)
- fieldNames.get(i) to fieldNames.map((names) -> names.get(index))
- ImmutableList.copyOf(partitionKeys) to partitionKeys.map(ImmutableList::copyOf)
- fragment.getPartitionBy().stream() to t
- collect to map
- ImmutableList.copyOf(checkNotNull(partitionBy,"partitionBy is null")) to checkNotNull(partitionBy,"partitionBy is null").map(ImmutableList::copyOf)
- ImmutableList.copyOf(partitionKeys) to partitionKeys.map(ImmutableList::copyOf)
- CacheBuilder.newBuilder().expireAfterWrite(expiresAfterWriteMillis,MILLISECONDS).refreshAfterWrite(refreshMills,MILLISECONDS).build(asyncReloading(new CacheLoader<String,Optional<List<String>>>(){ @Override public List<String> load( String databaseName) throws Exception { return loadAllTables(databaseName); } } ,executor)) to CacheBuilder.newBuilder().expireAfterWrite(expiresAfterWriteMillis,MILLISECONDS).refreshAfterWrite(refreshMills,MILLISECONDS).build(asyncReloading(new CacheLoader<String,Optional<List<String>>>(){ @Override public Optional<List<String>> load( String databaseName) throws Exception { return loadAllTables(databaseName); } } ,executor))
- CacheBuilder.newBuilder().expireAfterWrite(expiresAfterWriteMillis,MILLISECONDS).refreshAfterWrite(refreshMills,MILLISECONDS).build(asyncReloading(new CacheLoader<String,Optional<List<String>>>(){ @Override public List<String> load( String databaseName) throws Exception { return loadAllViews(databaseName); } } ,executor)) to CacheBuilder.newBuilder().expireAfterWrite(expiresAfterWriteMillis,MILLISECONDS).refreshAfterWrite(refreshMills,MILLISECONDS).build(asyncReloading(new CacheLoader<String,Optional<List<String>>>(){ @Override public Optional<List<String>> load( String databaseName) throws Exception { return loadAllViews(databaseName); } } ,executor))
- run to run
- CacheBuilder.newBuilder().expireAfterWrite(expiresAfterWriteMillis,MILLISECONDS).refreshAfterWrite(refreshMills,MILLISECONDS).build(asyncReloading(new CacheLoader<HiveTableName,Optional<List<String>>>(){ @Override public List<String> load( HiveTableName hiveTableName) throws Exception { return loadPartitionNames(hiveTableName); } } ,executor)) to CacheBuilder.newBuilder().expireAfterWrite(expiresAfterWriteMillis,MILLISECONDS).refreshAfterWrite(refreshMills,MILLISECONDS).build(asyncReloading(new CacheLoader<HiveTableName,Optional<List<String>>>(){ @Override public Optional<List<String>> load( HiveTableName hiveTableName) throws Exception { return loadPartitionNames(hiveTableName); } } ,executor))
- stats.getAllViews().wrap(() -> { try (HiveMetastoreClient client=clientProvider.createMetastoreClient()){ String filter=HIVE_FILTER_FIELD_PARAMS + PRESTO_VIEW_FLAG + " = \"true\""; return client.get_table_names_by_filter(databaseName,filter,(short)-1); } } ) to stats.getAllViews().wrap(() -> { try (HiveMetastoreClient client=clientProvider.createMetastoreClient()){ String filter=HIVE_FILTER_FIELD_PARAMS + PRESTO_VIEW_FLAG + " = \"true\""; return Optional.of(client.get_table_names_by_filter(databaseName,filter,(short)-1)); } } )
- stats.getGetPartitionNamesPs().wrap(() -> { try (HiveMetastoreClient client=clientProvider.createMetastoreClient()){ return client.get_partition_names_ps(partitionFilter.getHiveTableName().getDatabaseName(),partitionFilter.getHiveTableName().getTableName(),partitionFilter.getParts(),(short)-1); } } ) to stats.getGetPartitionNamesPs().wrap(() -> { try (HiveMetastoreClient client=clientProvider.createMetastoreClient()){ return Optional.of(client.get_partition_names_ps(partitionFilter.getHiveTableName().getDatabaseName(),partitionFilter.getHiveTableName().getTableName(),partitionFilter.getParts(),(short)-1)); } } )
- stats.getGetPartitionNames().wrap(() -> { try (HiveMetastoreClient client=clientProvider.createMetastoreClient()){ return client.get_partition_names(hiveTableName.getDatabaseName(),hiveTableName.getTableName(),(short)0); } } ) to stats.getGetPartitionNames().wrap(() -> { try (HiveMetastoreClient client=clientProvider.createMetastoreClient()){ return Optional.of(client.get_partition_names(hiveTableName.getDatabaseName(),hiveTableName.getTableName(),(short)0)); } } )
- CacheBuilder.newBuilder().expireAfterWrite(expiresAfterWriteMillis,MILLISECONDS).refreshAfterWrite(refreshMills,MILLISECONDS).build(asyncReloading(new CacheLoader<PartitionFilter,Optional<List<String>>>(){ @Override public List<String> load( PartitionFilter partitionFilter) throws Exception { return loadPartitionNamesByParts(partitionFilter); } } ,executor)) to CacheBuilder.newBuilder().expireAfterWrite(expiresAfterWriteMillis,MILLISECONDS).refreshAfterWrite(refreshMills,MILLISECONDS).build(asyncReloading(new CacheLoader<PartitionFilter,Optional<List<String>>>(){ @Override public Optional<List<String>> load( PartitionFilter partitionFilter) throws Exception { return loadPartitionNamesByParts(partitionFilter); } } ,executor))
- orderBy to orderBy.get().getSortItems()
- ImmutableList.copyOf(resourceGroupChain) to resourceGroupChain.map(ImmutableList::copyOf)
- userPatterns to principalUserMatchRules.get()
- userPatterns.map(ImmutableList::copyOf) to principalUserMatchRules
- selectByOrganizationUuid to selectByName
- periods to period.get()
- Rename Variable
- typeArgs to typeArguments
- types to typeArguments
- testDescriptors to engineDescriptor
- descriptors to proctimeAttribute
- rightSymbols to rightHashComputation
- rightSymbols to rightHashComputation
- leftSymbols to leftHashComputation
- leftSymbols to leftHashComputation
- probeSymbols to probeHashComputation
- probeSymbols to probeHashComputation
- ordering to orderBy
- ordering to orderBy
- orderBy to orderingScheme
- orderBy to orderingScheme
- userPatterns to principalUserMatchRules
- userPatterns to principalUserMatchRules
- userPatterns to principalUserMatchRules
- getUserPatterns to getPrincipalUserMatchRules
- userPatterns to principalUserMatchRules
- userPatterns to principalUserMatchRules
- listRoles to allRoles
- groups to groupOpt
- periods to period
- periods to period
- Cascading Type Change (Similar)
- List<TestDescriptor> to Optional<EngineDescriptor>
- List<RowtimeAttributeDescriptor> to Optional<String>
- List<Symbol> to Optional<HashComputation>
- List<Symbol> to Optional<HashComputation>
- List<Symbol> to Optional<HashComputation>
- List<GroupDto> to Optional<GroupDto>
- Rename Method invocation
- getAllTestDescriptorsForTestEngine to getEngineDescriptorFor
- deriveRowtimeAttributes to deriveProctimeAttribute
- addAllPeriods to addPeriods
- Cascading Type Change (Different)
- CacheLoader<String,List<String>> to CacheLoader<String,Optional<List<String>>>
- CacheLoader<String,List<String>> to CacheLoader<String,Optional<List<String>>>
- CacheLoader<HiveTableName,List<String>> to CacheLoader<HiveTableName,Optional<List<String>>>
- CacheLoader<PartitionFilter,List<String>> to CacheLoader<PartitionFilter,Optional<List<String>>>
- HashSymbolPreference to HashComputationSet
- HashSymbolPreference to HashComputationSet
- HashSymbolPreference to HashComputationSet
- Other
- tables.build() to tables.build()
- tables.build() to tables.build()
- Lists.transform(clauses,JoinNode.EquiJoinClause::getRight) to Lists.transform(clauses,JoinNode.EquiJoinClause::getRight)
- Lists.transform(clauses,JoinNode.EquiJoinClause::getLeft) to Lists.transform(clauses,JoinNode.EquiJoinClause::getLeft)
- Lists.transform(clauses,IndexJoinNode.EquiJoinClause::getProbe) to Lists.transform(clauses,IndexJoinNode.EquiJoinClause::getProbe)
- sourceDirsOrFiles to sourceDirsOrFiles
- testDirsOrFiles to testDirsOrFiles
- Update argument list (Method invocation)
- get to get
- get to get
- get to get
- get to get
- planAndEnforce to planAndEnforce
- planAndEnforce to planAndEnforce
- planAndEnforce to planAndEnforce