Class GetRelationshipsForEntity
java.lang.Object
org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractReadOperation
org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractSearchOperation
org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractRelationshipSearchOperation
org.odpi.egeria.connectors.juxt.xtdb.readops.GetRelationshipsForEntity
Implements the 'getRelationshipsForEntity' operation of the OMRS metadata collection interface.
-
Field Summary
Fields inherited from class org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractSearchOperation
fromElement, limitResultsByStatus, matchClassifications, pageSize, sequencingOrder, sequencingProperty, typeGUID, userIdFields inherited from class org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractReadOperation
asOfTime, existingDB, xtdb -
Constructor Summary
ConstructorsConstructorDescriptionGetRelationshipsForEntity(XtdbOMRSRepositoryConnector xtdb, String entityGUID, String relationshipTypeGUID, int fromRelationshipElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, xtdb.api.IXtdbDatasource existingDB, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String userId) Create a new 'getRelationshipsForEntity' executable. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<List<?>>runQuery(xtdb.api.IXtdbDatasource db) Interface that must be implemented to actually execute the query logic.Methods inherited from class org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractRelationshipSearchOperation
getResultsMethods inherited from class org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractSearchOperation
deduplicateAndPage, searchXtdb, searchXtdbText, updateQueryMethods inherited from class org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractReadOperation
getXtdbObjectByReference
-
Constructor Details
-
GetRelationshipsForEntity
public GetRelationshipsForEntity(XtdbOMRSRepositoryConnector xtdb, String entityGUID, String relationshipTypeGUID, int fromRelationshipElement, List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus, xtdb.api.IXtdbDatasource existingDB, String sequencingProperty, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder, int pageSize, String userId) Create a new 'getRelationshipsForEntity' executable.- Parameters:
xtdb- connectivity to XTDBentityGUID- of the entity for which to find relationshipsrelationshipTypeGUID- to limit the relationship types to retrieve (optional)fromRelationshipElement- starting element for paginglimitResultsByStatus- by which to limit results (optional)existingDB- already-opened datasource against which to do the retrievalssequencingProperty- by which to order the results (required if sequencingOrder involves a property)sequencingOrder- by which to order results (optional, will default to GUID)pageSize- maximum number of results per pageuserId- of the user running the query
-
-
Method Details
-
runQuery
protected Collection<List<?>> runQuery(xtdb.api.IXtdbDatasource db) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException Interface that must be implemented to actually execute the query logic.- Specified by:
runQueryin classAbstractSearchOperation- Parameters:
db- the datasource against which to run the query- Returns:
Collection<List<?>>of internal XT references (IDs) that match the query- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException- if a requested type for searching is not known to the repositoryorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- if there is any issue iterating through the results
-