java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.model.search.XTDBQuery
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.model.search.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 Details

    • RELATIONSHIP

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

    • XTDBGraphQuery

      public XTDBGraphQuery()
      Default constructor for a new query.
  • Method Details

    • addRelationshipLimiters

      public void addRelationshipLimiters(String rootEntityGUID, List<String> relationshipTypeGUIDs, List<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<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