public class InMemoryMetaStore extends java.lang.Object implements MetaStore
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 and Description | 
|---|
InMemoryMetaStore()  | 
| Modifier and Type | Method and Description | 
|---|---|
BeamSqlTable | 
buildBeamSqlTable(Table table)
Build a  
BeamSqlTable using the given table meta info. | 
void | 
createTable(Table table)
Creates a table. 
 | 
void | 
dropTable(java.lang.String tableName)
Drops a table. 
 | 
java.util.Map<java.lang.String,Table> | 
getTables()
Get all tables from this provider. 
 | 
java.lang.String | 
getTableType()
Gets the table type this provider handles. 
 | 
void | 
registerProvider(TableProvider provider)
Register a table provider. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSubProvider, getSubProviders, getTablepublic java.lang.String getTableType()
TableProvidergetTableType in interface TableProviderpublic void createTable(Table table)
TableProvidercreateTable in interface TableProviderpublic void dropTable(java.lang.String tableName)
TableProviderdropTable in interface TableProviderpublic java.util.Map<java.lang.String,Table> getTables()
TableProvidergetTables in interface TableProviderpublic BeamSqlTable buildBeamSqlTable(Table table)
TableProviderBeamSqlTable using the given table meta info.buildBeamSqlTable in interface TableProviderpublic void registerProvider(TableProvider provider)
MetaStoreregisterProvider in interface MetaStore