Package org.ehrbase.aql.containment
Class ContainmentSet
- java.lang.Object
-
- org.ehrbase.aql.containment.ContainmentSet
-
public class ContainmentSet extends Object
Define the set of containments for a CONTAINS clauseContainment sets are associated with Set (boolean) operators and their relation with an enclosing set (inclusion). This structure define the set operations required at the query layer implementation. For example, in an SQL context, this will define set operation like: INTERSECT, UNION, EXCEPT.
Created by christian on 4/12/2016.
-
-
Constructor Summary
Constructors Constructor Description ContainmentSet(int serial, Containment enclosing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(String operator)voidadd(Containment containment)voidaddAll(List<Containment> containments)org.apache.commons.collections4.set.ListOrderedSet<Object>getContainmentList()ContainmentgetEnclosing()ContainmentSetgetParentSet()booleanisEmpty()voidsetParentSet(ContainmentSet parentSet)intsize()StringtoString()
-
-
-
Constructor Detail
-
ContainmentSet
public ContainmentSet(int serial, Containment enclosing)
-
-
Method Detail
-
add
public void add(Containment containment)
-
addAll
public void addAll(List<Containment> containments)
-
add
public void add(String operator)
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
setParentSet
public void setParentSet(ContainmentSet parentSet)
-
getContainmentList
public org.apache.commons.collections4.set.ListOrderedSet<Object> getContainmentList()
-
getParentSet
public ContainmentSet getParentSet()
-
getEnclosing
public Containment getEnclosing()
-
-