Package org.apache.bookkeeper.metastore
Interface MetaStore
- All Known Implementing Classes:
InMemoryMetaStore
public interface MetaStore
Metadata Store Interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the meta store.createScannableTable(String name) Create a scannable metastore table.createTable(String name) Create a metastore table.getName()Return the name of the plugin.intGet the plugin version.voidinit(org.apache.commons.configuration2.Configuration config, int msVersion) Initialize the meta store.
-
Method Details
-
getName
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 MetastoreException Initialize 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
Create a metastore table.- Parameters:
name- Table name.- Returns:
- a metastore table
- Throws:
MetastoreException- when failed to create the metastore table.
-
createScannableTable
Create a scannable metastore table.- Parameters:
name- Table name.- Returns:
- a metastore scannable table
- Throws:
MetastoreException- when failed to create the metastore table.
-