org.apache.calcite.rel.RelNode.childrenAccept()方法的使用及代码示例

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

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

RelNode.childrenAccept介绍

[英]Interacts with the RelVisitor in a org.apache.calcite.util.Glossary#VISITOR_PATTERN to traverse the tree of relational expressions.
[中]与组织中的访客互动。阿帕奇。方解石util。Glossary#VISITOR_模式遍历关系表达式树。

代码示例

代码示例来源:origin: apache/incubator-druid

@Override
 public void visit(RelNode node, int ordinal, RelNode parent)
 {
  if (node instanceof DruidRel) {
   datasourceNames.addAll(((DruidRel) node).getDataSourceNames());
  }
  if (node instanceof Bindables.BindableTableScan) {
   Bindables.BindableTableScan bts = (Bindables.BindableTableScan) node;
   RelOptTable table = bts.getTable();
   String tableName = table.getQualifiedName().get(0);
   datasourceNames.add(tableName);
  }
  node.childrenAccept(this);
 }
}

代码示例来源:origin: apache/hive

node.childrenAccept(this);

代码示例来源:origin: apache/drill

node.childrenAccept(this);

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

/**
 * Visits a node during a traversal.
 *
 * @param node    Node to visit
 * @param ordinal Ordinal of node within its parent
 * @param parent  Parent of the node, or null if it is the root of the
 *                traversal
 */
public void visit(
  RelNode node,
  int ordinal,
  RelNode parent) {
 node.childrenAccept(this);
}

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

/**
 * Visits a node during a traversal.
 *
 * @param node    Node to visit
 * @param ordinal Ordinal of node within its parent
 * @param parent  Parent of the node, or null if it is the root of the
 *                traversal
 */
public void visit(
  RelNode node,
  int ordinal,
  RelNode parent) {
 node.childrenAccept(this);
}

代码示例来源:origin: org.apache.druid/druid-sql

@Override
 public void visit(RelNode node, int ordinal, RelNode parent)
 {
  if (node instanceof DruidRel) {
   datasourceNames.addAll(((DruidRel) node).getDatasourceNames());
  }
  if (node instanceof Bindables.BindableTableScan) {
   Bindables.BindableTableScan bts = (Bindables.BindableTableScan) node;
   RelOptTable table = bts.getTable();
   String tableName = table.getQualifiedName().get(0);
   datasourceNames.add(tableName);
  }
  node.childrenAccept(this);
 }
}

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

p.childrenAccept(this);

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

p.childrenAccept(this);

代码示例来源:origin: com.facebook.presto.hive/hive-apache

node.childrenAccept(this);

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

rel.childrenAccept(this);

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

rel.childrenAccept(this);

相关文章