Class RepositoryRelationshipsIterator


  • public class RepositoryRelationshipsIterator
    extends Object
    RepositoryRelationshipsIterator is an iterator class for iteratively retrieving relationships for a starting entity (possibly restricting the type of relationships returned). It is used where the caller needs to filter the results coming from the repository and may need to make more than one call to the repository in order to accumulate the number of requested results. Note this class is intended for a single request's use - it is not thread-safe.
    • Constructor Detail

      • RepositoryRelationshipsIterator

        public RepositoryRelationshipsIterator​(RepositoryHandler repositoryHandler,
                                               String userId,
                                               String startingEntityGUID,
                                               String startingEntityTypeName,
                                               String relationshipTypeGUID,
                                               String relationshipTypeName,
                                               int startingFrom,
                                               int requesterPageSize,
                                               String methodName)
        Constructor takes the parameters used to call the repository handler.
        Parameters:
        repositoryHandler - interface to the open metadata repositories.
        userId - user making the request
        startingEntityGUID - starting entity's GUID
        startingEntityTypeName - starting entity's type name
        relationshipTypeGUID - identifier for the relationship to follow
        relationshipTypeName - type name for the relationship to follow
        startingFrom - initial position in the stored list.
        requesterPageSize - maximum number of definitions to return by this iterator.
        methodName - name of calling method