Add a scan to the plan. One scan node needs to be added for each alias of a table accessed by the plan. @param table the id of the table accessed by the plan (can be resolved to a DbFile using Catalog#getDatabaseFile @param name the alias of the table in the plan
(int table, String name)
| 166 | */ |
| 167 | |
| 168 | public void addScan(int table, String name) { |
| 169 | System.out.println("Added scan of table " + name); |
| 170 | tables.add(new LogicalScanNode(table,name)); |
| 171 | tableMap.put(name,table); |
| 172 | } |
| 173 | |
| 174 | /** Add a specified field/aggregate combination to the select list of the query. |
| 175 | Fields are output by the query such that the rightmost field is the first added via addProjectField. |
no test coverage detected