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

Method getId

src/java/simpledb/index/BTreeFile.java:69–71  ·  view source on GitHub ↗

Returns an ID uniquely identifying this BTreeFile. Implementation note: you will need to generate this tableid somewhere and ensure that each BTreeFile has a "unique id," and that you always return the same value for a particular BTreeFile. We suggest hashing the absolute file name of the file under

()

Source from the content-addressed store, hash-verified

67 * @return an ID uniquely identifying this BTreeFile.
68 */
69 public int getId() {
70 return tableid;
71 }
72
73 /**
74 * Returns the TupleDesc of the table stored in this DbFile.

Callers 15

getIdMethod · 0.95
testSplitLeafPagesMethod · 0.95
testReusePageMethod · 0.95
testMergeLeafPagesMethod · 0.95

Calls

no outgoing calls

Tested by 15

getIdMethod · 0.76
testSplitLeafPagesMethod · 0.76
testReusePageMethod · 0.76
testMergeLeafPagesMethod · 0.76