Class OSSUnityCatalogInsideCatalogSyncModelVersions
java.lang.Object
org.odpi.openmetadata.frameworks.auditlog.AuditLoggingBase
org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncBase
org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncModelVersions
public class OSSUnityCatalogInsideCatalogSyncModelVersions
extends OSSUnityCatalogInsideCatalogSyncBase
Provides the specialist methods for working with the versions of a Unity Catalog (UC) Registered Model.
Each version is catalogued as a DeployedAnalyticsModel asset that is linked to the asset for its registered
model with a ProcessHierarchy relationship, and anchored to the schema. A version has no name of its own in
Unity Catalog: it is identified by the full name of its registered model and its version number, which is
stored in the asset's resourceName and versionIdentifier respectively.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncBase
assetClient, catalogGUID, catalogTargetName, catalogTypeName, configurationProperties, connectorName, context, deployedImplementationType, entityTypeName, excludeNames, externalIdClient, includeNames, metadataCollectionGUID, metadataCollectionQualifiedName, openMetadataStore, propertyFacetClient, propertyHelper, serverGUID, targetPermittedSynchronization, templateGUID, templates, ucConnector, ucFullNameToEgeriaGUID, ucServerEndpointFields inherited from class org.odpi.openmetadata.frameworks.auditlog.AuditLoggingBase
auditLog -
Constructor Summary
ConstructorsConstructorDescriptionOSSUnityCatalogInsideCatalogSyncModelVersions(String connectorName, IntegrationContext context, String catalogTargetName, String serverGUID, String catalogGUID, String metadataCollectionGUID, String metadataCollectionQualifiedName, Map<String, String> ucFullNameToEgeriaGUID, PermittedSynchronization targetPermittedSynchronization, OSSUnityCatalogResourceConnector ucConnector, String ucServerEndpoint, Map<String, String> templates, Map<String, Object> configurationProperties, AuditLog auditLog) Set up the model version synchronizer. -
Method Summary
Modifier and TypeMethodDescriptionprotected IntegrationIteratorrefreshEgeria(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties) Review all the versions of the registered model that are stored in Egeria.protected voidrefreshUnityCatalog(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties, IntegrationIterator iterator) Review all the versions of the registered model that are stored in UC.Methods inherited from class org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncBase
addExternalIdentifier, addPropertyFacet, buildAnchorScopeGUIDs, deleteElementInEgeria, findExistingSchemaAttribute, findExistingSchemaType, getArrayConfigurationProperty, getCleanStorageLocation, getDateFromLong, getExternalIdLinkProperties, getExternalIdProperties, getParentGUIDFromMember, getQualifiedName, getShortName, getUCCatalogFromMember, getUCCommentFomMember, getUCNameFromMember, getUCPropertiesFromMember, getUCSchemaFromMember, getUCStorageLocationFromMember, noMismatchInExternalIdentifier, shouldBeCatalogued, throwBadBeanClass, throwMissingPropertyValueMethods inherited from class org.odpi.openmetadata.frameworks.auditlog.AuditLoggingBase
logExceptionRecord, logExceptionRecord, logRecord, logRecord
-
Constructor Details
-
OSSUnityCatalogInsideCatalogSyncModelVersions
public OSSUnityCatalogInsideCatalogSyncModelVersions(String connectorName, IntegrationContext context, String catalogTargetName, String serverGUID, String catalogGUID, String metadataCollectionGUID, String metadataCollectionQualifiedName, Map<String, String> ucFullNameToEgeriaGUID, PermittedSynchronization targetPermittedSynchronization, OSSUnityCatalogResourceConnector ucConnector, String ucServerEndpoint, Map<String, throws UserNotAuthorizedException, InvalidParameterExceptionString> templates, Map<String, Object> configurationProperties, AuditLog auditLog) Set up the model version synchronizer.- Parameters:
connectorName- name of this connectorcontext- context for the connectorcatalogTargetName- the catalog target nameserverGUID- guid of the UC server assetcatalogGUID- guid of the catalogmetadataCollectionGUID- guid of the metadata collection for this servermetadataCollectionQualifiedName- name of the metadata collection for this serverucFullNameToEgeriaGUID- map of full names from UC to the GUID of the entity in Egeria.targetPermittedSynchronization- the policy that controls the direction of metadata exchangeucConnector- connector for accessing UCucServerEndpoint- the server endpoint used to constructing the qualified namestemplates- templates supplied through the catalog targetconfigurationProperties- configuration properties supplied through the catalog targetauditLog- logging destination- Throws:
UserNotAuthorizedException- the connector was disconnected before/during startInvalidParameterException- the template is missing
-
-
Method Details
-
refreshEgeria
protected IntegrationIterator refreshEgeria(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, ConnectorCheckedException Review all the versions of the registered model that are stored in Egeria.- Specified by:
refreshEgeriain classOSSUnityCatalogInsideCatalogSyncBase- Parameters:
parentGUID- unique identifier of the registered modelparentRelationshipTypeName- relationship type between the registered model and its versionsrelationshipProperties- optional properties for the relationship- Returns:
- iterator
- Throws:
InvalidParameterException- parameter errorPropertyServerException- repository errorUserNotAuthorizedException- security errorConnectorCheckedException- problem extracting properties
-
refreshUnityCatalog
protected void refreshUnityCatalog(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties, IntegrationIterator iterator) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, ConnectorCheckedException Review all the versions of the registered model that are stored in UC.- Specified by:
refreshUnityCatalogin classOSSUnityCatalogInsideCatalogSyncBase- Parameters:
parentGUID- unique identifier of the registered modelparentRelationshipTypeName- relationship type between the registered model and its versionsrelationshipProperties- optional properties for the relationshipiterator- iterator- Throws:
InvalidParameterException- parameter errorPropertyServerException- repository errorUserNotAuthorizedException- security errorConnectorCheckedException- logic error in properties
-