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

Method IsPrefixOf

be/src/runtime/descriptors.cc:543–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

541}
542
543bool RowDescriptor::IsPrefixOf(const RowDescriptor& other_desc) const {
544 if (tuple_desc_map_.size() > other_desc.tuple_desc_map_.size()) return false;
545 for (int i = 0; i < tuple_desc_map_.size(); ++i) {
546 // pointer comparison okay, descriptors are unique
547 if (tuple_desc_map_[i] != other_desc.tuple_desc_map_[i]) return false;
548 }
549 return true;
550}
551
552bool RowDescriptor::Equals(const RowDescriptor& other_desc) const {
553 if (tuple_desc_map_.size() != other_desc.tuple_desc_map_.size()) return false;

Callers 1

PrepareMethod · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected