Examples of removePrecedingOperator()


Examples of lupos.engine.operators.BasicOperator.removePrecedingOperator()

        pre = pres.get(i);
        pre.removeSucceedingOperator(generate);
        for (int x = 0; x < succs.size(); x++) {
          pre.addSucceedingOperator(succs.get(x));
          succ = succs.get(x).getOperator();
          succ.removePrecedingOperator(pat);
          succ.addPrecedingOperator(pre);
        }
      }
    }
View Full Code Here

Examples of lupos.engine.operators.BasicOperator.removePrecedingOperator()

                  final HashSet<Variable> joinVars = new HashSet<Variable>(tp.getUnionVariables());
                  joinVars.retainAll(bi.getUnionVariables());
                  join.setIntersectionVariables(joinVars);
                  for(final OperatorIDTuple opID: bi.getSucceedingOperators()){
                    final BasicOperator suc = opID.getOperator();
                    suc.removePrecedingOperator(bi);
                    suc.addPrecedingOperator(join);
                  }
                  join.setSucceedingOperators(bi.getSucceedingOperators());
                  bi.setSucceedingOperator(new OperatorIDTuple(join, 0));
                  join.addPrecedingOperator(bi);
View Full Code Here

Examples of lupos.engine.operators.BasicOperator.removePrecedingOperator()

    // add the first operations of the inference operator graph to the operator graph of the query
    for(final OperatorIDTuple rootChild: new LinkedList<OperatorIDTuple>(rootInference.getSucceedingOperators())){
      rootInference.removeSucceedingOperator(rootChild);
      final BasicOperator rootChildOperator = rootChild.getOperator();
      rootChildOperator.removePrecedingOperator(rootInference);
      rootChildOperator.addPrecedingOperator(rootQuery);
      if(rootChildOperator instanceof InsertIndexScan) {
        // these operators are used to insert facts/triples => should occur as leftmost operators after the root such that they are evaluated first!
        final LinkedList<OperatorIDTuple> list = new LinkedList<OperatorIDTuple>(rootQuery.getSucceedingOperators());
        list.addFirst(rootChild);
View Full Code Here

Examples of lupos.engine.operators.BasicOperator.removePrecedingOperator()

                pre = pres.get(i);
                pre.removeSucceedingOperator(this.c);
                for (int x = 0; x < succs.size(); x++) {
                  pre.addSucceedingOperator(succs.get(x));
                  succ = succs.get(x).getOperator();
                  succ.removePrecedingOperator(this.p);
                  succ.addPrecedingOperator(pre);
                }
              }
            }
    }
View Full Code Here

Examples of lupos.engine.operators.BasicOperator.removePrecedingOperator()

                pre = pres.get(i);
                pre.removeSucceedingOperator(this.g);
                for (int x = 0; x < succs.size(); x++) {
                  pre.addSucceedingOperator(succs.get(x));
                  succ = succs.get(x).getOperator();
                  succ.removePrecedingOperator(this.t);
                  succ.addPrecedingOperator(pre);
                }
              }
            }
    }
View Full Code Here

Examples of lupos.engine.operators.BasicOperator.removePrecedingOperator()

    BasicOperator succ;
    for (int i = 0; i < succs.size(); i++) {
      succ = succs.get(i).getOperator();
      succ.addPrecedingOperator(replaceLitUnder);
      succ.removePrecedingOperator(optional);
    }

    rootOperator.deleteParents();
    rootOperator.setParents();
    rootOperator.detectCycles();
View Full Code Here

Examples of lupos.engine.operators.BasicOperator.removePrecedingOperator()

    // And all successors to all precessors
    for (int i = 0; i < succs.size(); i++) {
      for (int a = 0; a < pres.size(); a++) {
        succ = succs.get(i).getOperator();
        succ.addPrecedingOperator(pres.get(a));
        succ.removePrecedingOperator(replaceVar);
      }
    }

    rootOperator.deleteParents();
    rootOperator.setParents();
View Full Code Here

Examples of lupos.engine.operators.multiinput.Union.removePrecedingOperator()

      pre.addSucceedingOperator(new OperatorIDTuple(union, index));
      pre.removeSucceedingOperator(genAdd);
      union.addPrecedingOperator(pre);
    }

    union.removePrecedingOperator(genAdd);
    union.setSucceedingOperator(new OperatorIDTuple(genAdd, 0));

    genAdd.setPrecedingOperator(union);
    genAdd.setSucceedingOperators(succs);
View Full Code Here

Examples of lupos.engine.operators.multiinput.Union.removePrecedingOperator()

      pre = pres.get(i);
      union.addPrecedingOperator(pre);
      pre.removeSucceedingOperator(replaceLit);
      pre.addSucceedingOperator(new OperatorIDTuple(union, index));
    }
    union.removePrecedingOperator(replaceLit);

    // ReplaceLit becomes the new sucessor of Union
    union.setSucceedingOperator(new OperatorIDTuple(replaceLit, 0));

    // ReplaceLit gets the joins old sucessors
View Full Code Here

Examples of lupos.engine.operators.multiinput.join.Join.removePrecedingOperator()

    for (final BasicOperator toMove : unionOperands) {
      Join joinNew;
      if (firstTime) {
        // use existing join operator
        joinNew = join;
        joinNew.removePrecedingOperator(union);
        firstTime = false;
      } else {
        // clone join operator plus its other operands
        joinNew = new Join();
        added.add(joinNew);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.