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 aBeamSqlTableusing the given table meta info.voidcreateTable(Table table) Creates a table.voidDrops a table.getProvider(String type) Get all tables from this provider.Gets the table type this provider handles.voidregisterProvider(TableProvider provider) Register a table provider.booleansupportsPartitioning(Table table) 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
-
Constructor Details
-
InMemoryMetaStore
public InMemoryMetaStore()
-
-
Method Details
-
getTableType
Description copied from interface:TableProviderGets the table type this provider handles.- Specified by:
getTableTypein interfaceTableProvider
-
createTable
Description copied from interface:TableProviderCreates a table.- Specified by:
createTablein interfaceTableProvider
-
dropTable
Description copied from interface:TableProviderDrops a table.- Specified by:
dropTablein interfaceTableProvider- Parameters:
tableName-
-
getTables
Description copied from interface:TableProviderGet all tables from this provider.- Specified by:
getTablesin interfaceTableProvider
-
buildBeamSqlTable
Description copied from interface:TableProviderBuild aBeamSqlTableusing the given table meta info.- Specified by:
buildBeamSqlTablein interfaceTableProvider
-
registerProvider
Description copied from interface:MetaStoreRegister a table provider.- Specified by:
registerProviderin interfaceMetaStore- Parameters:
provider-
-
supportsPartitioning
- Specified by:
supportsPartitioningin interfaceTableProvider
-
getProvider
-