| 555 | } |
| 556 | |
| 557 | bool RowDescriptor::LayoutIsPrefixOf(const RowDescriptor& other_desc) const { |
| 558 | if (tuple_desc_map_.size() > other_desc.tuple_desc_map_.size()) return false; |
| 559 | for (int i = 0; i < tuple_desc_map_.size(); ++i) { |
| 560 | if (!tuple_desc_map_[i]->LayoutEquals(*other_desc.tuple_desc_map_[i])) return false; |
| 561 | } |
| 562 | return true; |
| 563 | } |
| 564 | |
| 565 | bool RowDescriptor::LayoutEquals(const RowDescriptor& other_desc) const { |
| 566 | if (tuple_desc_map_.size() != other_desc.tuple_desc_map_.size()) return false; |
no test coverage detected