Class XTDBGraphQuery
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.model.search.XTDBQuery
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.model.search.XTDBGraphQuery
Captures the structure of a query against XTDB that spans the graph, and therefore could return
both relationships and entities together.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.model.search.XTDBQuery
conditions, CREATE_TIME, DOC_ID, rules, SORT_ASCENDING, SORT_DESCENDING, SORT_PROPERTY, UPDATE_TIME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntityLimiters
(List<String> entityTypeGUIDs, List<String> limitResultsByClassification, List<InstanceStatus> limitResultsByStatus) Add condition(s) to limit the resulting entities by the provided criteria.void
addRelationshipLimiters
(String rootEntityGUID, List<String> relationshipTypeGUIDs, List<InstanceStatus> limitResultsByStatus) Add condition(s) to limit the resulting relationships by the provided lists.protected List<clojure.lang.IPersistentCollection>
getClassificationConditions
(List<String> limitByClassifications) Add condition(s) to limit the resulting entities by the provided classifications.protected clojure.lang.PersistentVector
Add a condition to match the value of a property to a variable.protected clojure.lang.PersistentVector
getRelatedToCondition
(String literal) Add a condition to match the value of a property to a literal.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.model.search.XTDBQuery
addClassificationConditions, addConditions, addFindElement, addPropertyBasedSorting, addPropertyConditions, addRelationshipEndpointConditions, addSequencing, addStatusLimiters, addTypeCondition, getClassificationConditions, getQuery, getReferenceCondition, getStatusLimiters, getTypeCondition
-
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 relationshipsrelationshipTypeGUIDs
- of relationship type definition GUIDs by which to limit the resultslimitResultsByStatus
- 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 limitlimitResultsByClassification
- entity classifications by which to limitlimitResultsByStatus
- 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
Add a condition to match the value of a property to a literal.- Parameters:
literal
- to match- Returns:
- PersistentVector for the condition
-