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

Method getDatabaseFile

src/java/simpledb/common/Catalog.java:179–186  ·  view source on GitHub ↗

Returns the DbFile that can be used to read the contents of the specified table. @param tableid The id of the table, as specified by the DbFile.getId() function passed to addTable

(int tableid)

Source from the content-addressed store, hash-verified

177 * function passed to addTable
178 */
179 public DbFile getDatabaseFile(int tableid) throws NoSuchElementException {
180 // some code goes here
181 Table table = this.getTableById(tableid);
182 if(table!=null){
183 return table.getFile();
184 }
185 return null;
186 }
187
188 public String getPrimaryKey(int tableid) {
189 // some code goes here

Callers 15

rollbackMethod · 0.45
recoverMethod · 0.45
recoverSearchMethod · 0.45
getPageMethod · 0.45
insertTupleMethod · 0.45
deleteTupleMethod · 0.45
flushAllPagesMethod · 0.45
flushPageMethod · 0.45
flushPagesMethod · 0.45
resetMethod · 0.45
convertMethod · 0.45
TableStatsMethod · 0.45

Calls 2

getTableByIdMethod · 0.95
getFileMethod · 0.95

Tested by

no test coverage detected