Constructs a B+ tree file backed by the specified file. @param f - the file that stores the on-disk backing store for this B+ tree file. @param key - the field which index is keyed on @param td - the tuple descriptor of tuples in the file
(File f, int key, TupleDesc td)
| 44 | * @param td - the tuple descriptor of tuples in the file |
| 45 | */ |
| 46 | public BTreeFile(File f, int key, TupleDesc td) { |
| 47 | this.f = f; |
| 48 | this.tableid = f.getAbsoluteFile().hashCode(); |
| 49 | this.keyField = key; |
| 50 | this.td = td; |
| 51 | } |
| 52 | |
| 53 | /** |
| 54 | * Returns the File backing this BTreeFile on disk. |