MCPcopy Create free account
hub / github.com/1345414527/MIT6.830 / insertTuple

Method insertTuple

src/java/simpledb/storage/DbFile.java:48–48  ·  view source on GitHub ↗

Inserts the specified tuple to the file on behalf of transaction. This method will acquire a lock on the affected pages of the file, and may block until the lock can be acquired. @param tid The transaction performing the update @param t The tuple to add. This tuple should be updated to reflect tha

(TransactionId tid, Tuple t)

Source from the content-addressed store, hash-verified

46 * @throws IOException if the needed file can't be read/written
47 */
48 List<Page> insertTuple(TransactionId tid, Tuple t)
49 throws DbException, IOException, TransactionAbortedException;
50
51 /**

Callers 15

insertTupleMethod · 0.95
setUpMethod · 0.65
setUpMethod · 0.65
setUpMethod · 0.65
addTupleMethod · 0.65
insertTupleMethod · 0.65
handleManyDirtyPagesMethod · 0.65
testSplitLeafPageMethod · 0.65
testSplitRootPageMethod · 0.65
testSplitInternalPageMethod · 0.65
testReuseDeletedPagesMethod · 0.65
stealFromLeafPageMethod · 0.65

Implementers 3

SkeletonFiletest/simpledb/TestUtil.java
HeapFilesrc/java/simpledb/storage/HeapFile.jav
BTreeFilesrc/java/simpledb/index/BTreeFile.java

Calls

no outgoing calls

Tested by 10

setUpMethod · 0.52
setUpMethod · 0.52
setUpMethod · 0.52
addTupleMethod · 0.52
insertTupleMethod · 0.52
handleManyDirtyPagesMethod · 0.52
testSplitLeafPageMethod · 0.52
testSplitRootPageMethod · 0.52
testSplitInternalPageMethod · 0.52
testReuseDeletedPagesMethod · 0.52