Class RepositorySelectedEntitiesIterator


  • public class RepositorySelectedEntitiesIterator
    extends RepositoryIteratorForEntities
    RepositorySelectedEntitiesIterator is an iterator class for iteratively retrieving entities based on a search criteria. 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

      • RepositorySelectedEntitiesIterator

        public RepositorySelectedEntitiesIterator​(RepositoryHandler repositoryHandler,
                                                  String userId,
                                                  String entityTypeGUID,
                                                  InstanceProperties properties,
                                                  MatchCriteria matchCriteria,
                                                  String sequencingPropertyName,
                                                  int startingFrom,
                                                  int pageSize,
                                                  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
        entityTypeGUID - identifier for the relationship to follow
        properties - properties used in the search
        matchCriteria - all or any
        sequencingPropertyName - name of property used to sequence the results - null means no sequencing
        startingFrom - initial position in the stored list.
        pageSize - maximum number of definitions to return on this call.
        methodName - name of calling method
      • RepositorySelectedEntitiesIterator

        public RepositorySelectedEntitiesIterator​(RepositoryHandler repositoryHandler,
                                                  String userId,
                                                  String entityTypeGUID,
                                                  String searchCriteria,
                                                  String sequencingPropertyName,
                                                  int startingFrom,
                                                  int pageSize,
                                                  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
        entityTypeGUID - identifier for the relationship to follow
        searchCriteria - value used in the search
        sequencingPropertyName - name of property used to sequence the results - null means no sequencing
        startingFrom - initial position in the stored list.
        pageSize - maximum number of definitions to return on this call.
        methodName - name of calling method