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

Method iterator

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

Returns an iterator over all the tuples stored in this DbFile. The iterator must use BufferPool#getPage, rather than #readPage to iterate through the pages. @return an iterator over all the tuples stored in this DbFile.

(TransactionId tid)

Source from the content-addressed store, hash-verified

72 * @return an iterator over all the tuples stored in this DbFile.
73 */
74 DbFileIterator iterator(TransactionId tid);
75
76 /**
77 * Returns a unique ID used to identify this DbFile in the Catalog. This id

Callers 15

validateTransactionsMethod · 0.95
mainMethod · 0.95
openMethod · 0.95
handleManyDirtyPagesMethod · 0.65
testRewindPredicatesMethod · 0.65
testReadPageMethod · 0.65
openMethod · 0.65
rewindMethod · 0.65
iteratorMethod · 0.65
fieldsMethod · 0.65
openMethod · 0.65
iteratorMethod · 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 4

validateTransactionsMethod · 0.76
handleManyDirtyPagesMethod · 0.52
testRewindPredicatesMethod · 0.52
testReadPageMethod · 0.52