MCPcopy Create free account
hub / github.com/1345414527/MIT6.830 / addScan

Method addScan

src/java/simpledb/optimizer/LogicalPlan.java:168–172  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 3

parseQueryLogicalPlanMethod · 0.95
handleDeleteStatementMethod · 0.95
mainMethod · 0.95

Calls 1

putMethod · 0.80

Tested by

no test coverage detected