public Mappings.TargetMapping getMapping() { return Project.getMapping( input.getRowType().getFieldCount(), projects); } }
public Mappings.TargetMapping getMapping() { return Project.getMapping(input.rowType.getFieldCount(), projects); }
public Mappings.TargetMapping getMapping() { return Project.getMapping(input.rowType.getFieldCount(), projects); }
private static ProjectFilterTable of2(RexNode condition, RelNode node) { if (node instanceof Project) { final Project project = (Project) node; return of3(condition, project.getMapping(), project.getInput()); } else { return of3(condition, null, node); } }
private static ProjectFilterTable of2(RexNode condition, RelNode node) { if (node instanceof Project) { final Project project = (Project) node; return of3(condition, project.getMapping(), project.getInput()); } else { return of3(condition, null, node); } }
/** * Returns a mapping, or null if this projection is not a mapping. * * @return Mapping, or null if this projection is not a mapping */ public Mappings.TargetMapping getMapping() { return getMapping(getInput().getRowType().getFieldCount(), exps); }
/** * Returns a mapping, or null if this projection is not a mapping. * * @return Mapping, or null if this projection is not a mapping */ public Mappings.TargetMapping getMapping() { return getMapping(getInput().getRowType().getFieldCount(), exps); }
protected void apply(RelOptRuleCall call, Project project, TableScan scan) { final RelOptTable table = scan.getTable(); assert table.unwrap(ProjectableFilterableTable.class) != null; final Mappings.TargetMapping mapping = project.getMapping(); if (mapping == null || Mappings.isIdentity(mapping)) { return; } final ImmutableIntList projects; final ImmutableList<RexNode> filters; if (scan instanceof Bindables.BindableTableScan) { final Bindables.BindableTableScan bindableScan = (Bindables.BindableTableScan) scan; filters = bindableScan.filters; projects = bindableScan.projects; } else { filters = ImmutableList.of(); projects = scan.identity(); } final List<Integer> projects2 = Mappings.apply((Mapping) mapping, projects); call.transformTo( Bindables.BindableTableScan.create(scan.getCluster(), scan.getTable(), filters, projects2)); } }
protected void apply(RelOptRuleCall call, Project project, TableScan scan) { final RelOptTable table = scan.getTable(); assert table.unwrap(ProjectableFilterableTable.class) != null; final Mappings.TargetMapping mapping = project.getMapping(); if (mapping == null || Mappings.isIdentity(mapping)) { return; } final ImmutableIntList projects; final ImmutableList<RexNode> filters; if (scan instanceof Bindables.BindableTableScan) { final Bindables.BindableTableScan bindableScan = (Bindables.BindableTableScan) scan; filters = bindableScan.filters; projects = bindableScan.projects; } else { filters = ImmutableList.of(); projects = scan.identity(); } final List<Integer> projects2 = Mappings.apply((Mapping) mapping, projects); call.transformTo( Bindables.BindableTableScan.create(scan.getCluster(), scan.getTable(), filters, projects2)); } }