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

Method getTupleDesc

src/java/simpledb/common/Catalog.java:163–170  ·  view source on GitHub ↗

Returns the tuple descriptor (schema) of the specified table @param tableid The id of the table, as specified by the DbFile.getId() function passed to addTable @throws NoSuchElementException if the table doesn't exist

(int tableid)

Source from the content-addressed store, hash-verified

161 * @throws NoSuchElementException if the table doesn't exist
162 */
163 public TupleDesc getTupleDesc(int tableid) throws NoSuchElementException {
164 // some code goes here
165 Table table = this.getTableById(tableid);
166 if(table!=null){
167 return table.getFile().getTupleDesc();
168 }
169 throw new NoSuchElementException();
170 }
171
172
173 /**

Callers

nothing calls this directly

Calls 3

getTableByIdMethod · 0.95
getFileMethod · 0.95
getTupleDescMethod · 0.65

Tested by

no test coverage detected