public interface TableProvider
TableProvider
handles the metadata CRUD of a specified kind of tables.
So there will be a provider to handle textfile(CSV) based tables, there is a provider to handle MySQL based tables, a provider to handle Casandra based tables etc.
Note: all implementations marked with @AutoService(TableProvider.class)
are
automatically loaded by CLI or other cases when JdbcDriver
is used with default
connection parameters.
Modifier and Type | Method and Description |
---|---|
BeamSqlTable |
buildBeamSqlTable(Table table)
Build a
BeamSqlTable using the given table meta info. |
void |
createTable(Table table)
Creates a table.
|
void |
dropTable(java.lang.String tableName)
Drops a table.
|
java.util.Map<java.lang.String,Table> |
getTables()
Get all tables from this provider.
|
java.lang.String |
getTableType()
Gets the table type this provider handles.
|
java.lang.String getTableType()
void createTable(Table table)
void dropTable(java.lang.String tableName)
tableName
- java.util.Map<java.lang.String,Table> getTables()
BeamSqlTable buildBeamSqlTable(Table table)
BeamSqlTable
using the given table meta info.