Returns an ID uniquely identifying this HeapFile. Implementation note: you will need to generate this tableid somewhere to ensure that each HeapFile has a "unique id," and that you always return the same value for a particular HeapFile. We suggest hashing the absolute file name of the file underlyin
()
| 61 | * @return an ID uniquely identifying this HeapFile. |
| 62 | */ |
| 63 | public int getId() { |
| 64 | // some code goes here |
| 65 | return file.getAbsoluteFile().hashCode(); |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Returns the TupleDesc of the table stored in this DbFile. |