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

Method BTreeFile

src/java/simpledb/index/BTreeFile.java:46–51  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

hashCodeMethod · 0.65

Tested by

no test coverage detected