Package org.ehrbase.aql.containment
Class ContainPropositions
- java.lang.Object
-
- org.ehrbase.aql.containment.ContainPropositions
-
public class ContainPropositions extends Object
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 Constructor Description ContainPropositions(IdentifierMapper identifierMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidevaluate(KnowledgeCacheService knowledgeCache)evaluate the set of proposition IN-ORDER.ContainsCheckget(String key)booleanhasContains()voidput(String key, ContainsCheck containsCheck)booleanrequiresTemplateWhereClause()true if this expression is for a simple COMPOSITION containment (e.g.Set<String>resolvedTemplates()returns the list of templates for the expression
-
-
-
Constructor Detail
-
ContainPropositions
public ContainPropositions(IdentifierMapper identifierMapper)
-
-
Method Detail
-
put
public void put(String key, ContainsCheck containsCheck)
-
get
public ContainsCheck get(String key)
-
evaluate
public void evaluate(KnowledgeCacheService knowledgeCache)
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
public Set<String> 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()
-
-