Class FindRelationships

    • Constructor Detail

      • FindRelationships

        public FindRelationships​(XtdbOMRSRepositoryConnector xtdb,
                                 String relationshipTypeGUID,
                                 List<String> relationshipSubtypeGUIDs,
                                 org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.search.SearchProperties matchProperties,
                                 int fromRelationshipElement,
                                 List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus,
                                 Date asOfTime,
                                 String sequencingProperty,
                                 org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.SequencingOrder sequencingOrder,
                                 int pageSize,
                                 String userId)
        Create a new 'findRelationships' executable.
        Parameters:
        xtdb - connectivity to XTDB
        relationshipTypeGUID - see XtdbOMRSMetadataCollection#findRelationships
        relationshipSubtypeGUIDs - see XtdbOMRSMetadataCollection#findRelationships
        matchProperties - see XtdbOMRSMetadataCollection#findRelationships
        fromRelationshipElement - see XtdbOMRSMetadataCollection#findRelationships
        limitResultsByStatus - see XtdbOMRSMetadataCollection#findRelationships
        asOfTime - see XtdbOMRSMetadataCollection#findRelationships
        sequencingProperty - see XtdbOMRSMetadataCollection#findRelationships
        sequencingOrder - see XtdbOMRSMetadataCollection#findRelationships
        pageSize - see XtdbOMRSMetadataCollection#findRelationships
        userId - of the user running the query
        See Also:
        XtdbOMRSMetadataCollection.findRelationships(String, String, List, SearchProperties, int, List, Date, String, SequencingOrder, int)
    • Method Detail

      • runQuery

        protected Collection<List<?>> runQuery​(xtdb.api.IXtdbDatasource db)
                                        throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException,
                                               TimeoutException,
                                               org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
        Interface that must be implemented to actually execute the query logic.
        Specified by:
        runQuery in class AbstractSearchOperation
        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 repository
        TimeoutException - if the query times out
        org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - if there is any issue iterating through the results