public class ReadOnlyTableProvider extends java.lang.Object implements TableProvider
ReadOnlyTableProvider
provides in-memory read only set of BeamSqlTable
BeamSqlTables
.Constructor and Description |
---|
ReadOnlyTableProvider(java.lang.String typeName,
java.util.Map<java.lang.String,BeamSqlTable> tables) |
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.
|
public ReadOnlyTableProvider(java.lang.String typeName, java.util.Map<java.lang.String,BeamSqlTable> tables)
public java.lang.String getTableType()
TableProvider
getTableType
in interface TableProvider
public void createTable(Table table)
TableProvider
createTable
in interface TableProvider
public void dropTable(java.lang.String tableName)
TableProvider
dropTable
in interface TableProvider
public java.util.Map<java.lang.String,Table> getTables()
TableProvider
getTables
in interface TableProvider
public BeamSqlTable buildBeamSqlTable(Table table)
TableProvider
BeamSqlTable
using the given table meta info.buildBeamSqlTable
in interface TableProvider