Constructor. @param t The transaction running the insert. @param child The child operator from which to read tuples to be inserted. @param tableId The table in which to insert tuples. @throws DbException if TupleDesc of child differs from table into whic
(TransactionId t, OpIterator child, int tableId)
| 39 | * insert. |
| 40 | */ |
| 41 | public Insert(TransactionId t, OpIterator child, int tableId) |
| 42 | throws DbException { |
| 43 | // some code goes here |
| 44 | this.t = t; |
| 45 | this.child =child; |
| 46 | this.tableId = tableId; |
| 47 | if(!child.getTupleDesc().equals(Database.getCatalog().getTupleDesc(tableId))){ |
| 48 | throw new DbException("insert tupleDesc not equal."); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | public TupleDesc getTupleDesc() { |
| 53 | // some code goes here |
nothing calls this directly
no test coverage detected