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

Method DCheckConsistency

be/src/exec/topn-node.cc:674–683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

672}
673
674bool TopNNode::Heap::DCheckConsistency() {
675 DCHECK_LE(num_tuples(), capacity_ + overflowed_ties_.size())
676 << num_tuples() << " > " << capacity_ << " + " << overflowed_ties_.size();
677 if (!overflowed_ties_.empty()) {
678 DCHECK(include_ties_);
679 DCHECK_EQ(capacity_, priority_queue_.Size())
680 << "Ties should only be present if heap is at capacity";
681 }
682 return true;
683}
684
685Status TopNNode::ReclaimTuplePool(RuntimeState* state) {
686 COUNTER_ADD(tuple_pool_reclaim_counter_, 1);

Callers 4

OpenMethod · 0.45
EvictPartitionsMethod · 0.45
PrepareForOutputMethod · 0.45
ReclaimTuplePoolMethod · 0.45

Calls 3

sizeMethod · 0.45
emptyMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected