public class MetadataBasedSystemTablesProvider extends Object implements SystemTablesProvider
Constructor and Description |
---|
MetadataBasedSystemTablesProvider(Metadata metadata,
String catalogName) |
Modifier and Type | Method and Description |
---|---|
Optional<SystemTable> |
getSystemTable(ConnectorSession session,
SchemaTableName tableName)
Resolves table name.
|
Set<SystemTable> |
listSystemTables(ConnectorSession session) |
public Set<SystemTable> listSystemTables(ConnectorSession session)
listSystemTables
in interface SystemTablesProvider
public Optional<SystemTable> getSystemTable(ConnectorSession session, SchemaTableName tableName)
SystemTablesProvider
Optional.empty()
if table is not found.
Some tables which are not part of set returned by SystemTablesProvider.listSystemTables(ConnectorSession)
can still be validly resolved.getSystemTable
in interface SystemTablesProvider
Copyright © 2012–2022. All rights reserved.