Package lupos.datastructures.queryresult

Examples of lupos.datastructures.queryresult.QueryResult.materialize()


  @Override
  public Message preProcessMessage(final EndOfEvaluationMessage msg) {
    final QueryResult qr = this.getQueryResultForAggregatedFilter(this.queryResult);
    if (qr != null) {
      if (this.succeedingOperators.size() > 1) {
        qr.materialize();
      }
      for (final OperatorIDTuple opId: this.succeedingOperators) {
        opId.processAll(qr);
      }
    }
View Full Code Here


  public Message preProcessMessageDebug(final EndOfEvaluationMessage msg,
      final DebugStep debugstep) {
    final QueryResult qr = this.getQueryResultForAggregatedFilter(this.queryResult);
    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
View Full Code Here

  @Override
  public Message preProcessMessage(final EndOfEvaluationMessage msg) {
    final QueryResult qr = getQueryResultForAggregatedFilter(this.np, this.queryResult, this.aggregationFunctions, this.evaluationVisitor);
    if (qr != null) {
      if (this.succeedingOperators.size() > 1) {
        qr.materialize();
      }
      for (final OperatorIDTuple opId : this.succeedingOperators) {
        opId.processAll(qr);
      }
    }
View Full Code Here

  public Message preProcessMessageDebug(final EndOfEvaluationMessage msg,
      final DebugStep debugstep) {
    final QueryResult qr = getQueryResultForAggregatedFilter(this.np, this.queryResult, this.aggregationFunctions, this.evaluationVisitor);
    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
View Full Code Here

                this.close();
              }
            });

        if (this.succeedingOperators.size() > 1) {
          result.materialize();
        }
        for (final OperatorIDTuple opId : this.succeedingOperators) {
          opId.processAll(result);
        }
      } else {
View Full Code Here

                this.close();
              }
            });

        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);
        }
View Full Code Here

      if (!this.operands[1].isEmpty()) {
        return this.joinOptionalResult(this.operands[0].getQueryResult(), this.operands[1].getQueryResult());
      } else {
        final OptionalResult or = new OptionalResult();
        final QueryResult left = this.operands[0].getQueryResult();
        left.materialize();
        or.setJoinPartnerFromLeftOperand(left);
        or.setJoinResult(left);
      }
    }
    return null;
View Full Code Here

  }

  public void computeDebugStep(final DebugStep debugstep){
    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

          }

          final String fQuery = FederatedQueryFetchAsNeededWithCache.this.toStringQuery(bindingsTemp);
          if (!FederatedQueryFetchAsNeededWithCache.this.endpoint.isVariable()) {
            final QueryResult queryResult = QueryResult.createInstance(new IteratorQueryResultAndOneBindings(Client.submitQuery(((URILiteral)FederatedQueryFetchAsNeededWithCache.this.endpoint).getString(), fQuery, FederatedQueryFetchAsNeededWithCache.this.bindingsFactory), bindingsTemp));
            queryResult.materialize();
            FederatedQueryFetchAsNeededWithCache.this.cache.put(bindingsKey, queryResult);
            return queryResult.iterator();
          } else {
            Literal endpointURI = bindingsTemp.get((Variable) FederatedQueryFetchAsNeededWithCache.this.endpoint);
            if (endpointURI instanceof LazyLiteral) {
View Full Code Here

            if (endpointURI instanceof LazyLiteral) {
              endpointURI = ((LazyLiteral) endpointURI).getLiteral();
            }
            if (endpointURI instanceof URILiteral) {
              final QueryResult queryResult = QueryResult.createInstance(new IteratorQueryResultAndOneBindings(Client.submitQuery(((URILiteral) endpointURI).getString(), fQuery, FederatedQueryFetchAsNeededWithCache.this.bindingsFactory), bindingsTemp));
              queryResult.materialize();
              FederatedQueryFetchAsNeededWithCache.this.cache.put(bindingsKey, queryResult);
              return queryResult.iterator();
            } else {
              // ignore or error message?
            }
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.