Class EmbeddedMetaStore

  • All Implemented Interfaces:
    ReadWriteLock, org.pentaho.metastore.api.IMetaStore

    public class EmbeddedMetaStore
    extends org.pentaho.metastore.api.BaseMetaStore
    implements ReadWriteLock
    Author:
    nhudak
    • Constructor Detail

      • EmbeddedMetaStore

        public EmbeddedMetaStore​(org.pentaho.di.core.AttributesInterface attributesInterface)
    • Method Detail

      • createNamespace

        public void createNamespace​(String namespace)
                             throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        createNamespace in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getNamespaces

        public List<String> getNamespaces()
                                   throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        getNamespaces in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • namespaceExists

        public boolean namespaceExists​(String namespace)
                                throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        namespaceExists in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • deleteNamespace

        public void deleteNamespace​(String namespace)
                             throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        deleteNamespace in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • newElementType

        public JsonElementType newElementType​(String namespace)
        Specified by:
        newElementType in interface org.pentaho.metastore.api.IMetaStore
      • createElementType

        public void createElementType​(String namespace,
                                      org.pentaho.metastore.api.IMetaStoreElementType elementType)
                               throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        createElementType in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getElementType

        public JsonElementType getElementType​(String namespace,
                                              String elementTypeId)
                                       throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        getElementType in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getElementTypeIds

        public List<String> getElementTypeIds​(String namespace)
                                       throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        getElementTypeIds in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getElementTypes

        public List<org.pentaho.metastore.api.IMetaStoreElementType> getElementTypes​(String namespace)
                                                                              throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        getElementTypes in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getElementTypeByName

        public org.pentaho.metastore.api.IMetaStoreElementType getElementTypeByName​(String namespace,
                                                                                    String elementTypeName)
                                                                             throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        getElementTypeByName in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • updateElementType

        public void updateElementType​(String namespace,
                                      org.pentaho.metastore.api.IMetaStoreElementType elementType)
                               throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        updateElementType in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • deleteElementType

        public void deleteElementType​(String namespace,
                                      org.pentaho.metastore.api.IMetaStoreElementType elementType)
                               throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        deleteElementType in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • newElement

        public JsonElement newElement()
        Specified by:
        newElement in interface org.pentaho.metastore.api.IMetaStore
      • newElement

        public JsonElement newElement​(org.pentaho.metastore.api.IMetaStoreElementType elementType,
                                      String id,
                                      Object value)
        Specified by:
        newElement in interface org.pentaho.metastore.api.IMetaStore
      • newAttribute

        public org.pentaho.metastore.api.IMetaStoreAttribute newAttribute​(String id,
                                                                          Object value)
        Specified by:
        newAttribute in interface org.pentaho.metastore.api.IMetaStore
      • newElementOwner

        public org.pentaho.metastore.api.security.IMetaStoreElementOwner newElementOwner​(String name,
                                                                                         org.pentaho.metastore.api.security.MetaStoreElementOwnerType ownerType)
        Specified by:
        newElementOwner in interface org.pentaho.metastore.api.IMetaStore
      • createElement

        public void createElement​(String namespace,
                                  org.pentaho.metastore.api.IMetaStoreElementType elementType,
                                  org.pentaho.metastore.api.IMetaStoreElement element)
                           throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        createElement in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getElements

        public List<org.pentaho.metastore.api.IMetaStoreElement> getElements​(String namespace,
                                                                             org.pentaho.metastore.api.IMetaStoreElementType elementType)
                                                                      throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        getElements in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getElementIds

        public List<String> getElementIds​(String namespace,
                                          org.pentaho.metastore.api.IMetaStoreElementType elementType)
                                   throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        getElementIds in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getElement

        public JsonElement getElement​(String namespace,
                                      org.pentaho.metastore.api.IMetaStoreElementType elementType,
                                      String elementId)
                               throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        getElement in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • getElementByName

        public org.pentaho.metastore.api.IMetaStoreElement getElementByName​(String namespace,
                                                                            org.pentaho.metastore.api.IMetaStoreElementType elementType,
                                                                            String name)
                                                                     throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        getElementByName in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • updateElement

        public void updateElement​(String namespace,
                                  org.pentaho.metastore.api.IMetaStoreElementType elementType,
                                  String elementId,
                                  org.pentaho.metastore.api.IMetaStoreElement element)
                           throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        updateElement in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException
      • deleteElement

        public void deleteElement​(String namespace,
                                  org.pentaho.metastore.api.IMetaStoreElementType elementType,
                                  String elementId)
                           throws org.pentaho.metastore.api.exceptions.MetaStoreException
        Specified by:
        deleteElement in interface org.pentaho.metastore.api.IMetaStore
        Throws:
        org.pentaho.metastore.api.exceptions.MetaStoreException