Package lupos.engine.operators.messages

Examples of lupos.engine.operators.messages.EndOfEvaluationMessage


    final Date a = new Date();
    this.rootNode.sendMessage(new StartOfEvaluationMessage());
    for(final URILiteral in: this.defaultGraphs) {
      CommonCoreQueryEvaluator.readTriples(this.type, in.openStream(), (TripleConsumer) this.rootNode);
    }
    this.rootNode.sendMessage(new EndOfEvaluationMessage());
    return ((new Date()).getTime() - a.getTime());
  }
View Full Code Here


    final Date a = new Date();
    this.rootNode.sendMessageDebug(new StartOfEvaluationMessage(), debugstep);
    for(final URILiteral in: this.defaultGraphs) {
      CommonCoreQueryEvaluator.readTriples(this.type, in.openStream(), (TripleConsumer) this.rootNode);
    }
    this.rootNode.sendMessageDebug(new EndOfEvaluationMessage(), debugstep);
    return ((new Date()).getTime() - a.getTime());
  }
View Full Code Here

    }

    final Date a = new Date();
    this.root.sendMessage(new StartOfEvaluationMessage());
    this.root.startProcessing();
    this.root.sendMessage(new EndOfEvaluationMessage());
    final long time = ((new Date()).getTime() - a.getTime());

//    System.out.println("Number of results:" + cr.getNumberResults());
    if (instanceClass != null) {
      Bindings.instanceClass = instanceClass;
View Full Code Here

    final Date a = new Date();
    this.root.sendMessageDebug(new StartOfEvaluationMessage(),
        debugstep);
    this.root.startProcessingDebug(debugstep);
    this.root.sendMessageDebug(new EndOfEvaluationMessage(),
        debugstep);
    final long time = ((new Date()).getTime() - a.getTime());

    if (instanceClass != null) {
      Bindings.instanceClass = instanceClass;
View Full Code Here

    root.sendMessage(new BindingsFactoryMessage(bindingsFactory));

    // evaluate subgraph!
    root.sendMessage(new StartOfEvaluationMessage());
    root.startProcessing();
    root.sendMessage(new EndOfEvaluationMessage());

    if (instanceClass != null) {
      Bindings.instanceClass = instanceClass;
    }
    return new Tuple<QueryResult, Set<Variable>>(collectResult.getResult(), new HashSet<Variable>(LocalExecutor.getVariables(root)));
View Full Code Here

    final BindingsFactory bindingsFactory= BindingsFactory.createBindingsFactory(CommonCoreQueryEvaluator.getAllVariablesOfQuery(root));
    root.sendMessage(new BindingsFactoryMessage(bindingsFactory));

    root.sendMessage(new StartOfEvaluationMessage());
    root.startProcessing();
    root.sendMessage(new EndOfEvaluationMessage());

    if (instanceClass != null) {
      Bindings.instanceClass = instanceClass;
    }
    //Result is back ..
View Full Code Here

   * @param sub
   */
  private void removeStream(Subscription sub) {
    Stream stream = this.streamMap.get(sub);
    if(stream != null) {
      stream.sendMessage(new EndOfEvaluationMessage());
      this.streamMap.remove(sub);
    }
  }
View Full Code Here

   * @param sub
   */
  private void removeStream(Subscription sub) {
    Stream stream = this.streamMap.get(sub);
    if(stream != null) {
      stream.sendMessage(new EndOfEvaluationMessage());
      this.streamMap.remove(sub);
    }
  }
View Full Code Here

    return msg;
  }

  @Override
  public Message preProcessMessage(final ComputeIntermediateResultMessage msg) {
    preProcessMessage(new EndOfEvaluationMessage());
    return msg;
  }
View Full Code Here

 
  @Override
  public Message preProcessMessageDebug(
      final ComputeIntermediateResultMessage msg,
      final DebugStep debugstep) {
    preProcessMessageDebug(new EndOfEvaluationMessage(), debugstep);
    return msg;
  }
View Full Code Here

TOP

Related Classes of lupos.engine.operators.messages.EndOfEvaluationMessage

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.