Class AbstractHistoryOperation

java.lang.Object
org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractReadOperation
org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractHistoryOperation
Direct Known Subclasses:
GetEntityHistory, GetRelationshipHistory

public abstract class AbstractHistoryOperation extends AbstractReadOperation
Base class that all metadata instance history retrieval operations should implement.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final int
     
    protected final Date
     
    protected final String
     
    protected final int
     
    protected final org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.HistorySequencingOrder
     

    Fields inherited from class org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractReadOperation

    asOfTime, existingDB, xtdb
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    AbstractHistoryOperation(XtdbOMRSRepositoryConnector xtdb, String instanceGUID, Date fromTime, Date toTime, int fromElement, int pageSize, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.HistorySequencingOrder sequencingOrder)
    Create a new history retrieval operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected List<xtdb.api.XtdbDocument>
    getPreviousVersions(xtdb.api.IXtdbDatasource db, String reference, Date earliest, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.HistorySequencingOrder order)
    Retrieve the previous versions of the provided XTDB object, from an already-opened point-in-time view of the repository back to the earliest point in time defined by the 'earliest' parameter.

    Methods inherited from class org.odpi.egeria.connectors.juxt.xtdb.readops.AbstractReadOperation

    getXtdbObjectByReference

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • instanceGUID

      protected final String instanceGUID
    • fromTime

      protected final Date fromTime
    • fromElement

      protected final int fromElement
    • pageSize

      protected final int pageSize
    • sequencingOrder

      protected final org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.HistorySequencingOrder sequencingOrder
  • Constructor Details

    • AbstractHistoryOperation

      protected AbstractHistoryOperation(XtdbOMRSRepositoryConnector xtdb, String instanceGUID, Date fromTime, Date toTime, int fromElement, int pageSize, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.HistorySequencingOrder sequencingOrder)
      Create a new history retrieval operation.
      Parameters:
      xtdb - connectivity to XTDB
      instanceGUID - unique identifier of a metadata instance for which to retrieve history
      fromTime - the earliest point in time from which to retrieve historical versions of the entity (inclusive)
      toTime - the latest point in time from which to retrieve historical versions of the entity (exclusive)
      fromElement - starting element for paged results
      pageSize - the number of results to include per page
      sequencingOrder - Enum defining how the results should be ordered.
  • Method Details

    • getPreviousVersions

      protected List<xtdb.api.XtdbDocument> getPreviousVersions(xtdb.api.IXtdbDatasource db, String reference, Date earliest, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.HistorySequencingOrder order) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
      Retrieve the previous versions of the provided XTDB object, from an already-opened point-in-time view of the repository back to the earliest point in time defined by the 'earliest' parameter.
      Parameters:
      db - from which to retrieve the previous version
      reference - indicating the primary key of the object for which to retrieve the previous version
      earliest - the earliest version to retrieve
      order - indicating either chronological (forward) or reverse-chronological (backward) ordering of results
      Returns:
      List<XtdbDocument> with all versions of the XTDB object back to the earliest point specified, ordered as requested
      Throws:
      org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if any issue closing the lazy-evaluating cursor