Package org.apache.drill.exec.ref

Examples of org.apache.drill.exec.ref.ReferenceInterpreter


            org.junit.Assert.assertEquals("Edge between constant operator and sink not recognized.",
                    plan.getGraph().getRoots().toString(), "[Store [memo=output sink]]");

           
            IteratorRegistry ir = new IteratorRegistry();
            ReferenceInterpreter i = new ReferenceInterpreter(plan, ir, new BasicEvaluatorFactory(ir), new RSERegistry(config));
            i.setup();
            Collection<RunOutcome> outcomes = i.run();

            for(RunOutcome outcome : outcomes){
                System.out.println("============");
                System.out.println(outcome);
                if(outcome.outcome == RunOutcome.OutcomeType.FAILED && outcome.exception != null){
View Full Code Here


  /** Runs the plan as a background task. */
  Future<Collection<RunOutcome>> runPlan(CompletionService<Collection<RunOutcome>> service) {
    IteratorRegistry ir = new IteratorRegistry();
    DrillConfig config = DrillConfig.create();
    config.setSinkQueues(0, queue);
    final ReferenceInterpreter i = new ReferenceInterpreter(plan, ir, new BasicEvaluatorFactory(ir), new RSERegistry(
        config));
    try {
      i.setup();
    } catch (IOException e) {
      logger.error("IOException during query", e);
      throw new RuntimeException(e);
    }
    return service.submit(new Callable<Collection<RunOutcome>>() {
      @Override
      public Collection<RunOutcome> call() throws Exception {
        Collection<RunOutcome> outcomes = i.run();

        for (RunOutcome outcome : outcomes) {
          System.out.println("============");
          System.out.println(outcome);
          if (outcome.outcome == RunOutcome.OutcomeType.FAILED && outcome.exception != null) {
View Full Code Here

  Future<Collection<RunOutcome>> runRefInterpreterPlan(CompletionService<Collection<RunOutcome>> service) {
    LogicalPlan parsedPlan = LogicalPlan.parse(DrillConfig.create(), plan);
    IteratorRegistry ir = new IteratorRegistry();
    DrillConfig config = DrillConfig.create();
    config.setSinkQueues(0, queue);
    final ReferenceInterpreter i = new ReferenceInterpreter(parsedPlan, ir, new BasicEvaluatorFactory(ir),
        new RSERegistry(config));
    try {
      i.setup();
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
    return service.submit(new Callable<Collection<RunOutcome>>() {
      @Override
      public Collection<RunOutcome> call() throws Exception {
        Collection<RunOutcome> outcomes = i.run();

        for (RunOutcome outcome : outcomes) {
          System.out.println("============");
          System.out.println(outcome);
          if (outcome.outcome == RunOutcome.OutcomeType.FAILED && outcome.exception != null) {
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.ref.ReferenceInterpreter

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.