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.
Modifier and Type | Method and Description |
---|---|
BeamSqlTable |
buildBeamSqlTable(Table table)
Build a
BeamSqlTable using the given table meta info. |
void |
close()
Close the provider.
|
void |
createTable(Table table)
Creates a table.
|
void |
dropTable(java.lang.String tableName)
Drops a table.
|
java.lang.String |
getTableType()
Gets the table type this provider handles.
|
void |
init()
Init the provider.
|
java.util.List<Table> |
listTables()
List all tables from this provider.
|
void init()
java.lang.String getTableType()
void createTable(Table table)
void dropTable(java.lang.String tableName)
tableName
- java.util.List<Table> listTables()
BeamSqlTable buildBeamSqlTable(Table table)
BeamSqlTable
using the given table meta info.void close()