Package org.apache.calcite.tools
Class Programs
java.lang.Object
org.apache.calcite.tools.Programs
Utilities for creating
Programs.-
Field Summary
FieldsModifier 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 Summary
Modifier and TypeMethodDescriptionstatic Programcalc(RelMetadataProvider metadataProvider) static Programconditional(Predicate<RelNode> predicate, Program program) Creates a program that executes if a predicate is true.static Programstatic 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) static Programtrim()
-
Field Details
-
CALC_RULES
Deprecated. -
CALC_PROGRAM
Program that converts filters and projects toCalcs. -
SUB_QUERY_PROGRAM
Program that expands sub-queries. -
RULE_SET
-
-
Method Details
-
of
Creates a program that executes a rule set. -
listOf
Creates a list of programs based on an array of rule sets. -
listOf
Creates a list of programs based on a list of rule sets. -
ofRules
Creates a program from a list of rules. -
ofRules
Creates a program from a list of rules. -
sequence
Creates a program that executes a sequence of programs. -
conditional
Creates a program that executes if a predicate is true. -
hep
public static Program hep(Iterable<? extends RelOptRule> rules, boolean noDag, RelMetadataProvider metadataProvider) Creates a program that executes a list of rules in a HEP planner. -
of
public static Program of(HepProgram hepProgram, boolean noDag, RelMetadataProvider metadataProvider) Creates a program that executes aHepProgram. -
heuristicJoinOrder
public 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). -
decorrelate
-
trim
-
calc
-
subquery
Deprecated. -
subQuery
-
measure
-
getProgram
Deprecated. -
standard
Returns the standard program used by Prepare. -
standard
Returns the standard program with user metadata provider. -
standard
Returns the standard program with user metadata provider and enableFieldTrimming config.
-