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

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

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

RelOptUtil.equalType介绍

[英]Returns whether two relational expressions have the same row-type.
[中]返回两个关系表达式是否具有相同的行类型。

代码示例

代码示例来源:origin: Qihoo360/Quicksql

/** Within a relational expression {@code query}, replaces occurrences of
 * {@code find} with {@code replace}. */
public static RelNode replace(RelNode query, RelNode find, RelNode replace) {
 if (find == replace) {
  // Short-cut common case.
  return query;
 }
 assert equalType("find", find, "replace", replace, Litmus.THROW);
 if (query == find) {
  // Short-cut another common case.
  return replace;
 }
 return replaceRecurse(query, find, replace);
}

代码示例来源:origin: org.apache.calcite/calcite-core

/** Within a relational expression {@code query}, replaces occurrences of
 * {@code find} with {@code replace}. */
public static RelNode replace(RelNode query, RelNode find, RelNode replace) {
 if (find == replace) {
  // Short-cut common case.
  return query;
 }
 assert equalType("find", find, "replace", replace, Litmus.THROW);
 if (query == find) {
  // Short-cut another common case.
  return replace;
 }
 return replaceRecurse(query, find, replace);
}

相关文章

微信公众号

最新文章

更多

RelOptUtil类方法