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

Method getTableById

src/java/simpledb/common/Catalog.java:146–155  ·  view source on GitHub ↗

通过tableId获取table @param tableId @return

(int tableId)

Source from the content-addressed store, hash-verified

144 * @return
145 */
146 public Table getTableById(int tableId){
147 for(int i=0;i<this.tables.size();i++) {
148 Table table = this.tables.get(i);
149 if(table.getFile().getId()==tableId){
150 return table;
151 }
152
153 }
154 return null;
155 }
156
157 /**
158 * Returns the tuple descriptor (schema) of the specified table

Callers 4

getTupleDescMethod · 0.95
getDatabaseFileMethod · 0.95
getPrimaryKeyMethod · 0.95
getTableNameMethod · 0.95

Calls 3

getFileMethod · 0.95
getMethod · 0.80
getIdMethod · 0.65

Tested by

no test coverage detected