Enum Class PathInfo.JoinMode

java.lang.Object
java.lang.Enum<PathInfo.JoinMode>
org.ehrbase.openehr.aqlengine.pathanalysis.PathInfo.JoinMode
All Implemented Interfaces:
Serializable, Comparable<PathInfo.JoinMode>, Constable
Enclosing class:
PathInfo

public static enum PathInfo.JoinMode extends Enum<PathInfo.JoinMode>
The number of (structure) children and if data is retrieved determines how a path node needs to be joined.
ROOTnoChildoneChildmultipleChildren
dataROOTROOTROOT
no dataROOTROOT
sub-nodenoChildoneChildmultipleChildren
dataDATADATADATA
no dataINTERNAL_SINGLE_CHILDINTERNAL_FORK
  • Enum Constant Details

    • ROOT

      public static final PathInfo.JoinMode ROOT
      Root node stemming from the FROM clause. Is already "left-joined". Hence all children need to be left-joined.
    • DATA

      public static final PathInfo.JoinMode DATA
      Node that contributes data to the result; The number of children is secondary. The children need to be "left-joined" (P(⟕Cn)).
    • INTERNAL_SINGLE_CHILD

      public static final PathInfo.JoinMode INTERNAL_SINGLE_CHILD
      Internal node with just a single child. It does not directly contribute data to the result. It must only result in tuples when the child does. It can be joined with the child (P⋈C), or may, under some conditions, be omitted.
    • INTERNAL_FORK

      public static final PathInfo.JoinMode INTERNAL_FORK
      Internal node with multiple children. It does not directly contribute data to the result. It must only result in tuples when at least one of the children does.
      This may be considered an inner join of the parent with the result of outer joining all children: P⋈(⟗i=1n(Ci))
  • Method Details

    • values

      public static PathInfo.JoinMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PathInfo.JoinMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null