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

Method iterator

src/java/simpledb/index/BTreeFile.java:1302–1304  ·  view source on GitHub ↗

Get an iterator for all tuples in this B+ tree file in sorted order. This method will acquire a read lock on the affected pages of the file, and may block until the lock can be acquired. @param tid - the transaction id @return an iterator for all the tuples in this file

(TransactionId tid)

Source from the content-addressed store, hash-verified

1300 * @return an iterator for all the tuples in this file
1301 */
1302 public DbFileIterator iterator(TransactionId tid) {
1303 return new BTreeFileIterator(this, tid);
1304 }
1305
1306}
1307

Callers 11

testIteratorBasicMethod · 0.95
testIteratorCloseMethod · 0.95
deleteTupleMethod · 0.95
addTupleMethod · 0.95
testSplitInternalPageMethod · 0.95
testMergeLeafPagesMethod · 0.95
testDeleteRootPageMethod · 0.95
testReuseDeletedPagesMethod · 0.95
testBigFileMethod · 0.95

Calls

no outgoing calls

Tested by 11

testIteratorBasicMethod · 0.76
testIteratorCloseMethod · 0.76
deleteTupleMethod · 0.76
addTupleMethod · 0.76
testSplitInternalPageMethod · 0.76
testMergeLeafPagesMethod · 0.76
testDeleteRootPageMethod · 0.76
testReuseDeletedPagesMethod · 0.76
testBigFileMethod · 0.76