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

Method InitTmpTuple

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

Source from the content-addressed store, hash-verified

719}
720
721Status TopNNode::InitTmpTuple(RuntimeState* state, MemPool* pool) {
722 tmp_tuple_ = reinterpret_cast<Tuple*>(pool->TryAllocate(
723 output_tuple_desc_->byte_size()));
724 if (UNLIKELY(tmp_tuple_ == nullptr)) {
725 return pool->mem_tracker()->MemLimitExceeded(state,
726 "Failed to allocate memory in TopNNode::ReclaimTuplePool.",
727 output_tuple_desc_->byte_size());
728 }
729 return Status::OK();
730}
731
732void TopNNode::DebugString(int indentation_level, stringstream* out) const {
733 *out << string(indentation_level * 2, ' ');

Callers

nothing calls this directly

Calls 5

OKFunction · 0.85
TryAllocateMethod · 0.45
byte_sizeMethod · 0.45
MemLimitExceededMethod · 0.45
mem_trackerMethod · 0.45

Tested by

no test coverage detected