Package lupos.engine.operators.messages

Examples of lupos.engine.operators.messages.StartOfEvaluationMessage


  @Override
  public long evaluateQuery() throws Exception {
    final CountResult cr = new CountResult();
    this.result.addApplication(cr);
    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


  @Override
  public long evaluateQueryDebugSteps(final DebugStep debugstep, final Application application)
  throws Exception {
    this.result.addApplication(application);
    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

        this.setBindingsVariablesBasedOnOperatorgraph();
      }
    }

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

        this.setBindingsVariablesBasedOnOperatorgraph();
      }
    }

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

   *
   * @param stream
   *            the root operator of the stream query
   */
  public void generateStream(final Stream stream) {
    stream.sendMessage(new StartOfEvaluationMessage());
    try {
      final Literal s = LiteralFactory.createURILiteral("<s>");
      final Literal p = LiteralFactory.createURILiteral("<p>");
      int i = 0;
      while (this.loop) {
View Full Code Here

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

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

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

    // evaluate subgraph!
    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;
View Full Code Here

      evaluator.logicalOptimization();
      evaluator.physicalOptimization();
      if (evaluator.getRootNode() instanceof Stream) {
        Stream stream = (Stream) evaluator.getRootNode();
        stream.addNotifyStreamResult(notifyStreamResult);
        stream.sendMessage(new StartOfEvaluationMessage());
        return stream;
      }
     
    } catch (Exception e) {
      System.err.println(e);
View Full Code Here

      evaluator.logicalOptimization();
      evaluator.physicalOptimization();
      if (evaluator.getRootNode() instanceof Stream) {
        Stream stream = (Stream) evaluator.getRootNode();
        stream.addNotifyStreamResult(notifyStreamResult);
        stream.sendMessage(new StartOfEvaluationMessage());
        return stream;
      }
     
    } catch (Exception e) {
      System.err.println(e);
View Full Code Here

TOP

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

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.