public class StaticSystemTablesProvider extends Object implements SystemTablesProvider
| Constructor and Description |
|---|
StaticSystemTablesProvider(Set<SystemTable> systemTables) |
| Modifier and Type | Method and Description |
|---|---|
Optional<SystemTable> |
getSystemTable(ConnectorSession session,
SchemaTableName tableName)
Resolves table name.
|
Set<SystemTable> |
listSystemTables(ConnectorSession session) |
public StaticSystemTablesProvider(Set<SystemTable> systemTables)
public Set<SystemTable> listSystemTables(ConnectorSession session)
listSystemTables in interface SystemTablesProviderpublic Optional<SystemTable> getSystemTable(ConnectorSession session, SchemaTableName tableName)
SystemTablesProviderOptional.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 SystemTablesProviderCopyright © 2012–2019. All rights reserved.