Package org.apache.bookkeeper.metastore
Interface MetaStore
-
- All Known Implementing Classes:
InMemoryMetaStore
public interface MetaStore
Metadata Store Interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close the meta store.MetastoreScannableTable
createScannableTable(java.lang.String name)
Create a scannable metastore table.MetastoreTable
createTable(java.lang.String name)
Create a metastore table.java.lang.String
getName()
Return the name of the plugin.int
getVersion()
Get the plugin version.void
init(org.apache.commons.configuration.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.configuration.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
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.
-
-