Package lupos.engine.operators.singleinput

Examples of lupos.engine.operators.singleinput.Result.addApplication()


  public BasicOperator deserialize(final JSONObject serializedOperator) throws JSONException {
    final Result result = new Result();
    if (this.application == null) {
      this.application = new CollectResult(false);
    }
    result.addApplication(this.application);
    return result;

  }
}
View Full Code Here


                  System.out.println("Evaluate query ...");

                  if (evaluator instanceof CommonCoreQueryEvaluator || evaluator instanceof BasicIndexRuleEvaluator) {
                    final CollectRIFResult crr = new CollectRIFResult(false);
                    final Result resultOperator = (evaluator instanceof CommonCoreQueryEvaluator)?((CommonCoreQueryEvaluator<Node>)evaluator).getResultOperator(): ((BasicIndexRuleEvaluator)evaluator).getResultOperator();
                    resultOperator.addApplication(crr);
                    evaluator.evaluateQuery();
                    this.resultQueryEvaluator = crr.getQueryResults();
                  } else {
                    this.resultQueryEvaluator = new QueryResult[1];
                    this.resultQueryEvaluator[0] = evaluator.getResult();
View Full Code Here

    final Map<Variable, Integer> oldBindingsFactory = evaluator_param.getBindingsFactory().getPosVariables();

    final Result result = setupEvaluator(evaluator_param, (Root) collection.deepClone());

    final CollectResult cr = new CollectResult(false);
    result.addApplication(cr);

    evaluator_param.logicalOptimization();
    evaluator_param.physicalOptimization();
    try {
      evaluator_param.evaluateQuery();
View Full Code Here

    final Result result = setupEvaluator(evaluator, collectionClone);

    result.clearApplications();
    final NonEmptyApplication application = new NonEmptyApplication();
    result.addApplication(application);

    evaluator.logicalOptimization();
    evaluator.physicalOptimization();
    try {
      evaluator.evaluateQuery();
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.