Direct Known Subclasses:
FindRelationships, FindRelationshipsByPropertyValue, GetRelationshipsForEntity

public abstract class AbstractRelationshipSearchOperation extends AbstractSearchOperation
Base class that all search operations that retrieve entities should implement.
  • 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 XTDB
      typeGUID - unique identifier of a type definition by which to limit results
      fromElement - starting element for paged results
      limitResultsByStatus - list of statuses by which to limit results
      existingDB - the already-opened point-in-time from which to retrieve results
      sequencingProperty - the name of the property by which to sort results (only applicable when sorting by property)
      sequencingOrder - the mechanism to use for sorting results
      pageSize - the number of results to include per page
      userId - 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 repository
      RepositoryErrorException - on any error with the read operation, either closing the datasource or timing out