org.apache.calcite.plan.RelOptUtil.countJoins()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(70)

本文整理了Java中org.apache.calcite.plan.RelOptUtil.countJoins方法的一些代码示例,展示了RelOptUtil.countJoins的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RelOptUtil.countJoins方法的具体详情如下:
包路径:org.apache.calcite.plan.RelOptUtil
类名称:RelOptUtil
方法名:countJoins

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) {

相关文章

微信公众号

最新文章

更多

RelOptUtil类方法