当前位置: 首页>>代码示例>>Java>>正文


Java LogicalProject.getRowType方法代码示例

本文整理汇总了Java中org.apache.calcite.rel.logical.LogicalProject.getRowType方法的典型用法代码示例。如果您正苦于以下问题:Java LogicalProject.getRowType方法的具体用法?Java LogicalProject.getRowType怎么用?Java LogicalProject.getRowType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.calcite.rel.logical.LogicalProject的用法示例。


在下文中一共展示了LogicalProject.getRowType方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: convert

import org.apache.calcite.rel.logical.LogicalProject; //导入方法依赖的package包/类
public RelNode convert(RelNode rel) {
    final LogicalProject project = (LogicalProject) rel;

    return new JdbcProject(
            rel.getCluster(),
            rel.getTraitSet().replace(getOut()),
            convert(
                    project.getInput(),
                    project.getInput().getTraitSet().replace(getOut())),
            project.getProjects(),
            project.getRowType());
}
 
开发者ID:bitnine-oss,项目名称:octopus,代码行数:13,代码来源:JdbcRules.java

示例2: onMatch

import org.apache.calcite.rel.logical.LogicalProject; //导入方法依赖的package包/类
@Override
public void onMatch(RelOptRuleCall call) {
    LogicalProject project = call.rel(0);

    RelTraitSet origTraitSet = project.getTraitSet();
    RelTraitSet traitSet = origTraitSet.replace(OLAPRel.CONVENTION).simplify();

    OLAPProjectRel olapProj = new OLAPProjectRel(project.getCluster(), traitSet, //
            convert(project.getInput(), traitSet), project.getProjects(), project.getRowType());
    call.transformTo(olapProj);
}
 
开发者ID:apache,项目名称:kylin,代码行数:12,代码来源:OLAPProjectRule.java

示例3: convert

import org.apache.calcite.rel.logical.LogicalProject; //导入方法依赖的package包/类
public RelNode convert(RelNode rel) {
  final LogicalProject project = (LogicalProject) rel;
  final RelTraitSet traitSet = project.getTraitSet().replace(out);
  return new CassandraProject(project.getCluster(), traitSet,
      convert(project.getInput(), out), project.getProjects(),
      project.getRowType());
}
 
开发者ID:apache,项目名称:calcite,代码行数:8,代码来源:CassandraRules.java

示例4: convert

import org.apache.calcite.rel.logical.LogicalProject; //导入方法依赖的package包/类
public RelNode convert(RelNode rel) {
  final LogicalProject project = (LogicalProject) rel;
  final RelTraitSet traitSet = project.getTraitSet().replace(out);
  return new MongoProject(project.getCluster(), traitSet,
      convert(project.getInput(), out), project.getProjects(),
      project.getRowType());
}
 
开发者ID:apache,项目名称:calcite,代码行数:8,代码来源:MongoRules.java

示例5: convert

import org.apache.calcite.rel.logical.LogicalProject; //导入方法依赖的package包/类
public RelNode convert(RelNode rel) {
  final LogicalProject project = (LogicalProject) rel;

  return new JdbcProject(
      rel.getCluster(),
      rel.getTraitSet().replace(out),
      convert(
          project.getInput(),
          project.getInput().getTraitSet().replace(out)),
      project.getProjects(),
      project.getRowType());
}
 
开发者ID:apache,项目名称:calcite,代码行数:13,代码来源:JdbcRules.java

示例6: convert

import org.apache.calcite.rel.logical.LogicalProject; //导入方法依赖的package包/类
public RelNode convert(RelNode rel) {
  final LogicalProject project = (LogicalProject) rel;
  return new BindableProject(rel.getCluster(),
      rel.getTraitSet().replace(BindableConvention.INSTANCE),
      convert(project.getInput(),
          project.getInput().getTraitSet()
              .replace(BindableConvention.INSTANCE)),
      project.getProjects(),
      project.getRowType());
}
 
开发者ID:apache,项目名称:calcite,代码行数:11,代码来源:Bindables.java

示例7: convert

import org.apache.calcite.rel.logical.LogicalProject; //导入方法依赖的package包/类
public RelNode convert(RelNode rel) {
  LogicalProject project = (LogicalProject) rel;
  return new JdbcRules.JdbcProject(rel.getCluster(), rel.getTraitSet().replace(this.out), convert(
      project.getInput(), project.getInput().getTraitSet().replace(this.out)), project.getProjects(),
      project.getRowType());
}
 
开发者ID:skhalifa,项目名称:QDrill,代码行数:7,代码来源:DrillJdbcRuleBase.java

示例8: convert

import org.apache.calcite.rel.logical.LogicalProject; //导入方法依赖的package包/类
public RelNode convert(RelNode rel) {
  final LogicalProject project = (LogicalProject) rel;
  final RelTraitSet traitSet = project.getTraitSet().replace(PigRel.CONVENTION);
  return new PigProject(project.getCluster(), traitSet, project.getInput(),
      project.getProjects(), project.getRowType());
}
 
开发者ID:apache,项目名称:calcite,代码行数:7,代码来源:PigRules.java

示例9: convert

import org.apache.calcite.rel.logical.LogicalProject; //导入方法依赖的package包/类
@Override public RelNode convert(RelNode relNode) {
  final LogicalProject project = (LogicalProject) relNode;
  final RelTraitSet traitSet = project.getTraitSet().replace(out);
  return new ElasticsearchProject(project.getCluster(), traitSet,
    convert(project.getInput(), out), project.getProjects(), project.getRowType());
}
 
开发者ID:apache,项目名称:calcite,代码行数:7,代码来源:ElasticsearchRules.java


注:本文中的org.apache.calcite.rel.logical.LogicalProject.getRowType方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。