Class EntityDetailAccumulator
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
org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators.EntityDetailAccumulator
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 different threads, so it must be thread-safe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntity
(EntityDetail incomingEntity, String metadataCollectionId) Provide an entity received from an open metadata repository.getResult
(boolean returnDeletedClassifications) Extract the resulting entity and accumulated classifications.Return the list of GUIDs for the entities returned from the query.Methods inherited from class org.odpi.openmetadata.repositoryservices.enterprise.repositoryconnector.accumulators.ClassificationAccumulator
addContributingMetadataCollection, getContributingMetadataCollections, isInPhaseOne, saveClassifications
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
-
Constructor Details
-
EntityDetailAccumulator
Construct an entity accumulator. Its base class manages the common variables needed to control the execution of requests across all members of the cohort(s).- Parameters:
auditLog
- audit log provides destination for log messages
-
-
Method Details
-
addEntity
Provide an entity received from an open metadata repository.- Parameters:
incomingEntity
- entity returned from an open metadata repositorymetadataCollectionId
- unique identifier for the collection of metadata stored in this repository This is used for error reporting.
-
getResultsForAugmentation
Return the list of GUIDs for the entities returned from the query.- Specified by:
getResultsForAugmentation
in classClassificationAccumulator
- Returns:
- null or list of GUIDs
-
getResult
Extract the resulting entity and accumulated classifications. It should be called once all the executors have completed processing their request(s).- Parameters:
returnDeletedClassifications
- should classifications in deleted status be returned?- Returns:
- consolidated entity
-