Creates a program that executes a list of rules in a HEP planner.
(Iterable<? extends RelOptRule> rules,
boolean noDag, RelMetadataProvider metadataProvider)
| 157 | |
| 158 | /** Creates a program that executes a list of rules in a HEP planner. */ |
| 159 | public static Program hep(Iterable<? extends RelOptRule> rules, |
| 160 | boolean noDag, RelMetadataProvider metadataProvider) { |
| 161 | final HepProgramBuilder builder = HepProgram.builder(); |
| 162 | for (RelOptRule rule : rules) { |
| 163 | builder.addRuleInstance(rule); |
| 164 | } |
| 165 | return of(builder.build(), noDag, metadataProvider); |
| 166 | } |
| 167 | |
| 168 | /** Creates a program that executes a {@link HepProgram}. */ |
| 169 | @SuppressWarnings("deprecation") |