Class XtdbGraphQuery


  • public class XtdbGraphQuery
    extends XtdbQuery
    Captures the structure of a query against XTDB that spans the graph, and therefore could return both relationships and entities together.
    • Field Detail

      • RELATIONSHIP

        public static final clojure.lang.Symbol RELATIONSHIP
    • Constructor Detail

      • XtdbGraphQuery

        public XtdbGraphQuery()
        Default constructor for a new query.
    • Method Detail

      • addRelationshipLimiters

        public void addRelationshipLimiters​(String rootEntityGUID,
                                            List<String> relationshipTypeGUIDs,
                                            List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus)
        Add condition(s) to limit the resulting relationships by the provided lists.
        Parameters:
        rootEntityGUID - by which to narrow the relationships
        relationshipTypeGUIDs - of relationship type definition GUIDs by which to limit the results
        limitResultsByStatus - of relationship statuses by which to limit the results
      • addEntityLimiters

        public void addEntityLimiters​(List<String> entityTypeGUIDs,
                                      List<String> limitResultsByClassification,
                                      List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceStatus> limitResultsByStatus)
        Add condition(s) to limit the resulting entities by the provided criteria.
        Parameters:
        entityTypeGUIDs - entity type definitions by which to limit
        limitResultsByClassification - entity classifications by which to limit
        limitResultsByStatus - of entity statuses by which to limit the results
      • getClassificationConditions

        protected List<clojure.lang.IPersistentCollection> getClassificationConditions​(List<String> limitByClassifications)
        Add condition(s) to limit the resulting entities by the provided classifications.
        Parameters:
        limitByClassifications - of classifications on which to limit (must be at least one)
        Returns:
        List<IPersistentCollection> of the conditions
      • getRelatedToCondition

        protected clojure.lang.PersistentVector getRelatedToCondition()
        Add a condition to match the value of a property to a variable.
        Returns:
        PersistentVector for the condition
      • getRelatedToCondition

        protected clojure.lang.PersistentVector getRelatedToCondition​(String literal)
        Add a condition to match the value of a property to a literal.
        Parameters:
        literal - to match
        Returns:
        PersistentVector for the condition