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)
| 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 | /** |
nothing calls this directly
no test coverage detected