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

Method Less

be/src/exec/scan-range-queue-mt.h:87–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 struct ScanRangeComparator {
86 public:
87 bool Less(const io::ScanRange* lhs, const io::ScanRange* rhs) const {
88 DCHECK(lhs != nullptr);
89 DCHECK(rhs != nullptr);
90 if (!lhs->UseHdfsCache() && rhs->UseHdfsCache()) return true;
91 if (lhs->UseHdfsCache() && !rhs->UseHdfsCache()) return false;
92 return lhs->bytes_to_read() < rhs->bytes_to_read();
93 }
94 };
95
96 std::mutex scan_range_queue_lock_;

Callers 1

InsertTupleRowMethod · 0.45

Calls 2

UseHdfsCacheMethod · 0.80
bytes_to_readMethod · 0.80

Tested by

no test coverage detected