core/src/main/java/org/apache/calcite/rel/logical/LogicalProject.java
/** Creates a LogicalProject, specifying row type rather than field names. */
Creates a LogicalProject, specifying row type rather than field names.
Creates a LogicalProject specifying row type rather than field names .
public static LogicalProject create(final RelNode input,
      final List<? extends RexNode> projects, RelDataType rowType) {
    final RelOptCluster cluster = input.getCluster();
    final RelTraitSet traitSet =
        cluster.traitSet().replace(Convention.NONE)
            .replaceIf(RelCollationTraitDef.INSTANCE,
                new Supplier<List<RelCollation>>() {
                  public List<RelCollation> get() {
                    return RelMdCollation.project(input, projects);
                  }
                });
    return new LogicalProject(cluster, traitSet, input, projects, rowType);
  }
public static LogicalProject create ( final RelNode input , final List < ? extends RexNode > projects , RelDataType rowType ) { final RelOptCluster cluster = input . getCluster ( ) ; final RelTraitSet traitSet = cluster . traitSet ( ) . replace ( Convention . NONE ) . replaceIf ( RelCollationTraitDef . INSTANCE , new Supplier < List < RelCollation > > ( ) { public List < RelCollation > get ( ) { return RelMdCollation . project ( input , projects ) ; } } ) ; return new LogicalProject ( cluster , traitSet , input , projects , rowType ) ; }
Creates a LogicalProject, specifying row type rather than field names.
Creates a LogicalProject specifying row type rather than field names .