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

Method deleteParentEntry

src/java/simpledb/BTreeFile.java:775–802  ·  view source on GitHub ↗

Method to encapsulate the process of deleting an entry (specifically the key and right child) from a parent node. If the parent becomes empty (no keys remaining), that indicates that it was the root node and should be replaced by its one remaining child. Otherwise, if it gets below minimum occupan

(TransactionId tid, HashMap<PageId, Page> dirtypages, 
			BTreePage leftPage, BTreeInternalPage parent, BTreeEntry parentEntry)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 12

pgcategMethod · 0.95
getPageMethod · 0.95
setRootIdMethod · 0.95
setEmptyPageMethod · 0.95
getMaxEntriesMethod · 0.80
getIdMethod · 0.65
getPageNumberMethod · 0.65
getNumEmptySlotsMethod · 0.45
getParentIdMethod · 0.45
setParentIdMethod · 0.45

Tested by

no test coverage detected