Class XtdbGraphQuery
java.lang.Object
org.odpi.egeria.connectors.juxt.xtdb.model.search.XtdbQuery
org.odpi.egeria.connectors.juxt.xtdb.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
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntityLimiters(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.PersistentVectorAdd 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
-
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<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
Add a condition to match the value of a property to a literal.- Parameters:
literal- to match- Returns:
- PersistentVector for the condition
-