Class InMemoryMetaStore

java.lang.Object
org.apache.bookkeeper.metastore.InMemoryMetaStore
All Implemented Interfaces:
MetaStore

public class InMemoryMetaStore extends Object implements MetaStore
An in-memory implementation of the MetaStore interface.
  • Field Details

  • Constructor Details

    • InMemoryMetaStore

      public InMemoryMetaStore()
  • Method Details

    • reset

      public static void reset()
    • getName

      public String getName()
      Description copied from interface: MetaStore
      Return the name of the plugin.
      Specified by:
      getName in interface MetaStore
      Returns:
      the plugin name.
    • getVersion

      public int getVersion()
      Description copied from interface: MetaStore
      Get the plugin version.
      Specified by:
      getVersion in interface MetaStore
      Returns:
      the plugin version.
    • init

      public void init(org.apache.commons.configuration2.Configuration conf, int msVersion) throws MetastoreException
      Description copied from interface: MetaStore
      Initialize the meta store.
      Specified by:
      init in interface MetaStore
      Parameters:
      conf - Configuration object passed to metastore
      msVersion - Version to initialize the metastore
      Throws:
      MetastoreException - when failed to initialize
    • close

      public void close()
      Description copied from interface: MetaStore
      Close the meta store.
      Specified by:
      close in interface MetaStore
    • createTable

      public MetastoreTable createTable(String name)
      Description copied from interface: MetaStore
      Create a metastore table.
      Specified by:
      createTable in interface MetaStore
      Parameters:
      name - Table name.
      Returns:
      a metastore table
    • createScannableTable

      public MetastoreScannableTable createScannableTable(String name)
      Description copied from interface: MetaStore
      Create a scannable metastore table.
      Specified by:
      createScannableTable in interface MetaStore
      Parameters:
      name - Table name.
      Returns:
      a metastore scannable table