Package org.apache.calcite.tools
Class Programs
java.lang.Object
org.apache.calcite.tools.Programs
Utilities for creating 
Programs.- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ProgramProgram that converts filters and projects toCalcs.static final com.google.common.collect.ImmutableList<RelOptRule>Deprecated.static final com.google.common.collect.ImmutableSet<RelOptRule>static final ProgramProgram that expands sub-queries.
- 
Method SummaryModifier and TypeMethodDescriptionstatic Programcalc(RelMetadataProvider metadataProvider) static Programconditional(Predicate<RelNode> predicate, Program program) Creates a program that executes if a predicate is true.static ProgramDeprecated.static Programhep(Iterable<? extends RelOptRule> rules, boolean noDag, RelMetadataProvider metadataProvider) Creates a program that executes a list of rules in a HEP planner.static ProgramheuristicJoinOrder(Iterable<? extends RelOptRule> rules, boolean bushy, int minJoinCount) Creates a program that invokes heuristic join-order optimization (viaJoinToMultiJoinRule,MultiJoinandLoptOptimizeJoinRule) if there are 6 or more joins (7 or more relations).Creates a list of programs based on a list of rule sets.Creates a list of programs based on an array of rule sets.static Programmeasure(RelMetadataProvider metadataProvider) static Programof(HepProgram hepProgram, boolean noDag, RelMetadataProvider metadataProvider) Creates a program that executes aHepProgram.static ProgramCreates a program that executes a rule set.static ProgramofRules(Iterable<? extends RelOptRule> rules) Creates a program from a list of rules.static ProgramofRules(RelOptRule... rules) Creates a program from a list of rules.static ProgramCreates a program that executes a sequence of programs.static Programstandard()Returns the standard program used by Prepare.static Programstandard(RelMetadataProvider metadataProvider) Returns the standard program with user metadata provider.static Programstandard(RelMetadataProvider metadataProvider, boolean enableFieldTrimming) Returns the standard program with user metadata provider and enableFieldTrimming config.static Programsubquery(RelMetadataProvider metadataProvider) Deprecated.static ProgramsubQuery(RelMetadataProvider metadataProvider) 
- 
Field Details- 
CALC_RULESDeprecated.
- 
CALC_PROGRAMProgram that converts filters and projects toCalcs.
- 
SUB_QUERY_PROGRAMProgram that expands sub-queries.
- 
RULE_SET
 
- 
- 
Method Details- 
ofCreates a program that executes a rule set.
- 
listOfCreates a list of programs based on an array of rule sets.
- 
listOfCreates a list of programs based on a list of rule sets.
- 
ofRulesCreates a program from a list of rules.
- 
ofRulesCreates a program from a list of rules.
- 
sequenceCreates a program that executes a sequence of programs.
- 
conditionalCreates a program that executes if a predicate is true.
- 
heppublic static Program hep(Iterable<? extends RelOptRule> rules, boolean noDag, RelMetadataProvider metadataProvider) Creates a program that executes a list of rules in a HEP planner.
- 
ofpublic static Program of(HepProgram hepProgram, boolean noDag, RelMetadataProvider metadataProvider) Creates a program that executes aHepProgram.
- 
heuristicJoinOrderpublic static Program heuristicJoinOrder(Iterable<? extends RelOptRule> rules, boolean bushy, int minJoinCount) Creates a program that invokes heuristic join-order optimization (viaJoinToMultiJoinRule,MultiJoinandLoptOptimizeJoinRule) if there are 6 or more joins (7 or more relations).
- 
calc
- 
subqueryDeprecated.
- 
subQuery
- 
measure
- 
getProgramDeprecated.
- 
standardReturns the standard program used by Prepare.
- 
standardReturns the standard program with user metadata provider.
- 
standardReturns the standard program with user metadata provider and enableFieldTrimming config.
 
-