Class GetRelatedEntities
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractGraphOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.GetRelatedEntities
Implements the 'getRelatedEntities' operation of the OMRS metadata collection interface.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractGraphOperation
limitResultsByStatus, startEntityGUID
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
asOfTime, existingDB, xtdb
-
Constructor Summary
ConstructorDescriptionGetRelatedEntities
(XTDBOMRSRepositoryConnector xtdb, String entityGUID, List<String> entityTypeGUIDs, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime) Create a new getRelatedEntities operation. -
Method Summary
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractGraphOperation
findDirectNeighbors, findNeighborhood, getEntityRefFromGraphTuple, getNextLevelNeighbors, resultsToGraph
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
getXtdbObjectByReference
-
Constructor Details
-
GetRelatedEntities
public GetRelatedEntities(XTDBOMRSRepositoryConnector xtdb, String entityGUID, List<String> entityTypeGUIDs, List<InstanceStatus> limitResultsByStatus, List<String> limitResultsByClassification, Date asOfTime) Create a new getRelatedEntities operation.- Parameters:
xtdb
- connectivity to XTDBentityGUID
- the starting point of the queryentityTypeGUIDs
- list of entity types to include in the query results (null means include all entities found, irrespective of their type)limitResultsByStatus
- list of statuses by which to limit resultslimitResultsByClassification
- list of classifications that must be present on all returned entitiesasOfTime
- the point-in-time for which to retrieve results
-
-
Method Details
-
execute
Execute the getRelatedEntities operation.- Returns:
- InstanceGraph of results
- Throws:
EntityNotKnownException
- if the starting entity for the traversal cannot be foundRepositoryErrorException
- on any other connectivity or resource usage error
-