Class MetaStoreConst


  • public class MetaStoreConst
    extends Object
    • Constructor Detail

      • MetaStoreConst

        public MetaStoreConst()
    • Method Detail

      • getDefaultPentahoMetaStoreLocation

        public static final String getDefaultPentahoMetaStoreLocation()
      • openLocalPentahoMetaStore

        public static org.pentaho.metastore.api.IMetaStore openLocalPentahoMetaStore()
                                                                              throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • openLocalPentahoMetaStore

        public static org.pentaho.metastore.api.IMetaStore openLocalPentahoMetaStore​(boolean allowCreate)
                                                                              throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getDefaultMetastoreSupplier

        public static Supplier<org.pentaho.metastore.api.IMetaStore> getDefaultMetastoreSupplier()
      • getDefaultMetastore

        public static org.pentaho.metastore.api.IMetaStore getDefaultMetastore()
      • enableDefaultToLocalXml

        public static void enableDefaultToLocalXml()
        When this is enabled, if the MetastoreLocator returns null, a local xml metastore will be returned. This should only happen when plugins are not loaded, which should only apply in some unit tests. Runtime code should all load the metastore on demand, ideally using the metastoreSupplier above, and should not initialize a metastore at construction time.