Class TestTableProvider
java.lang.Object
org.apache.beam.sdk.extensions.sql.meta.provider.InMemoryMetaTableProvider
org.apache.beam.sdk.extensions.sql.meta.provider.test.TestTableProvider
- All Implemented Interfaces:
TableProvider
Test in-memory table provider for use in tests.
Keeps global state and tracks class instances. Works only in DirectRunner.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic classTableWitRows. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildBeamSqlTable(Table table) Build aBeamSqlTableusing the given table meta info.voidcreateTable(Table table) Creates a table.voidDrops a table.Get all tables from this provider.Gets the table type this provider handles.tables()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.beam.sdk.extensions.sql.meta.provider.TableProvider
getSubProvider, getSubProviders, getTable, supportsPartitioning
-
Field Details
-
PUSH_DOWN_OPTION
- See Also:
-
-
Constructor Details
-
TestTableProvider
public TestTableProvider()
-
-
Method Details
-
getTableType
Description copied from interface:TableProviderGets the table type this provider handles. -
tables
-
createTable
Description copied from interface:TableProviderCreates a table.- Specified by:
createTablein interfaceTableProvider- Overrides:
createTablein classInMemoryMetaTableProvider
-
dropTable
Description copied from interface:TableProviderDrops a table.- Specified by:
dropTablein interfaceTableProvider- Overrides:
dropTablein classInMemoryMetaTableProvider- Parameters:
tableName-
-
getTables
Description copied from interface:TableProviderGet all tables from this provider.- Specified by:
getTablesin interfaceTableProvider- Overrides:
getTablesin classInMemoryMetaTableProvider
-
buildBeamSqlTable
Description copied from interface:TableProviderBuild aBeamSqlTableusing the given table meta info. -
addRows
-
tableRows
-