Package lupos.engine.operators.singleinput.sort

Examples of lupos.engine.operators.singleinput.sort.Sort


  public void insertFederatedQueryOperator(final ASTService node, final OperatorConnection connection){
    SeveralSucceedingOperators sso = new SeveralSucceedingOperators();
    BasicOperator federatedQuery = this.getFederatedQuery(node);
    Node child0 = node.jjtGetChild(0);
    if(child0 instanceof ASTVar){
      Sort sort = new Sort();
      LinkedList<Variable> listOfVars = new LinkedList<Variable>();
      listOfVars.add(new Variable(((ASTVar)child0).getName()));
      ComparatorVariables comparator = new ComparatorVariables(listOfVars);
      sort.setComparator(comparator);
      Group group = new Group(comparator);
      sort.addSucceedingOperator(group);
      group.addSucceedingOperator(federatedQuery);
      sso.addSucceedingOperator(sort);
    } else {
      sso.addSucceedingOperator(federatedQuery);
    }
View Full Code Here


    this.visitQueryNode(node, connection, null);
  }

  @Override
  public void visit(final ASTOrderConditions node, final OperatorConnection connection) {
    connection.connectAndSetAsNewOperatorConnection(new Sort(node));
  }
View Full Code Here

        // TODO This is according to the SPARQL 1.1 specification, but often the restrictions are nonsense...
        // this.groupNegativeSyntaxTest(childi, node);
        final Group g = new Group(childi);
        connection.connectAndSetAsNewOperatorConnection(g, 0);

        final Sort sort = new Sort(childi);
        connection.connectAndSetAsNewOperatorConnection(sort, 0);
      }
    }

    // Dealing with the FROM (NAMED) clauses
View Full Code Here

          connection.setOperatorConnection(opt, 0);
        } else if (n instanceof ASTMinus) {
          Minus minus = null;
          if (useSortedMinus) {
            // insert sort operator to preprocess for SortedMinus
            final Sort sortLeft = new Sort();
            final Sort sortRight = new Sort();
            minus = new SortedMinus(sortLeft, sortRight);

            connection.connectAndSetAsNewOperatorConnection(minus, 1);
            connection.connectAndSetAsNewOperatorConnection(sortRight);
            n.accept(this, connection, graphConstraint);
View Full Code Here

TOP

Related Classes of lupos.engine.operators.singleinput.sort.Sort

Copyright © 2018 www.massapicom. 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.