Package io.prestosql.connector.system
Class MetadataBasedSystemTablesProvider
- java.lang.Object
-
- io.prestosql.connector.system.MetadataBasedSystemTablesProvider
-
- All Implemented Interfaces:
SystemTablesProvider
public class MetadataBasedSystemTablesProvider extends Object implements SystemTablesProvider
-
-
Constructor Summary
Constructors Constructor Description MetadataBasedSystemTablesProvider(Metadata metadata, String catalogName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<SystemTable>
getSystemTable(ConnectorSession session, SchemaTableName tableName)
Resolves table name.Set<SystemTable>
listSystemTables(ConnectorSession session)
-
-
-
Method Detail
-
listSystemTables
public Set<SystemTable> listSystemTables(ConnectorSession session)
- Specified by:
listSystemTables
in interfaceSystemTablesProvider
-
getSystemTable
public Optional<SystemTable> getSystemTable(ConnectorSession session, SchemaTableName tableName)
Description copied from interface:SystemTablesProvider
Resolves table name. ReturnsOptional.empty()
if table is not found. Some tables which are not part of set returned bySystemTablesProvider.listSystemTables(ConnectorSession)
can still be validly resolved.- Specified by:
getSystemTable
in interfaceSystemTablesProvider
-
-