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

Method insertTuple

src/java/simpledb/BTreeFile.java:436–463  ·  view source on GitHub ↗

Insert a tuple into this BTreeFile, keeping the tuples in sorted order. May cause pages to split if the page where tuple t belongs is full. @param tid - the transaction id @param t - the tuple to insert @return a list of all pages that were dirtied by this operation. Could include many pages since

(TransactionId tid, Tuple t)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

indexIteratorMethod · 0.95
deleteTupleMethod · 0.95
addTupleMethod · 0.95
addDuplicateTuplesMethod · 0.95

Calls 11

getRootPtrPageMethod · 0.95
getRootIdMethod · 0.95
numPagesMethod · 0.95
getPageMethod · 0.95
getIdMethod · 0.95
setRootIdMethod · 0.95
findLeafPageMethod · 0.95
getNumEmptySlotsMethod · 0.95
splitLeafPageMethod · 0.95
insertTupleMethod · 0.95
getFieldMethod · 0.45

Tested by 4

indexIteratorMethod · 0.76
deleteTupleMethod · 0.76
addTupleMethod · 0.76
addDuplicateTuplesMethod · 0.76