Package org.ehrbase.aql.containment
Class ContainPropositions
java.lang.Object
org.ehrbase.aql.containment.ContainPropositions
Handles and evaluation contain proposition:
Simple contain chain (e.g. CONTAINS [...] CONTAINS [...]...) are evaluated for existence of paths within defined templates
Complex contain (expressed as logical expressions of Simple Contains) are evaluated as set operation (intersection, union. disjunction)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidevaluate(KnowledgeCacheService knowledgeCache) evaluate the set of proposition IN-ORDER.booleanvoidput(String key, ContainsCheck containsCheck) booleantrue if this expression is for a simple COMPOSITION containment (e.g.returns the list of templates for the expression
-
Constructor Details
-
ContainPropositions
-
-
Method Details
-
put
-
get
-
evaluate
evaluate the set of proposition IN-ORDER. The results are given as: - a list of templates for which the propositions are satisfied - paths in containers for each identified template- Parameters:
knowledgeCache-
-
resolvedTemplates
returns the list of templates for the expression- Returns:
-
requiresTemplateWhereClause
public boolean requiresTemplateWhereClause()true if this expression is for a simple COMPOSITION containment (e.g. no embedded CONTAINs)- Returns:
-
hasContains
public boolean hasContains()
-