Package lupos.datastructures.queryresult

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


              .serialize(AsynchronSubgraphContainer.this
                  .getRootOfSubgraph(), 0);
          final QueryResult result = AsynchronSubgraphContainer.this.subgraphExecutor
              .evaluate(AsynchronSubgraphContainer.this.getKey(),
                  serializedGraph.toString(),bindingsFactory);
          result.materialize();
          result.materialize(); // just for now read all from the
                      // stream sent by the endpoint,
                      // otherwise it may be blocked! (may
                      // be removed if each endpoint can
                      // work completely in parallel!)
View Full Code Here


                  .getRootOfSubgraph(), 0);
          final QueryResult result = AsynchronSubgraphContainer.this.subgraphExecutor
              .evaluate(AsynchronSubgraphContainer.this.getKey(),
                  serializedGraph.toString(),bindingsFactory);
          result.materialize();
          result.materialize(); // just for now read all from the
                      // stream sent by the endpoint,
                      // otherwise it may be blocked! (may
                      // be removed if each endpoint can
                      // work completely in parallel!)
         
View Full Code Here

    } catch (ExecutionException e) {
      result = null;
      e.printStackTrace();
    }
    // for now, forward the result to all succeeding's ....
    if (result != null) result.materialize();
    for (final OperatorIDTuple opId : this.succeedingOperators) {
      if (result != null)
        opId.processAll(result);
    }
    if (executor != null) executor.shutdown();
View Full Code Here

  public QueryResult process(final Dataset dataset) {
    final SubgraphContainerFormatter serializer = new SubgraphContainerFormatter();
    try {
      final JSONObject serializedGraph = serializer.serialize(this.rootNodeOfSubGraph, 0);
      final QueryResult result = this.subgraphExecutor.evaluate(this.key,  serializedGraph.toString(),this.bindingsFactory);
      result.materialize(); // just for now read all from the stream sent by the endpoint, otherwise it may be blocked! (may be removed if each endpoint can work completely in parallel!)
      return result;
    } catch (final JSONException e) {
      System.err.println(e);
      e.printStackTrace();
      return null;
View Full Code Here

      IndexOnLeftOperandJoin.indexQueryResult(this.operands[0].getQueryResult(), this.intersectionVariables, leftOperandsData, cartesianProduct);

      final QueryResult result = QueryResult.createInstance(new JoinIterator(this.intersectionVariables, this.operands[1].getQueryResult(), leftOperandsData, cartesianProduct));

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

      for (final OperatorIDTuple opId : this.succeedingOperators) {
        opId.processAll(result);
      }
View Full Code Here

      IndexOnLeftOperandJoin.indexQueryResult(this.operands[0].getQueryResult(), this.intersectionVariables, leftOperandsData, cartesianProduct);

      final QueryResult result = QueryResult.createInstance(new JoinIterator(this.intersectionVariables, this.operands[1].getQueryResult(), leftOperandsData, cartesianProduct));

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

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

    this.endOfStreamMsg = msg;
    if (!this.operands[0].isEmpty() && !this.operands[1].isEmpty()) {
      final QueryResult qr = join();
      if (qr != null) {
        if (this.succeedingOperators.size() > 1)
          qr.materialize();
        for (final OperatorIDTuple opId : this.succeedingOperators) {
          opId.processAll(qr);
        }
      }
    }
View Full Code Here

    this.endOfStreamMsg = msg;
    if (!this.operands[0].isEmpty() && !this.operands[1].isEmpty()) {
      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

  }

  private void computeResult(){
    final QueryResult qr = QueryResult.createInstance(this.getIterator());
    if (this.succeedingOperators.size() > 1) {
      qr.materialize();
    }
    for (final OperatorIDTuple opId : this.succeedingOperators) {
      opId.processAll(qr);
    }
  }
View Full Code Here

  }

  private void computeResultDebug(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
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.