/** * Creates a new instance. * * @param tableName name of the table to be read * @param columnNames names of the columns in the tables; can be omitted but allows to inject schema information * into Rheem, so as to allow specific optimizations */ public TableSource(String tableName, String... columnNames) { this(tableName, createOutputDataSetType(columnNames)); }
/** * Copies an instance (exclusive of broadcasts). * * @param that that should be copied */ public TableSource(TableSource that) { super(that); this.tableName = that.getTableName(); }