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

Method iterator

src/java/simpledb/storage/HeapFile.java:177–180  ·  view source on GitHub ↗
(TransactionId tid)

Source from the content-addressed store, hash-verified

175
176 // see DbFile.java for javadocs
177 public DbFileIterator iterator(TransactionId tid) {
178 // some code goes here
179 return new HeapFileIterator(tid,Permissions.READ_ONLY);
180 }
181
182 /**
183 * 这个迭代器的作用是用来遍历所有的tuple,但是不要将所有tuple一次性放入内存,而是一页一页的读和遍历

Callers 5

testIteratorBasicMethod · 0.95
testIteratorCloseMethod · 0.95
deleteTupleMethod · 0.95
TableStatsMethod · 0.95

Calls

no outgoing calls

Tested by 4

testIteratorBasicMethod · 0.76
testIteratorCloseMethod · 0.76
deleteTupleMethod · 0.76