Package lupos.datastructures.queryresult

Examples of lupos.datastructures.queryresult.QueryResultDebug


      if(this.succeedingOperators.size()>1){
        result.materialize();
      }

      for (final OperatorIDTuple opId : this.succeedingOperators) {
        opId.processAllDebug(new QueryResultDebug(result, debugstep, this, opId.getOperator(), true), debugstep);
      }
    }
    return msg;
  }
View Full Code Here


      final QueryResult qr = join();
      if (qr != null) {
        if (this.succeedingOperators.size() > 1)
          qr.materialize();
        for (final OperatorIDTuple opId : this.succeedingOperators) {
          final QueryResultDebug qrDebug = new QueryResultDebug(qr,
              debugstep, this, opId.getOperator(), true);
          ((Operator) opId.getOperator()).processAllDebug(qrDebug,
              opId.getId(), debugstep);
        }
      }
View Full Code Here

          result.add(leftItem);
        }
      }

      for (final OperatorIDTuple opId : this.succeedingOperators) {
        opId.processAllDebug(new QueryResultDebug(result, debugstep, this, opId.getOperator(), true), debugstep);
      }
    } else if (!this.operands[0].isEmpty()) { // happens when the group constraint which follows the minus is empty
      for (final OperatorIDTuple opId : this.succeedingOperators) {
        opId.processAllDebug(this.operands[0].getQueryResult(), debugstep);
      }
View Full Code Here

        if (or.getJoinResult() != null && or.getJoinResult().size() > 0) {
          if (this.succeedingOperators.size() > 1) {
            or.getJoinResult().materialize();
          }
          for (final OperatorIDTuple opId : this.succeedingOperators) {
            final QueryResultDebug qrDebug = new QueryResultDebug(
                or.getJoinResult(), debugstep, this, opId
                    .getOperator(), true);
            ((Operator) opId.getOperator()).processAllDebug(
                qrDebug, opId.getId(), debugstep);
          }
        }
      }
    }
    if (this.notJoinedFromLeftOperand != null) {
      if (this.joinedFromLeftOperand != null) {
        this.notJoinedFromLeftOperand.removeAll(this.joinedFromLeftOperand);
        if (delete) {
          this.joinedFromLeftOperand.release();
          this.joinedFromLeftOperand = null;
        }
      }
      if (this.succeedingOperators.size() > 1) {
        this.notJoinedFromLeftOperand.materialize();
      }
      for (final OperatorIDTuple opId : this.succeedingOperators) {
        final QueryResultDebug qrDebug = new QueryResultDebug(
            this.notJoinedFromLeftOperand, debugstep, this, opId
                .getOperator(), true);
        ((Operator) opId.getOperator()).processAllDebug(qrDebug, opId
            .getId(), debugstep);
      }
View Full Code Here

      final DebugStep debugstep) {
    if (this.left != null && this.right == null) {
      if (this.succeedingOperators.size() > 1)
        this.left.materialize();
      for (final OperatorIDTuple opId : this.succeedingOperators) {
        final QueryResultDebug qrDebug = new QueryResultDebug(this.left,
            debugstep, this, opId.getOperator(), true);
        ((Operator) opId.getOperator()).processAllDebug(qrDebug, opId
            .getId(), debugstep);
      }
    }
View Full Code Here

 
  @Override
  public Message preProcessMessageDebug(final EndOfEvaluationMessage msg,
      final DebugStep debugstep) {
    for (final OperatorIDTuple opId: this.succeedingOperators) {
      final QueryResultDebug qrDebug = new QueryResultDebug(this.list,
          debugstep, this, opId.getOperator(), true);
      ((Operator) opId.getOperator()).processAllDebug(qrDebug, opId
          .getId(), debugstep);
    }
    this.list = QueryResult.createInstance();
View Full Code Here

    final QueryResult qr = QueryResult.createInstance(this.getIterator());
    if (this.succeedingOperators.size() > 1) {
      qr.materialize();
    }
    for (final OperatorIDTuple opId : this.succeedingOperators) {
      final QueryResultDebug qrDebug = new QueryResultDebug(qr,
          debugstep, this, opId.getOperator(), true);
      ((Operator) opId.getOperator()).processAllDebug(qrDebug, opId
          .getId(), debugstep);
    }
  }
View Full Code Here

    if (qr != null) {
      if (this.succeedingOperators.size() > 1) {
        qr.materialize();
      }
      for (final OperatorIDTuple opId : this.succeedingOperators) {
        final QueryResultDebug qrDebug = new QueryResultDebug(qr,
            debugstep, this, opId.getOperator(), true);
        ((Operator) opId.getOperator()).processAllDebug(qrDebug, opId
            .getId(), debugstep);
      }
    }
View Full Code Here

  @Override
  public Message preProcessMessageDebug(final EndOfEvaluationMessage msg,
      final DebugStep debugstep) {
    QueryResult result = checkIfAlreadySorted(this._bindings.getQueryResult());
    for (final OperatorIDTuple opId : this.succeedingOperators) {
      final QueryResultDebug qrDebug = new QueryResultDebug(result,debugstep, this, opId.getOperator(), true);
      ((Operator) opId.getOperator()).processAllDebug(qrDebug, opId.getId(), debugstep);
    }
    this._bindings = new ParallelIteratorMultipleQueryResults();
    return msg;
  }
View Full Code Here

    if (qr != null) {
      if (this.succeedingOperators.size() > 1) {
        qr.materialize();
      }
      for (final OperatorIDTuple opId : this.succeedingOperators) {
        final QueryResultDebug qrDebug = new QueryResultDebug(qr,
            debugstep, this, opId.getOperator(), true);
        ((Operator) opId.getOperator()).processAllDebug(qrDebug, opId
            .getId(), debugstep);
      }
    }
View Full Code Here

TOP

Related Classes of lupos.datastructures.queryresult.QueryResultDebug

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.