Toggle navigation
Home
org.apache.hadoop.hive.metastore.api.Table to java.util.Optional<org.apache.hadoop.hive.metastore.api.Table>
No. of Instances - 11
No. of Commits - 1
No. of Projects - {'presto'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: External -> Jdk
Mapping:
Add or Remove Method invocation
decodeViewData(table.getViewOriginalText())
to
decodeViewData(table.get().getViewOriginalText())
table.getSd()
to
table.get().getSd()
table
to
table.get()
transform(handles,columnMetadataGetter(table,typeManager))
to
transform(handles,columnMetadataGetter(table.get(),typeManager))
table.getOwner()
to
table.get().getOwner()
hiveColumnHandles(typeManager,connectorId,table,true)
to
hiveColumnHandles(typeManager,connectorId,table.get(),true)
CacheBuilder.newBuilder().expireAfterWrite(expiresAfterWriteMillis,MILLISECONDS).refreshAfterWrite(refreshMills,MILLISECONDS).build(asyncReloading(new CacheLoader<HiveTableName,Optional<Table>>(){ @Override public Table load( HiveTableName hiveTableName) throws Exception { return loadTable(hiveTableName); } } ,executor))
to
CacheBuilder.newBuilder().expireAfterWrite(expiresAfterWriteMillis,MILLISECONDS).refreshAfterWrite(refreshMills,MILLISECONDS).build(asyncReloading(new CacheLoader<HiveTableName,Optional<Table>>(){ @Override public Optional<Table> load( HiveTableName hiveTableName) throws Exception { return loadTable(hiveTableName); } } ,executor))
table.getSd()
to
table.get().getSd()
table
to
table.get()
hiveColumnHandles(typeManager,connectorId,table,false)
to
hiveColumnHandles(typeManager,connectorId,table.get(),false)
stats.getGetTable().wrap(() -> { try (HiveMetastoreClient client=clientProvider.createMetastoreClient()){ Table table=client.get_table(hiveTableName.getDatabaseName(),hiveTableName.getTableName()); if (table.getTableType().equals(TableType.VIRTUAL_VIEW.name()) && (!isPrestoView(table))) { throw new HiveViewNotSupportedException(new SchemaTableName(hiveTableName.getDatabaseName(),hiveTableName.getTableName())); } return table; } } )
to
stats.getGetTable().wrap(() -> { try (HiveMetastoreClient client=clientProvider.createMetastoreClient()){ Table table=client.get_table(hiveTableName.getDatabaseName(),hiveTableName.getTableName()); if (table.getTableType().equals(TableType.VIRTUAL_VIEW.name()) && (!isPrestoView(table))) { throw new HiveViewNotSupportedException(new SchemaTableName(hiveTableName.getDatabaseName(),hiveTableName.getTableName())); } return Optional.of(table); } } )
Update argument list (Method invocation)
get
to
get
Cascading Type Change (Different)
CacheLoader<HiveTableName,Table>
to
CacheLoader<HiveTableName,Optional<Table>>