Class GetRelationshipHistory
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractHistoryOperation
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.GetRelationshipHistory
Implements the 'getRelationshipHistory' operation of the OMRS metadata collection interface.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractHistoryOperation
fromElement, fromTime, instanceGUID, pageSize, sequencingOrder
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
asOfTime, existingDB, xtdb
-
Constructor Summary
ConstructorDescriptionGetRelationshipHistory
(XTDBOMRSRepositoryConnector xtdb, String instanceGUID, Date fromTime, Date toTime, int fromElement, int pageSize, HistorySequencingOrder sequencingOrder) Create a new relationship history retrieval operation. -
Method Summary
Modifier and TypeMethodDescriptionexecute()
Retrieve previous versions of the relationship between the provided dates, ordered as requested.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractHistoryOperation
getPreviousVersions
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.readops.AbstractReadOperation
getXtdbObjectByReference
-
Constructor Details
-
GetRelationshipHistory
public GetRelationshipHistory(XTDBOMRSRepositoryConnector xtdb, String instanceGUID, Date fromTime, Date toTime, int fromElement, int pageSize, HistorySequencingOrder sequencingOrder) Create a new relationship history retrieval operation.- Parameters:
xtdb
- connectivity to XTDBinstanceGUID
- unique identifier of a metadata instance for which to retrieve historyfromTime
- the earliest point in time from which to retrieve historical versions of the relationship (inclusive)toTime
- the latest point in time from which to retrieve historical versions of the relationship (exclusive)fromElement
- starting element for paged resultspageSize
- the number of results to include per pagesequencingOrder
- Enum defining how the results should be ordered.
-
-
Method Details
-
execute
Retrieve previous versions of the relationship between the provided dates, ordered as requested.- Returns:
List<Relationship>
giving all versions of the relationship within the range requested- Throws:
RelationshipNotKnownException
- if the requested relationship was not known to the repository during the specified time rangeRepositoryErrorException
- if any issue closing the lazy-evaluating cursor
-