MCPcopy Create free account
hub / github.com/MIT-DB-Class/simple-db-hw / getPage

Method getPage

src/java/simpledb/BTreeFile.java:412–424  ·  view source on GitHub ↗

Method to encapsulate the process of locking/fetching a page. First the method checks the local cache ("dirtypages"), and if it can't find the requested page there, it fetches it from the buffer pool. It also adds pages to the dirtypages cache if they are fetched with read-write permission, since p

(TransactionId tid, HashMap<PageId, Page> dirtypages, BTreePageId pid, Permissions perm)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

updateParentPointerMethod · 0.95
insertTupleMethod · 0.95
deleteParentEntryMethod · 0.95
deleteTupleMethod · 0.95
getRootPtrPageMethod · 0.95
getEmptyPageNoMethod · 0.95
getEmptyPageMethod · 0.95
setEmptyPageMethod · 0.95

Calls 1

getBufferPoolMethod · 0.95

Tested by

no test coverage detected