public class KettleDatabaseRepositoryMetaStoreDelegate extends KettleDatabaseRepositoryBaseDelegate
log, repository
Constructor and Description |
---|
KettleDatabaseRepositoryMetaStoreDelegate(KettleDatabaseRepository repository) |
quote, quoteTable
public KettleDatabaseRepositoryMetaStoreDelegate(KettleDatabaseRepository repository)
public LongObjectId getNamespaceId(String namespace) throws KettleException
namespace
- The namespace to look upKettleException
public ObjectId verifyNamespace(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.metastore.api.exceptions.MetaStoreException
public LongObjectId getElementTypeId(LongObjectId namespaceId, String elementTypeName) throws KettleException
KettleException
public LongObjectId getElementId(LongObjectId elementTypeId, String elementName) throws KettleException
KettleException
public RowMetaAndData getElementType(LongObjectId elementTypeId) throws KettleException
KettleException
public RowMetaAndData getElement(LongObjectId elementId) throws KettleException
KettleException
public RowMetaAndData getElementAttribute(LongObjectId elementAttributeId) throws KettleException
KettleException
public Collection<RowMetaAndData> getNamespaces() throws KettleDatabaseException, KettleValueException
public Collection<RowMetaAndData> getElementTypes(LongObjectId namespaceId) throws KettleDatabaseException, KettleValueException
public Collection<RowMetaAndData> getElements(LongObjectId elementTypeId) throws KettleDatabaseException, KettleValueException
public Collection<RowMetaAndData> getElementAttributes(ObjectId elementId, ObjectId parentAttributeId) throws KettleDatabaseException, KettleValueException
public ObjectId insertNamespace(String namespace) throws KettleException
KettleException
public ObjectId insertElementType(KDBRMetaStoreElementType type) throws KettleException
KettleException
public ObjectId updateElementType(ObjectId namespaceId, ObjectId elementTypeId, org.pentaho.metastore.api.IMetaStoreElementType type) throws KettleException
KettleException
public KDBRMetaStoreElementType parseElementType(String namespace, ObjectId namespaceId, RowMetaAndData elementTypeRow) throws KettleValueException
KettleValueException
public void deleteElementType(ObjectId elementTypeId) throws KettleException
KettleException
public void deleteNamespace(ObjectId namespaceId) throws KettleException
KettleException
public KDBRMetaStoreElement parseElement(org.pentaho.metastore.api.IMetaStoreElementType elementType, RowMetaAndData elementRow) throws KettleException
KettleException
public Object parseAttributeValue(String value) throws Exception
S : String (java.lang.String) D : Date (java.util.Date) N : Number (Double) I : Integer (Long) B : Boolean (Boolean) Examples S:Pentaho Data Integration D:2013/08/23 17:25:00 N:1039348.9347 I:12345678 B:true
value
- Exception
- in case of conversion troublepublic String encodeAttributeValue(Object object) throws Exception
Exception
public ObjectId insertElement(org.pentaho.metastore.api.IMetaStoreElementType elementType, org.pentaho.metastore.api.IMetaStoreElement element) throws org.pentaho.metastore.api.exceptions.MetaStoreException
org.pentaho.metastore.api.exceptions.MetaStoreException
public void deleteElement(ObjectId elementId) throws KettleException
KettleException
Copyright © 2018 Hitachi Vantara. All rights reserved.