Package org.apache.drill.exec.planner.physical

Examples of org.apache.drill.exec.planner.physical.PlannerSettings


        context.getCurrentEndpoint();
        result = DrillbitEndpoint.getDefaultInstance();
        context.getActiveEndpoints();
        result = ImmutableList.of(DrillbitEndpoint.getDefaultInstance());
        context.getPlannerSettings();
        result = new PlannerSettings(sess);
        context.getOptions();
        result = sess;
        context.getConfig();
        result = config;
        context.getCache();
View Full Code Here


    this.queryId = queryId;
    this.drillbitContext = drllbitContext;
    this.workBus = drllbitContext.getWorkBus();
    this.session = session;
    this.timer = new Multitimer<>(QuerySetup.class);
    this.plannerSettings = new PlannerSettings(session.getOptions());
    this.plannerSettings.setNumEndPoints(this.getActiveEndpoints().size());
    this.table = new DrillOperatorTable(getFunctionRegistry());
  }
View Full Code Here

    ruleList.add(WriterPrule.INSTANCE);
    ruleList.add(PushLimitToTopN.INSTANCE);
    ruleList.add(UnionAllPrule.INSTANCE);
    // ruleList.add(UnionDistinctPrule.INSTANCE);
   
    PlannerSettings ps = qcontext.getPlannerSettings();
   
    if (ps.isHashAggEnabled()) {
      ruleList.add(HashAggPrule.INSTANCE);       
    }
   
    if (ps.isStreamAggEnabled()) {
      ruleList.add(StreamAggPrule.INSTANCE);       
    }
   
    if (ps.isHashJoinEnabled()) {
      ruleList.add(HashJoinPrule.INSTANCE);       
    }
   
    if (ps.isMergeJoinEnabled()) {
      ruleList.add(MergeJoinPrule.INSTANCE);       
    }
 
    return new DrillRuleSet(ImmutableSet.copyOf(ruleList));
  }
View Full Code Here

        context.getCurrentEndpoint();
        result = DrillbitEndpoint.getDefaultInstance();
        context.getActiveEndpoints();
        result = ImmutableList.of(DrillbitEndpoint.getDefaultInstance());
        context.getPlannerSettings();
        result = new PlannerSettings(queryOptions);
        context.getOptions();
        result = queryOptions;
        context.getConfig();
        result = config;
        context.getCache();
View Full Code Here

    this.drillbitContext = drllbitContext;
    this.workBus = drllbitContext.getWorkBus();
    this.session = session;
    this.timer = new Multitimer<>(QuerySetup.class);
    this.queryOptions = new QueryOptionManager(session.getOptions());
    this.plannerSettings = new PlannerSettings(queryOptions, getFunctionRegistry());
    this.plannerSettings.setNumEndPoints(this.getActiveEndpoints().size());
    this.table = new DrillOperatorTable(getFunctionRegistry());
  }
View Full Code Here

  }

  protected void doOnMatch(RelOptRuleCall call, DrillFilterRel filterRel, DrillProjectRel projectRel, DrillScanRel scanRel) {
    DrillRel inputRel = projectRel != null ? projectRel : scanRel;

    PlannerSettings settings = PrelUtil.getPlannerSettings(call.getPlanner());
    DirPathBuilder builder = new DirPathBuilder(filterRel, inputRel, filterRel.getCluster().getRexBuilder(), new FileSystemPartitionDescriptor(settings.getFsPartitionColumnLabel()));

    FormatSelection origSelection = (FormatSelection)scanRel.getDrillTable().getSelection();
    FormatSelection newSelection = splitFilter(origSelection, builder);

    if (origSelection == newSelection) {
View Full Code Here

    ruleList.add(StreamingWindowPrule.INSTANCE);
    ruleList.add(PushLimitToTopN.INSTANCE);
    ruleList.add(UnionAllPrule.INSTANCE);
    // ruleList.add(UnionDistinctPrule.INSTANCE);

    PlannerSettings ps = qcontext.getPlannerSettings();

    if (ps.isHashAggEnabled()) {
      ruleList.add(HashAggPrule.INSTANCE);
    }

    if (ps.isStreamAggEnabled()) {
      ruleList.add(StreamAggPrule.INSTANCE);
    }

    if (ps.isHashJoinEnabled()) {
      ruleList.add(HashJoinPrule.INSTANCE);
    }

    if (ps.isMergeJoinEnabled()) {
      ruleList.add(MergeJoinPrule.INSTANCE);
    }

    return new DrillRuleSet(ImmutableSet.copyOf(ruleList));
  }
View Full Code Here

        context.getCurrentEndpoint();
        result = DrillbitEndpoint.getDefaultInstance();
        context.getActiveEndpoints();
        result = ImmutableList.of(DrillbitEndpoint.getDefaultInstance());
        context.getPlannerSettings();
        result = new PlannerSettings(queryOptions, functionRegistry);
        context.getOptions();
        result = queryOptions;
        context.getConfig();
        result = config;
        context.getDrillOperatorTable();
View Full Code Here

    this.drillbitContext = drllbitContext;
    this.workBus = drllbitContext.getWorkBus();
    this.session = session;
    this.timer = new Multitimer<>(QuerySetup.class);
    this.queryOptions = new QueryOptionManager(session.getOptions());
    this.plannerSettings = new PlannerSettings(queryOptions);
    this.plannerSettings.setNumEndPoints(this.getActiveEndpoints().size());
    this.table = new DrillOperatorTable(getFunctionRegistry());
  }
View Full Code Here

    ruleList.add(WriterPrule.INSTANCE);
    ruleList.add(PushLimitToTopN.INSTANCE);
    ruleList.add(UnionAllPrule.INSTANCE);
    // ruleList.add(UnionDistinctPrule.INSTANCE);
   
    PlannerSettings ps = qcontext.getPlannerSettings();
   
    if (ps.isHashAggEnabled()) {
      ruleList.add(HashAggPrule.INSTANCE);       
    }
   
    if (ps.isStreamAggEnabled()) {
      ruleList.add(StreamAggPrule.INSTANCE);       
    }
   
    if (ps.isHashJoinEnabled()) {
      ruleList.add(HashJoinPrule.INSTANCE);       
    }
   
    if (ps.isMergeJoinEnabled()) {
      ruleList.add(MergeJoinPrule.INSTANCE);       
    }
 
    return new DrillRuleSet(ImmutableSet.copyOf(ruleList));
  }
View Full Code Here

TOP

Related Classes of org.apache.drill.exec.planner.physical.PlannerSettings

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.