@AutoService(value=TableProvider.class) public class TestTableProvider extends InMemoryMetaTableProvider
Keeps global state and tracks class instances. Works only in DirectRunner.
| Modifier and Type | Class and Description | 
|---|---|
| static class  | TestTableProvider.PushDownOptions | 
| static class  | TestTableProvider.TableWithRowsTableWitRows. | 
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | PUSH_DOWN_OPTION | 
| Constructor and Description | 
|---|
| TestTableProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addRows(java.lang.String tableName,
       Row... rows) | 
| BeamSqlTable | buildBeamSqlTable(Table table)Build a  BeamSqlTableusing 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.util.List<Row> | tableRows(java.lang.String tableName) | 
| java.util.Map<java.lang.String,TestTableProvider.TableWithRows> | tables() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSubProvider, getSubProviders, getTablepublic static final java.lang.String PUSH_DOWN_OPTION
public java.lang.String getTableType()
TableProviderpublic java.util.Map<java.lang.String,TestTableProvider.TableWithRows> tables()
public void createTable(Table table)
TableProvidercreateTable in interface TableProvidercreateTable in class InMemoryMetaTableProviderpublic void dropTable(java.lang.String tableName)
TableProviderdropTable in interface TableProviderdropTable in class InMemoryMetaTableProviderpublic java.util.Map<java.lang.String,Table> getTables()
TableProvidergetTables in interface TableProvidergetTables in class InMemoryMetaTableProviderpublic BeamSqlTable buildBeamSqlTable(Table table)
TableProviderBeamSqlTable using the given table meta info.public void addRows(java.lang.String tableName,
                    Row... rows)
public java.util.List<Row> tableRows(java.lang.String tableName)