Java Code Examples for org.apache.calcite.plan.RelTraitDef#multiple()
The following examples show how to use
org.apache.calcite.plan.RelTraitDef#multiple() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VolcanoPlanner.java From Bats with Apache License 2.0 | 5 votes |
@Override public RelTraitSet emptyTraitSet() { RelTraitSet traitSet = super.emptyTraitSet(); for (RelTraitDef traitDef : traitDefs) { if (traitDef.multiple()) { // TODO: restructure RelTraitSet to allow a list of entries // for any given trait } traitSet = traitSet.plus(traitDef.getDefault()); } return traitSet; }
Example 2
Source File: VolcanoPlanner.java From calcite with Apache License 2.0 | 5 votes |
@Override public RelTraitSet emptyTraitSet() { RelTraitSet traitSet = super.emptyTraitSet(); for (RelTraitDef traitDef : traitDefs) { if (traitDef.multiple()) { // TODO: restructure RelTraitSet to allow a list of entries // for any given trait } traitSet = traitSet.plus(traitDef.getDefault()); } return traitSet; }