Class OSSUnityCatalogInsideCatalogSyncSchema
java.lang.Object
org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncBase
org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncSchema
Provides the specialist methods for working with Unity Catalog (UC) Schema.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncBase
assetClient, auditLog, catalogGUID, catalogTargetName, catalogTypeName, configurationProperties, connectorName, context, deployedImplementationType, entityTypeName, excludeNames, externalIdClient, includeNames, metadataCollectionQualifiedName, openMetadataStore, propertyFacetClient, propertyHelper, targetPermittedSynchronization, templateGUID, templates, ucConnector, ucFullNameToEgeriaGUID, ucServerEndpoint -
Constructor Summary
ConstructorsConstructorDescriptionOSSUnityCatalogInsideCatalogSyncSchema(String connectorName, IntegrationContext context, String catalogTargetName, String catalogGUID, String metadataSourceQualifiedName, Map<String, String> ucFullNameToEgeriaGUID, PermittedSynchronization targetPermittedSynchronization, OSSUnityCatalogResourceConnector ucConnector, String ucServerEndpoint, Map<String, String> templates, Map<String, Object> configurationProperties, List<String> excludeNames, List<String> includeNames, AuditLog auditLog) Set up the schema synchronizer. -
Method Summary
Modifier and TypeMethodDescriptionrefreshChildren(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties) Review all the schemas stored in Egeria.protected IntegrationIteratorrefreshEgeria(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties) Review all the schemas stored in Egeria.protected voidrefreshUnityCatalog(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties, IntegrationIterator iterator) Review all the schemas stored in UC.protected voidupdateElementInEgeria(SchemaInfo schemaInfo, MemberElement memberElement) Update an element in open metadata.Methods inherited from class org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncBase
addExternalIdentifier, addPropertyFacet, deleteElementInEgeria, getArrayConfigurationProperty, getDateFromLong, getExternalIdLinkProperties, getExternalIdProperties, getPathNameFromStorageLocation, getQualifiedName, getUCCatalogFromMember, getUCCommentFomMember, getUCNameFromMember, getUCPropertiesFromMember, getUCSchemaFromMember, getUCStorageLocationFromMember, noMismatchInExternalIdentifier, throwBadBeanClass, throwMissingPropertyValue
-
Constructor Details
-
OSSUnityCatalogInsideCatalogSyncSchema
public OSSUnityCatalogInsideCatalogSyncSchema(String connectorName, IntegrationContext context, String catalogTargetName, String catalogGUID, String metadataSourceQualifiedName, Map<String, String> ucFullNameToEgeriaGUID, PermittedSynchronization targetPermittedSynchronization, OSSUnityCatalogResourceConnector ucConnector, String ucServerEndpoint, Map<String, throws UserNotAuthorizedException, InvalidParameterExceptionString> templates, Map<String, Object> configurationProperties, List<String> excludeNames, List<String> includeNames, AuditLog auditLog) Set up the schema synchronizer.- Parameters:
connectorName- name of this connectorcontext- context for the connectorcatalogTargetName- the catalog target namecatalogGUID- guid of the catalogmetadataSourceQualifiedName- 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 targetexcludeNames- list of catalogs to ignore (and include all others)includeNames- list of catalogs to include (and ignore all others) - overrides excludeCatalogsauditLog- logging destination- Throws:
UserNotAuthorizedException- the connector was disconnected before/during startInvalidParameterException- no template
-
-
Method Details
-
refreshEgeria
protected IntegrationIterator refreshEgeria(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, ConnectorCheckedException Review all the schemas stored in Egeria.- Specified by:
refreshEgeriain classOSSUnityCatalogInsideCatalogSyncBase- Parameters:
parentGUID- unique identifier of the parentparentRelationshipTypeName- relationship type between parent and elements to iterate through *relationshipProperties- optional properties for the relationship- Returns:
- iterator
- Throws:
InvalidParameterException- parameter errorPropertyServerException- repository errorUserNotAuthorizedException- security errorConnectorCheckedException- logic error in properties
-
refreshChildren
protected Map<String,String> refreshChildren(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, ConnectorCheckedException Review all the schemas stored in Egeria.- Parameters:
parentGUID- unique identifier of the parentparentRelationshipTypeName- relationship type between parent and elements to iterate through *relationshipProperties- optional properties for the relationship- Returns:
- iterator
- Throws:
InvalidParameterException- parameter errorPropertyServerException- repository errorUserNotAuthorizedException- security errorConnectorCheckedException- logic error in properties
-
refreshUnityCatalog
protected void refreshUnityCatalog(String parentGUID, String parentRelationshipTypeName, RelationshipBeanProperties relationshipProperties, IntegrationIterator iterator) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, ConnectorCheckedException Review all the schemas stored in UC.- Specified by:
refreshUnityCatalogin classOSSUnityCatalogInsideCatalogSyncBase- Parameters:
iterator- iteratorparentGUID- unique identifier of the parentparentRelationshipTypeName- relationship type between parent and elements to iterate throughrelationshipProperties- optional properties for the relationship- Throws:
InvalidParameterException- parameter errorPropertyServerException- repository errorUserNotAuthorizedException- security errorConnectorCheckedException- logic error in properties
-
updateElementInEgeria
protected void updateElementInEgeria(SchemaInfo schemaInfo, MemberElement memberElement) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Update an element in open metadata.- Parameters:
schemaInfo- object from UCmemberElement- existing element in egeria- Throws:
InvalidParameterException- parameter errorPropertyServerException- repository errorUserNotAuthorizedException- authorization error
-