| 509 | } |
| 510 | |
| 511 | int RowDescriptor::GetRowSize() const { |
| 512 | int size = 0; |
| 513 | for (int i = 0; i < tuple_desc_map_.size(); ++i) { |
| 514 | size += tuple_desc_map_[i]->byte_size(); |
| 515 | } |
| 516 | return size; |
| 517 | } |
| 518 | |
| 519 | int RowDescriptor::GetTupleIdx(TupleId id) const { |
| 520 | DCHECK_LT(id, tuple_idx_map_.size()) << "RowDescriptor: " << DebugString(); |