public interface TableRegistry extends Closeable
| Modifier and Type | Method and Description |
|---|---|
default TableDetail |
describeTable(String database,
String table)
Return details about a table.
|
default TableDetail |
describeTable(String database,
String schema,
String table)
Return details about a table.
|
TableList |
listTables() |
StandardizedTableDetail |
standardize(TableDetail tableDetail)
Standardize raw column information into a standard schema that will be sent to the target.
|
TableList listTables() throws IOException
IOException - if the table information could not be readdefault TableDetail describeTable(String database, String table) throws TableNotFoundException, IOException
database - name of the database that table resides intable - the table nameTableNotFoundException - if the specified table does not existIOException - if the table information could not be readdefault TableDetail describeTable(String database, String schema, String table) throws TableNotFoundException, IOException
database - name of the database that table resides inschema - name of the schema that table resides in, it's only required for some DB totable - the table name
identify a table.TableNotFoundException - if the specified table does not existIOException - if the table information could not be readStandardizedTableDetail standardize(TableDetail tableDetail)
tableDetail - raw table descriptorCopyright © 2021 CDAP Licensed under the Apache License, Version 2.0.