Interface TableMetadataReader

  • All Known Implementing Classes:
    BaseTableMetadataReader

    public interface TableMetadataReader
    Common interface for all table metadata readers.
    • 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 of TableMetadata.
        Parameters:
        remoteTables - result set containing the tables to be mapped
        filteredTables - 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:
        true if the reader includes the the mapping, false if it is ignored