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
auditLog, catalogGUID, catalogName, catalogQualifiedName, catalogTypeName, configurationProperties, connectorName, context, deployedImplementationType, excludeNames, includeNames, openMetadataAccess, propertyHelper, targetPermittedSynchronization, templates, ucConnector, ucFullNameToEgeriaGUID, ucServerEndpoint
-
Constructor Summary
ConstructorDescriptionOSSUnityCatalogInsideCatalogSyncSchema
(String connectorName, CatalogIntegratorContext context, String catalogTargetName, String catalogGUID, String catalogName, 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 TypeMethodDescriptionprotected IntegrationIterator
Review all the schemas stored in Egeria.protected void
refreshUnityCatalog
(IntegrationIterator iterator) Review all the schemas stored in UC.protected void
updateElementInEgeria
(SchemaInfo schemaInfo, MemberElement memberElement) Update an element in open metadata.Methods inherited from class org.odpi.openmetadata.adapters.connectors.unitycatalog.sync.OSSUnityCatalogInsideCatalogSyncBase
addPropertyFacet, deleteElementInEgeria, getDateFromLong, getExternalIdentifierProperties, getPathNameFromStorageLocation, getQualifiedName, getUCCatalogFromMember, getUCCommentFomMember, getUCNameFromMember, getUCPropertiesFromMember, getUCSchemaFromMember, getUCStorageLocationFromMember, noMismatchInExternalIdentifier
-
Constructor Details
-
OSSUnityCatalogInsideCatalogSyncSchema
public OSSUnityCatalogInsideCatalogSyncSchema(String connectorName, CatalogIntegratorContext context, String catalogTargetName, String catalogGUID, String catalogName, 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.- Parameters:
connectorName
- name of this connectorcontext
- context for the connectorcatalogTargetName
- the catalog target namecatalogGUID
- guid of the catalogcatalogName
- name of the catalogucFullNameToEgeriaGUID
- 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
-
-
Method Details
-
refreshEgeria
protected IntegrationIterator refreshEgeria() throws InvalidParameterException, PropertyServerException, UserNotAuthorizedExceptionReview all the schemas stored in Egeria.- Specified by:
refreshEgeria
in classOSSUnityCatalogInsideCatalogSyncBase
- Returns:
- MetadataCollectionIterator
- Throws:
InvalidParameterException
- parameter errorPropertyServerException
- repository errorUserNotAuthorizedException
- security error
-
refreshUnityCatalog
protected void refreshUnityCatalog(IntegrationIterator iterator) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Review all the schemas stored in UC.- Specified by:
refreshUnityCatalog
in classOSSUnityCatalogInsideCatalogSyncBase
- Parameters:
iterator
- Metadata collection iterator- Throws:
InvalidParameterException
- parameter errorPropertyServerException
- repository errorUserNotAuthorizedException
- security error
-
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
-