Package com.exasol.adapter.jdbc
Interface TableMetadataReader
-
- All Known Implementing Classes:
BaseTableMetadataReader
public interface TableMetadataReaderCommon interface for all table metadata readers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisTableIncludedByMapping(String tableName)Returns true if the metadata reader includes the table with the given name when the remote metadata gets mapped table name.List<com.exasol.adapter.metadata.TableMetadata>mapTables(ResultSet remoteTables, List<String> filteredTables)Map a list of tables found in a JDBC result set to a list ofTableMetadata.
-
-
-
Method Detail
-
mapTables
List<com.exasol.adapter.metadata.TableMetadata> mapTables(ResultSet remoteTables, List<String> filteredTables) throws SQLException
Map a list of tables found in a JDBC result set to a list ofTableMetadata.- Parameters:
remoteTables- result set containing the tables to be mappedfilteredTables- list of tables name that is used to narrow down the mapping- Returns:
- list of
TableMetadata - Throws:
SQLException- if either mapping the table or its columns produces an SQL error
-
isTableIncludedByMapping
boolean isTableIncludedByMapping(String tableName)
Returns true if the metadata reader includes the table with the given name when the remote metadata gets mapped table name.- Parameters:
tableName- name of the table- Returns:
trueif the reader includes the the mapping,falseif it is ignored
-
-