Class InMemoryMetaStore
java.lang.Object
org.apache.beam.sdk.extensions.sql.meta.store.InMemoryMetaStore
- All Implemented Interfaces:
TableProvider,MetaStore
- Direct Known Subclasses:
IcebergMetastore
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) Fetches aTableProviderfor this type.Get all tables from this provider.Gets the table type this provider handles.voidregisterProvider(TableProvider provider) Register a table provider.booleansupportsPartitioning(Table table) Returns all the registeredTableProviders in thisMetaStore, organized by type.protected voidvalidateTableType(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
-
validateTableType
-
registerProvider
Description copied from interface:MetaStoreRegister a table provider.- Specified by:
registerProviderin interfaceMetaStore- Parameters:
provider-
-
tableProviders
Description copied from interface:MetaStoreReturns all the registeredTableProviders in thisMetaStore, organized by type.- Specified by:
tableProvidersin interfaceMetaStore
-
supportsPartitioning
- Specified by:
supportsPartitioningin interfaceTableProvider
-
getProvider
Fetches aTableProviderfor this type. This provider can exist in the currentInMemoryMetaStoreor a nestedInMemoryMetaStore.- Parameters:
type-- Returns:
-