Interface MetaStore

  • All Known Implementing Classes:
    InMemoryMetaStore

    public interface MetaStore
    Metadata Store Interface.
    • Method Detail

      • getName

        java.lang.String getName()
        Return the name of the plugin.
        Returns:
        the plugin name.
      • getVersion

        int getVersion()
        Get the plugin verison.
        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 metastore
        msVersion - 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.