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

Method getEmptyPageNo

src/java/simpledb/BTreeFile.java:877–923  ·  view source on GitHub ↗

Get the page number of the first empty page in this BTreeFile. Creates a new page if none of the existing pages are empty. @param tid - the transaction id @param dirtypages - the list of dirty pages which should be updated with all new dirty pages @return the page number of the first empty page @t

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

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

testMergeLeafPagesMethod · 0.95
getEmptyPageMethod · 0.95

Calls 10

getRootPtrPageMethod · 0.95
getHeaderIdMethod · 0.95
getPageMethod · 0.95
getEmptySlotMethod · 0.95
getNextPageIdMethod · 0.95
markSlotUsedMethod · 0.95
getNumSlotsMethod · 0.95
numPagesMethod · 0.95
closeMethod · 0.65
createEmptyPageDataMethod · 0.45

Tested by 2

testMergeLeafPagesMethod · 0.76