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

Method TryAppendTuple

be/src/runtime/outbound-row-batch.inline.h:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70bool OutboundRowBatch::TryAppendTuple(const Tuple* tuple, const TupleDescriptor* desc) {
71 DCHECK(tuple != nullptr);
72 DCHECK(desc != nullptr);
73 if (tuple_data_.size() == 0) return false;
74 DCHECK_GT(tuple_data_.size(), 0);
75 uint8_t* dst = reinterpret_cast<uint8_t*>(&tuple_data_[0]) + tuple_data_offset_;
76 uint8_t* dst_end = reinterpret_cast<uint8_t*>(&tuple_data_.back()) + 1;
77 return tuple->TryDeepCopy(
78 &dst, dst_end, &tuple_data_offset_, *desc, /* convert_ptrs */ true);
79}
80
81bool OutboundRowBatch::ReachedSizeLimit() {
82 return RowBatch::AT_CAPACITY_MEM_USAGE <= tuple_data_offset_;

Callers

nothing calls this directly

Calls 2

TryDeepCopyMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected