Class AbstractRelationshipSearchOperation
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractSearchOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractRelationshipSearchOperation
- Direct Known Subclasses:
FindRelationships
,FindRelationshipsByPropertyValue
,GetRelationshipsForEntity
Base class that all search operations that retrieve entities should implement.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractSearchOperation
fromElement, limitResultsByStatus, matchClassifications, pageSize, sequencingOrder, sequencingProperty, typeGUID, userId
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
asOfTime, existingDB, xtdb
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractRelationshipSearchOperation
(XTDBOMRSRepositoryConnector xtdb, String typeGUID, int fromElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize, String userId) protected
AbstractRelationshipSearchOperation
(XTDBOMRSRepositoryConnector xtdb, String typeGUID, int fromElement, List<InstanceStatus> limitResultsByStatus, xtdb.api.IXtdbDatasource existingDB, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize, String userId) Create a new search operation. -
Method Summary
Modifier and TypeMethodDescriptionPublic interface through which to execute the search operation, which should populate the 'xtdbResults' protected member of this class.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractSearchOperation
deduplicateAndPage, runQuery, searchXtdb, searchXtdbText, updateQuery
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
getXtdbObjectByReference
-
Constructor Details
-
AbstractRelationshipSearchOperation
protected AbstractRelationshipSearchOperation(XTDBOMRSRepositoryConnector xtdb, String typeGUID, int fromElement, List<InstanceStatus> limitResultsByStatus, Date asOfTime, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize, String userId) -
AbstractRelationshipSearchOperation
protected AbstractRelationshipSearchOperation(XTDBOMRSRepositoryConnector xtdb, String typeGUID, int fromElement, List<InstanceStatus> limitResultsByStatus, xtdb.api.IXtdbDatasource existingDB, String sequencingProperty, SequencingOrder sequencingOrder, int pageSize, String userId) Create a new search operation.- Parameters:
xtdb
- connectivity to XTDBtypeGUID
- unique identifier of a type definition by which to limit resultsfromElement
- starting element for paged resultslimitResultsByStatus
- list of statuses by which to limit resultsexistingDB
- the already-opened point-in-time from which to retrieve resultssequencingProperty
- the name of the property by which to sort results (only applicable when sorting by property)sequencingOrder
- the mechanism to use for sorting resultspageSize
- the number of results to include per pageuserId
- executing the search
-
-
Method Details
-
getResults
Public interface through which to execute the search operation, which should populate the 'xtdbResults' protected member of this class.- Returns:
List<Relationship>
list of results in Egeria form- Throws:
TypeErrorException
- if a requested type for searching is not known to the repositoryRepositoryErrorException
- on any error with the read operation, either closing the datasource or timing out
-