Package lupos.engine.operators

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


    // 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

                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

                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

    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

    // 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

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.