Class InMemoryMetaStore

  • All Implemented Interfaces:
    MetaStore

    public class InMemoryMetaStore
    extends java.lang.Object
    implements MetaStore
    An in-memory implementation of the MetaStore interface.
    • Constructor Detail

      • InMemoryMetaStore

        public InMemoryMetaStore()
    • Method Detail

      • reset

        public static void reset()
      • getName

        public java.lang.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.configuration.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​(java.lang.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​(java.lang.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