Class ContainmentSet

java.lang.Object
org.ehrbase.aql.containment.ContainmentSet

public class ContainmentSet extends Object
Define the set of containments for a CONTAINS clause

Containment 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 Details

    • ContainmentSet

      public ContainmentSet(int serial, Containment enclosing)
  • Method Details

    • add

      public void add(Containment containment)
    • addAll

      public void addAll(List<Containment> containments)
    • add

      public void add(String operator)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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()