Package org.apache.bookkeeper.metastore
Interface MetaStore
-
- All Known Implementing Classes:
InMemoryMetaStore
public interface MetaStoreMetadata Store Interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the meta store.MetastoreScannableTablecreateScannableTable(java.lang.String name)Create a scannable metastore table.MetastoreTablecreateTable(java.lang.String name)Create a metastore table.java.lang.StringgetName()Return the name of the plugin.intgetVersion()Get the plugin version.voidinit(org.apache.commons.configuration2.Configuration config, int msVersion)Initialize the meta store.
-
-
-
Method Detail
-
getName
java.lang.String getName()
Return the name of the plugin.- Returns:
- the plugin name.
-
getVersion
int getVersion()
Get the plugin version.- Returns:
- the plugin version.
-
init
void init(org.apache.commons.configuration2.Configuration config, int msVersion) throws MetastoreExceptionInitialize the meta store.- Parameters:
config- Configuration object passed to metastoremsVersion- Version to initialize the metastore- Throws:
MetastoreException- when failed to initialize
-
close
void close()
Close the meta store.
-
createTable
MetastoreTable createTable(java.lang.String name) throws MetastoreException
Create a metastore table.- Parameters:
name- Table name.- Returns:
- a metastore table
- Throws:
MetastoreException- when failed to create the metastore table.
-
createScannableTable
MetastoreScannableTable createScannableTable(java.lang.String name) throws MetastoreException
Create a scannable metastore table.- Parameters:
name- Table name.- Returns:
- a metastore scannable table
- Throws:
MetastoreException- when failed to create the metastore table.
-
-