Class InMemoryMetaStore
java.lang.Object
org.apache.beam.sdk.extensions.sql.meta.store.InMemoryMetaStore
- All Implemented Interfaces:
TableProvider
,MetaStore
A
MetaStore
which stores the meta info in memory.
NOTE, because this implementation is memory based, the metadata is NOT persistent. for tables
which created, you need to create again every time you launch the BeamSqlCli
.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildBeamSqlTable
(Table table) Build aBeamSqlTable
using the given table meta info.void
createTable
(Table table) Creates a table.void
Drops a table.getProvider
(String type) Get all tables from this provider.Gets the table type this provider handles.void
registerProvider
(TableProvider provider) Register a table provider.boolean
supportsPartitioning
(Table table) 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
-
Constructor Details
-
InMemoryMetaStore
public InMemoryMetaStore()
-
-
Method Details
-
getTableType
Description copied from interface:TableProvider
Gets the table type this provider handles.- Specified by:
getTableType
in interfaceTableProvider
-
createTable
Description copied from interface:TableProvider
Creates a table.- Specified by:
createTable
in interfaceTableProvider
-
dropTable
Description copied from interface:TableProvider
Drops a table.- Specified by:
dropTable
in interfaceTableProvider
- Parameters:
tableName
-
-
getTables
Description copied from interface:TableProvider
Get all tables from this provider.- Specified by:
getTables
in interfaceTableProvider
-
buildBeamSqlTable
Description copied from interface:TableProvider
Build aBeamSqlTable
using the given table meta info.- Specified by:
buildBeamSqlTable
in interfaceTableProvider
-
registerProvider
Description copied from interface:MetaStore
Register a table provider.- Specified by:
registerProvider
in interfaceMetaStore
- Parameters:
provider
-
-
supportsPartitioning
- Specified by:
supportsPartitioning
in interfaceTableProvider
-
getProvider
-