1 22 23 package org.xquark.mediator.algebra; 24 25 import org.xquark.mediator.plan.*; 26 import org.xquark.mediator.runtime.MediatorException; 27 import org.xquark.xquery.parser.Variable; 28 import org.xquark.xquery.parser.XQueryExpression; 29 30 35 public class AlgUnion extends Algebra { 36 private static final String RCSRevision = "$Revision: 1.5 $"; 40 private static final String RCSName = "$Name: $"; 41 45 55 public AlgUnion(XQueryExpression expression, Variable var, AlgebraManager depmanager, boolean islet) throws MediatorException { 56 super(expression, var, depmanager, islet); 57 fillVarLists(); 58 } 59 60 64 72 public Operator createOperator(ExecutionPlan plan) throws MediatorException { 73 74 Operator operator = null; 76 77 if (algChildren != null) { 78 Operator[] operators = new Operator[algChildren.size()]; 79 for (int i = 0; i < algChildren.size(); i++) { 80 operators[i] = ((Algebra) algChildren.get(i)).createOperator(plan); 81 } 82 operator = new OpUnion(plan, operators); 83 } else 84 operator = new OpEval(plan, this, null, hasIdentifier); 85 operator.isLet(islet); 86 return operator; 87 } 88 89 public Object clone() throws CloneNotSupportedException { 90 AlgUnion newobj = (AlgUnion) super.clone(); 91 return newobj; 92 } 93 94 public void execute(ExecutionPlan plan) throws MediatorException { 95 } 96 97 } 101 | Popular Tags |