Class ClassificationAccumulator
java.lang.Object
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators.ExceptionAccumulatorBase
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators.MaintenanceAccumulator
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators.ClassificationAccumulator
- Direct Known Subclasses:
EntityDetailAccumulator
,EntitySummaryAccumulator
ClassificationAccumulator accumulates and validates an entity received from a collection of open metadata
repositories. It removes duplicates from the list by choosing the latest entity details object.
This class may be called simultaneously from multiple threads, so it must be thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addContributingMetadataCollection
(String metadataCollectionId) Remember that a specific metadata collection has already been called.Return the list of metadata collections that have been called.Return the list of GUIDs for the entities returned from the query.boolean
Return the current state of the inPhaseOne flag.void
saveClassifications
(List<Classification> retrievedClassifications) Save the best classifications from all the repositories.Methods inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators.MaintenanceAccumulator
captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureException, captureGenericException
Methods inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators.ExceptionAccumulatorBase
throwCapturedClassificationErrorException, throwCapturedEntityNotDeletedException, throwCapturedEntityNotKnownException, throwCapturedEntityProxyOnlyException, throwCapturedFunctionNotSupportedException, throwCapturedGenericException, throwCapturedInvalidParameterException, throwCapturedInvalidTypeDefException, throwCapturedPagingErrorException, throwCapturedPropertyErrorException, throwCapturedRelationshipNotDeletedException, throwCapturedRelationshipNotKnownException, throwCapturedRepositoryErrorException, throwCapturedStatusNotSupportedException, throwCapturedTypeDefConflictException, throwCapturedTypeDefNotKnownException, throwCapturedTypeDefNotSupportedException, throwCapturedTypeErrorException, throwCapturedUserNotAuthorizedException
-
Method Details
-
isInPhaseOne
public boolean isInPhaseOne()Return the current state of the inPhaseOne flag.- Returns:
- flag
-
addContributingMetadataCollection
Remember that a specific metadata collection has already been called.- Parameters:
metadataCollectionId
- identifier of metadata collection
-
getContributingMetadataCollections
Return the list of metadata collections that have been called.- Returns:
- list of metadata collection ids
-
getResultsForAugmentation
Return the list of GUIDs for the entities returned from the query.- Returns:
- null or list of GUIDs
-
saveClassifications
Save the best classifications from all the repositories.- Parameters:
retrievedClassifications
- classifications from a repository
-