Interface MetaStore

All Known Implementing Classes:
InMemoryMetaStore

public interface MetaStore
Metadata Store Interface.
  • 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 metastore
      msVersion - Version to initialize the metastore
      Throws:
      MetastoreException - when failed to initialize
    • close

      void close()
      Close the meta store.
    • createTable

      MetastoreTable createTable(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(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.