Package lupos.datastructures.queryresult

Examples of lupos.datastructures.queryresult.QueryResultDebug


          if (compareValue == 0) {
            newQueryResult.add(b);
          } else {
            // Send queryResult
            for (final OperatorIDTuple opId: this.succeedingOperators) {
              final QueryResultDebug qrDebug = new QueryResultDebug(newQueryResult, debugstep, this, opId.getOperator(), true);
              ((Operator) opId.getOperator()).processAllDebug(qrDebug, opId.getId(), debugstep);
            }
            newQueryResult = QueryResult.createInstance();
            newQueryResult.add(b);
          }
        } else {
          firstRun = false;
          newQueryResult.add(b);
        }
        oldBinding = b;
      }
      // Send queryResult
      for (final OperatorIDTuple opId: this.succeedingOperators) {
        final QueryResultDebug qrDebug = new QueryResultDebug(newQueryResult, debugstep, this, opId.getOperator(), true);
        ((Operator) opId.getOperator()).processAllDebug(qrDebug, opId.getId(), debugstep);
      }
      this.queryResults.clear();
    }
  }
View Full Code Here


    if (!this.operands[0].isEmpty() && !this.operands[1].isEmpty()) {
      final QueryResult qr = this.join(this.operands[0].getQueryResult(), this.operands[1].getQueryResult());
      if (qr != null) {
        this.realCardinality = qr.size();
        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);
        }
      }
    }
    this.operands[0].release();
View Full Code Here

        if (this.succeedingOperators.size() > 1) {
          result.materialize();
        }
        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);
        }
      } else {
        if (this.left instanceof DBMergeSortedBag) {
          ((DBMergeSortedBag<Bindings>) this.left).release();
View Full Code Here

          break;
        }
      }
      if (!flag) {
        for (final OperatorIDTuple opId : this.succeedingOperators) {
          final QueryResultDebug qrDebug = new QueryResultDebug(
              QueryResult
                  .createInstance(new MergeUnionIterator(
                      this.operandResults, this.succeedingOperators
                          .size() > 1, this.comparator)),
              debugstep, this, opId.getOperator(), true);
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

   * @param qr the queryresult ro be processed at the succeeding operators
   * @param debugstep the object for logging debug steps
   */
  public void processAtSucceedingOperatorsDebug(final QueryResult qr, final DebugStep debugstep){
    for (final OperatorIDTuple succOperator : this.succeedingOperators) {
      ((Operator) succOperator.getOperator()).processAll(new QueryResultDebug(qr, debugstep, this, succOperator.getOperator(), true), succOperator.getId());
    }
  }
View Full Code Here

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

      if (this.isPipelineBreaker()) {
        debugstep.stepDeleteAll(this, opId.getOperator());
        ((Operator) opId.getOperator()).deleteAllDebug(opId.getId(),
            debugstep);
      } else {
        final QueryResultDebug qrDebug = new QueryResultDebug(opp,
            debugstep, this, opId.getOperator(), false);
        ((Operator) opId.getOperator()).deleteAllDebug(qrDebug, opId
            .getId(), debugstep);
      }
    }
View Full Code Here

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

      final DebugStep debugstep) {
    final QueryResult qr = QueryResult.createInstance(this.bindings.iterator());
    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);
    }
    this.bindings.clear();
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.