Package org.apache.bookkeeper.metastore
Class InMemoryMetaStore
- java.lang.Object
-
- org.apache.bookkeeper.metastore.InMemoryMetaStore
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static intCUR_VERSION(package private) static java.util.Map<java.lang.String,InMemoryMetastoreTable>tables
-
Constructor Summary
Constructors Constructor Description InMemoryMetaStore()
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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 conf, int msVersion)Initialize the meta store.static voidreset()
-
-
-
Field Detail
-
CUR_VERSION
static final int CUR_VERSION
- See Also:
- Constant Field Values
-
tables
static java.util.Map<java.lang.String,InMemoryMetastoreTable> tables
-
-
Method Detail
-
reset
public static void reset()
-
getName
public java.lang.String getName()
Description copied from interface:MetaStoreReturn the name of the plugin.
-
getVersion
public int getVersion()
Description copied from interface:MetaStoreGet the plugin version.- Specified by:
getVersionin interfaceMetaStore- Returns:
- the plugin version.
-
init
public void init(org.apache.commons.configuration2.Configuration conf, int msVersion) throws MetastoreExceptionDescription copied from interface:MetaStoreInitialize the meta store.- Specified by:
initin interfaceMetaStore- Parameters:
conf- Configuration object passed to metastoremsVersion- Version to initialize the metastore- Throws:
MetastoreException- when failed to initialize
-
close
public void close()
Description copied from interface:MetaStoreClose the meta store.
-
createTable
public MetastoreTable createTable(java.lang.String name)
Description copied from interface:MetaStoreCreate a metastore table.- Specified by:
createTablein interfaceMetaStore- Parameters:
name- Table name.- Returns:
- a metastore table
-
createScannableTable
public MetastoreScannableTable createScannableTable(java.lang.String name)
Description copied from interface:MetaStoreCreate a scannable metastore table.- Specified by:
createScannableTablein interfaceMetaStore- Parameters:
name- Table name.- Returns:
- a metastore scannable table
-
-