MCPcopy Create free account
hub / github.com/apache/impala / LayoutIsPrefixOf

Method LayoutIsPrefixOf

be/src/runtime/descriptors.cc:557–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

555}
556
557bool 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
565bool RowDescriptor::LayoutEquals(const RowDescriptor& other_desc) const {
566 if (tuple_desc_map_.size() != other_desc.tuple_desc_map_.size()) return false;

Callers 1

GetNextMethod · 0.80

Calls 2

sizeMethod · 0.45
LayoutEqualsMethod · 0.45

Tested by

no test coverage detected