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 enum
static class
TableWitRows. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildBeamSqlTable
(Table table) Build aBeamSqlTable
using the given table meta info.void
createTable
(Table table) Creates a table.void
Drops 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, wait
Methods 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:TableProvider
Gets the table type this provider handles. -
tables
-
createTable
Description copied from interface:TableProvider
Creates a table.- Specified by:
createTable
in interfaceTableProvider
- Overrides:
createTable
in classInMemoryMetaTableProvider
-
dropTable
Description copied from interface:TableProvider
Drops a table.- Specified by:
dropTable
in interfaceTableProvider
- Overrides:
dropTable
in classInMemoryMetaTableProvider
- Parameters:
tableName
-
-
getTables
Description copied from interface:TableProvider
Get all tables from this provider.- Specified by:
getTables
in interfaceTableProvider
- Overrides:
getTables
in classInMemoryMetaTableProvider
-
buildBeamSqlTable
Description copied from interface:TableProvider
Build aBeamSqlTable
using the given table meta info. -
addRows
-
tableRows
-