Class RepositoryEntitiesIterator
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryIteratorForEntities
-
- org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryEntitiesIterator
-
public class RepositoryEntitiesIterator extends RepositoryIteratorForEntities
RepositoryEntitiesIterator is an iterator class for iteratively retrieving entities (possibly restricting the type of entities 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.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryIteratorForEntities
effectiveTime, entitiesCache, entityTypeGUID, entityTypeName, forDuplicateProcessing, forLineage, methodName, pageSize, repositoryHandler, sequencingPropertyName, startingFrom, userId
-
-
Constructor Summary
Constructors Constructor Description RepositoryEntitiesIterator(RepositoryHandler repositoryHandler, String userId, String entityTypeGUID, String entityTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName)Constructor takes the parameters used to call the repository handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanmoreToReceive()Determine if there is more to receive.-
Methods inherited from class org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryIteratorForEntities
getNext
-
-
-
-
Constructor Detail
-
RepositoryEntitiesIterator
public RepositoryEntitiesIterator(RepositoryHandler repositoryHandler, String userId, String entityTypeGUID, String entityTypeName, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName)
Constructor takes the parameters used to call the repository handler.- Parameters:
repositoryHandler- interface to the open metadata repositories.userId- user making the requestentityTypeGUID- identifier for the relationship to followentityTypeName- type name for the relationship to followsequencingPropertyName- name of property used to sequence the results - null means no sequencingforLineage- the request is to support lineage retrieval this means entities with the Memento classification can be returnedforDuplicateProcessing- the request is for duplicate processing and so must not deduplicatestartingFrom- initial position in the stored list.pageSize- maximum number of definitions to return on this call.effectiveTime- the time that the retrieved elements must be effective formethodName- name of calling method
-
-
Method Detail
-
moreToReceive
public boolean moreToReceive() throws UserNotAuthorizedException, PropertyServerExceptionDetermine if there is more to receive. It will populate the iterator's cache with more content.- Specified by:
moreToReceivein classRepositoryIteratorForEntities- Returns:
- boolean flag
- Throws:
UserNotAuthorizedException- the repository is not allowing the user to access the metadataPropertyServerException- there is a problem in the repository
-
-