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

Method open

src/java/simpledb/index/BTreeFile.java:1332–1338  ·  view source on GitHub ↗

Open this iterator by getting an iterator on the first leaf page

()

Source from the content-addressed store, hash-verified

1330 * Open this iterator by getting an iterator on the first leaf page
1331 */
1332 public void open() throws DbException, TransactionAbortedException {
1333 BTreeRootPtrPage rootPtr = (BTreeRootPtrPage) Database.getBufferPool().getPage(
1334 tid, BTreeRootPtrPage.getId(f.getId()), Permissions.READ_ONLY);
1335 BTreePageId root = rootPtr.getRootId();
1336 curp = f.findLeafPage(tid, root, null);
1337 it = curp.iterator();
1338 }
1339
1340 /**
1341 * Read the next tuple either from the current page if it has more tuples or

Callers 1

rewindMethod · 0.95

Calls 7

getBufferPoolMethod · 0.95
getIdMethod · 0.95
getRootIdMethod · 0.95
findLeafPageMethod · 0.80
getIdMethod · 0.65
iteratorMethod · 0.65
getPageMethod · 0.45

Tested by

no test coverage detected