Class DuplicateEntityIterator

java.lang.Object
org.odpi.openmetadata.commonservices.repositoryhandler.DuplicateEntityIterator

public class DuplicateEntityIterator extends Object
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

    Constructors
    Constructor
    Description
    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, boolean forLineage, boolean forDuplicateProcessing, Date effectiveTime, String methodName)
    Construct the duplicate entity iterator.
  • Method Summary

    Modifier and Type
    Method
    Description
    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, boolean forLineage, Date effectiveTime, String methodName)
    Return the entity at the other end of the requested relationship type.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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, 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 handler
      errorHandler - generates error messages and exceptions
      invalidParameterHandler - handles parameter errors
      userId - calling user
      startingEntity - entity to start processing on
      entityTypeName - type of entities that the iterator is working with
      forLineage - is this a lineage request
      forDuplicateProcessing - is this a duplicate processing request
      effectiveTime - what is the effective time needed by the caller
      methodName - calling method
      Throws:
      org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - bad parameters
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - broader security failure
      org.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, 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 request
      startingEntity - starting entity
      startingEntityTypeName - starting entity's type name
      forLineage - the query is to support lineage retrieval
      effectiveTime - 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 entity
      org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException - problem accessing the property server
      org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - security access problem