| 719 | } |
| 720 | |
| 721 | Status 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 | |
| 732 | void TopNNode::DebugString(int indentation_level, stringstream* out) const { |
| 733 | *out << string(indentation_level * 2, ' '); |
nothing calls this directly
no test coverage detected