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

Method open

src/java/simpledb/execution/SeqScan.java:94–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93
94 public void open() throws DbException, TransactionAbortedException {
95 // some code goes here
96 DbFile dbFile = Database.getCatalog().getDatabaseFile(this.tableId);
97 DbFileIterator iterator = dbFile.iterator(this.transactionId);
98 this.dbFileIterator = iterator;
99 iterator.open();
100 }
101
102 /**
103 * Returns the TupleDesc with field names from the underlying HeapFile,

Callers 5

testRewindMethod · 0.95
findMagicTupleMethod · 0.95
findMagicTupleMethod · 0.95
lookMethod · 0.95

Calls 4

getCatalogMethod · 0.95
iteratorMethod · 0.95
openMethod · 0.95
getDatabaseFileMethod · 0.45

Tested by 5

testRewindMethod · 0.76
findMagicTupleMethod · 0.76
findMagicTupleMethod · 0.76
lookMethod · 0.76