Class DuplicateEntityIterator
java.lang.Object
org.odpi.openmetadata.commonservices.repositoryhandler.DuplicateEntityIterator
DuplicateEntityIterator retrieves the list of entities that need to be processed for a specific entity.
The first entity returned is the principle entity or its consolidated replacement. After that are the peer duplicates.
Note: this class is not thread-safe - use only within a single-threaded request.
-
Constructor Summary
ConstructorsConstructorDescriptionDuplicateEntityIterator(RepositoryHandler repositoryHandler, RepositoryErrorHandler errorHandler, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, String userId, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail startingEntity, String entityTypeName, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, Date asOfTime, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) Construct the duplicate entity iterator. -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetailgetConsolidatedEntity(String userId, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail startingEntity, String startingEntityTypeName, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, Date asOfTime, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, String sequencingPropertyName, boolean forLineage, Date effectiveTime, String methodName) Return the entity at the other end of the requested relationship type.
-
Constructor Details
-
DuplicateEntityIterator
public DuplicateEntityIterator(RepositoryHandler repositoryHandler, RepositoryErrorHandler errorHandler, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, String userId, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail startingEntity, String entityTypeName, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, Date asOfTime, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Construct the duplicate entity iterator.- Parameters:
repositoryHandler- this repository handlererrorHandler- generates error messages and exceptionsinvalidParameterHandler- handles parameter errorsuserId- calling userstartingEntity- entity to start processing onentityTypeName- type of entities that the iterator is working withlimitResultsByStatus- By default, relationships in all statuses (other than DELETE) are returned. However, it is possible to specify a list of statuses (for example ACTIVE) to restrict the results to. Null means all status values.asOfTime- Requests a historical query of the entity. Null means return the present values.sequencingPropertyName- String name of the property that is to be used to sequence the results. Null means do not sequence on a property name (see SequencingOrder).sequencingOrder- Enum defining how the results should be ordered.forLineage- is this a lineage requestforDuplicateProcessing- is this a duplicate processing requesteffectiveTime- what is the effective time needed by the callermethodName- calling method- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- bad parametersorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- broader security failureorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- logic error
-
-
Method Details
-
getConsolidatedEntity
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail getConsolidatedEntity(String userId, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail startingEntity, String startingEntityTypeName, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, Date asOfTime, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, String sequencingPropertyName, boolean forLineage, Date effectiveTime, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Return the entity at the other end of the requested relationship type. The assumption is that this is a 0..1 relationship so one entity (or null) is returned. If lots of relationships are found then the PropertyServerException is thrown.- Parameters:
userId- user making the requeststartingEntity- starting entitystartingEntityTypeName- starting entity's type namelimitResultsByStatus- By default, relationships in all statuses (other than DELETE) are returned. However, it is possible to specify a list of statuses (for example ACTIVE) to restrict the results to. Null means all status values.asOfTime- Requests a historical query of the entity. Null means return the present values.sequencingPropertyName- String name of the property that is to be used to sequence the results. Null means do not sequence on a property name (see SequencingOrder).sequencingOrder- Enum defining how the results should be ordered.forLineage- the query is to support lineage retrievaleffectiveTime- the time that the retrieved elements must be effective for (null for any time, new Date() for now)methodName- name of calling method- Returns:
- retrieved entity or null
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- bad starting entityorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- problem accessing the property serverorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- security access problem
-