Class RepositoryIteratorForEntities
java.lang.Object
org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryIterator
org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryIteratorForEntities
- Direct Known Subclasses:
RepositoryRelatedEntitiesIterator
RepositoryIteratorForEntities is the shared interface of all repository helper iterators that retrieve entity details from
the repository.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.repositoryhandler.RepositoryIterator
MAX_PAGE_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionRepositoryIteratorForEntities(RepositoryHandler repositoryHandler, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, String userId, String entityTypeGUID, String entityTypeName, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, 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
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetailgetNext()Return the next entity.abstract booleanDetermine if there is more to receive.
-
Constructor Details
-
RepositoryIteratorForEntities
public RepositoryIteratorForEntities(RepositoryHandler repositoryHandler, org.odpi.openmetadata.commonservices.ffdc.InvalidParameterHandler invalidParameterHandler, String userId, String entityTypeGUID, String entityTypeName, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, String sequencingPropertyName, boolean forLineage, boolean forDuplicateProcessing, int startingFrom, int pageSize, Date effectiveTime, String methodName) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Constructor takes the parameters used to call the repository handler.- Parameters:
repositoryHandler- interface to the open metadata repositories.invalidParameterHandler- invalid parameter handleruserId- user making the requestentityTypeGUID- identifier for the type of entity to retrieveentityTypeName- name for the type of entity to retrievesequencingOrder- Enum defining how the results should be ordered.sequencingPropertyName- name of property used to sequence the results - null means no sequencinglimitResultsByStatus- only return elements that have the requested status (null means all statuseslimitResultsByClassification- only return elements that have the requested classification(s)asOfTime- Requests a historical query of the entity. Null means return the present values.forLineage- 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- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- when page size or start from parameters do not meet criteria
-
-
Method Details
-
moreToReceive
public abstract boolean moreToReceive() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionDetermine if there is more to receive. It will populate the iterator's cache with more content.- Returns:
- boolean flag
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the bean properties are invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the repository is not allowing the user to access the metadataorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem in the repository
-
getNext
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail getNext() throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionReturn the next entity. It returns null if nothing left to retrieve.- Returns:
- relationship or null
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- the bean properties are invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the repository is not allowing the user to access the metadataorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem in the repository
-