@Override public List<ColumnStrategy> getColumnStrategies() { return RelOptTableImpl.columnStrategies(this); }
public List<ColumnStrategy> getColumnStrategies() { return RelOptTableImpl.columnStrategies(AbstractPreparingTable.this); } }
public List<ColumnStrategy> getColumnStrategies() { return RelOptTableImpl.columnStrategies(AbstractPreparingTable.this); } }
public List<ColumnStrategy> getColumnStrategies() { return RelOptTableImpl.columnStrategies(this); }
public List<ColumnStrategy> getColumnStrategies() { return RelOptTableImpl.columnStrategies(this); }
/** Returns the row type of a table after any {@link ColumnStrategy#VIRTUAL} * columns have been removed. This is the type of the records that are * actually stored. */ public static RelDataType realRowType(RelOptTable table) { final RelDataType rowType = table.getRowType(); final List<ColumnStrategy> strategies = columnStrategies(table); if (!strategies.contains(ColumnStrategy.VIRTUAL)) { return rowType; } final RelDataTypeFactory.Builder builder = table.getRelOptSchema().getTypeFactory().builder(); for (RelDataTypeField field : rowType.getFieldList()) { if (strategies.get(field.getIndex()) != ColumnStrategy.VIRTUAL) { builder.add(field); } } return builder.build(); }
/** Returns the row type of a table after any {@link ColumnStrategy#VIRTUAL} * columns have been removed. This is the type of the records that are * actually stored. */ public static RelDataType realRowType(RelOptTable table) { final RelDataType rowType = table.getRowType(); final List<ColumnStrategy> strategies = columnStrategies(table); if (!strategies.contains(ColumnStrategy.VIRTUAL)) { return rowType; } final RelDataTypeFactory.Builder builder = table.getRelOptSchema().getTypeFactory().builder(); for (RelDataTypeField field : rowType.getFieldList()) { if (strategies.get(field.getIndex()) != ColumnStrategy.VIRTUAL) { builder.add(field); } } return builder.build(); }