All Implemented Interfaces:
Serializable, Cloneable, QueryRef, GraphPatternGroupable, QueryModelNode, TupleExpr, VariableScopeChange

public class NJoin extends NTuple implements TupleExpr
A tuple expression that represents an nary-Join.
Author:
Andreas Schwarte
See Also:
  • Constructor Details

    • NJoin

      public NJoin(List<TupleExpr> args, QueryInfo queryInfo)
      Construct an nary-tuple. Note that the parentNode of all arguments is set to this instance.
      Parameters:
      args -
  • Method Details

    • visit

      public <X extends Exception> void visit(QueryModelVisitor<X> visitor) throws X
      Description copied from interface: QueryModelNode
      Visits this node. The node reports itself to the visitor with the proper runtime type.
      Specified by:
      visit in interface QueryModelNode
      Overrides:
      visit in class NTuple
      Throws:
      X extends Exception
    • clone

      public NJoin clone()
      Description copied from interface: QueryModelNode
      Returns a (deep) clone of this query model node. This method recursively clones the entire node tree, starting from this nodes.
      Specified by:
      clone in interface QueryModelNode
      Specified by:
      clone in interface TupleExpr
      Overrides:
      clone in class NTuple
      Returns:
      A deep clone of this query model node.
    • getJoinVariables

      public Set<String> getJoinVariables(int joinIndex)
      Returns the commons variables of the join with the given index.
      Parameters:
      joinIndex - the join index, starting with 1
      Returns:
      the set of join variables