Class XtdbGraphQuery
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.model.search.XtdbQuery
-
- org.odpi.egeria.connectors.juxt.xtdb.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 Summary
Fields Modifier and Type Field Description static clojure.lang.SymbolRELATIONSHIP-
Fields inherited from class org.odpi.egeria.connectors.juxt.xtdb.model.search.XtdbQuery
conditions, CREATE_TIME, DOC_ID, rules, SORT_ASCENDING, SORT_DESCENDING, SORT_PROPERTY, UPDATE_TIME
-
-
Constructor Summary
Constructors Constructor Description XtdbGraphQuery()Default constructor for a new query.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntityLimiters(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.voidaddRelationshipLimiters(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.protected List<clojure.lang.IPersistentCollection>getClassificationConditions(List<String> limitByClassifications)Add condition(s) to limit the resulting entities by the provided classifications.protected clojure.lang.PersistentVectorgetRelatedToCondition()Add a condition to match the value of a property to a variable.protected clojure.lang.PersistentVectorgetRelatedToCondition(String literal)Add a condition to match the value of a property to a literal.-
Methods inherited from class org.odpi.egeria.connectors.juxt.xtdb.model.search.XtdbQuery
addClassificationConditions, addConditions, addFindElement, addPropertyBasedSorting, addPropertyConditions, addRelationshipEndpointConditions, addSequencing, addStatusLimiters, addTypeCondition, getClassificationConditions, getQuery, getReferenceCondition, getStatusLimiters, getTypeCondition
-
-
-
-
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 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<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 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
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
-
-