Create a deep copy of this TupleRow. DeepCopy will allocate from the pool.
| 41 | |
| 42 | /// Create a deep copy of this TupleRow. DeepCopy will allocate from the pool. |
| 43 | TupleRow* DeepCopy(const std::vector<TupleDescriptor*>& descs, MemPool* pool) const { |
| 44 | int size = descs.size() * sizeof(Tuple*); |
| 45 | TupleRow* result = reinterpret_cast<TupleRow*>(pool->Allocate(size)); |
| 46 | DeepCopy(result, descs, pool, false); |
| 47 | return result; |
| 48 | } |
| 49 | |
| 50 | /// Create a deep copy of this TupleRow into 'dst'. DeepCopy will allocate from |
| 51 | /// the MemPool and copy the tuple pointers, the tuples and the string data in the |