本文整理了Java中org.apache.calcite.plan.RelOptUtil.countJoins
方法的一些代码示例,展示了RelOptUtil.countJoins
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RelOptUtil.countJoins
方法的具体详情如下:
包路径:org.apache.calcite.plan.RelOptUtil
类名称:RelOptUtil
方法名:countJoins
[英]Returns the number of org.apache.calcite.rel.core.Join nodes in a tree.
[中]返回组织的编号。阿帕奇。方解石雷尔。果心将节点连接到树中。
代码示例来源:origin: org.apache.calcite/calcite-core
private boolean shouldTrim(RelNode rootRel) {
// For now, don't trim if there are more than 3 joins. The projects
// near the leaves created by trim migrate past joins and seem to
// prevent join-reordering.
return THREAD_TRIM.get() || RelOptUtil.countJoins(rootRel) < 2;
}
代码示例来源:origin: Qihoo360/Quicksql
private boolean shouldTrim(RelNode rootRel) {
// For now, don't trim if there are more than 3 joins. The projects
// near the leaves created by trim migrate past joins and seem to
// prevent join-reordering.
return THREAD_TRIM.get() || RelOptUtil.countJoins(rootRel) < 2;
}
代码示例来源:origin: org.apache.kylin/atopcalcite
List<RelOptMaterialization> materializations,
List<RelOptLattice> lattices) {
final int joinCount = RelOptUtil.countJoins(rel);
final Program program;
if (joinCount < minJoinCount) {
代码示例来源:origin: org.apache.calcite/calcite-core
final boolean bushy, final int minJoinCount) {
return (planner, rel, requiredOutputTraits, materializations, lattices) -> {
final int joinCount = RelOptUtil.countJoins(rel);
final Program program;
if (joinCount < minJoinCount) {
代码示例来源:origin: Qihoo360/Quicksql
final boolean bushy, final int minJoinCount) {
return (planner, rel, requiredOutputTraits, materializations, lattices) -> {
final int joinCount = RelOptUtil.countJoins(rel);
final Program program;
if (joinCount < minJoinCount) {
内容来源于网络,如有侵权,请联系作者删除!