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

Method getEmptyPage

src/java/simpledb/BTreeFile.java:941–958  ·  view source on GitHub ↗

Method to encapsulate the process of creating a new page. It reuses old pages if possible, and creates a new page if none are available. It wipes the page on disk and in the cache and returns a clean copy locked with read-write permission @param tid - the transaction id @param dirtypages - the li

(TransactionId tid, HashMap<PageId, Page> dirtypages, int pgcateg)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

setEmptyPageMethod · 0.95

Calls 9

getEmptyPageNoMethod · 0.95
getPageSizeMethod · 0.95
getPageSizeMethod · 0.95
createEmptyPageDataMethod · 0.95
getBufferPoolMethod · 0.95
getPageMethod · 0.95
discardPageMethod · 0.80
closeMethod · 0.65
removeMethod · 0.45

Tested by

no test coverage detected