| 68 | } |
| 69 | |
| 70 | bool 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 | |
| 81 | bool OutboundRowBatch::ReachedSizeLimit() { |
| 82 | return RowBatch::AT_CAPACITY_MEM_USAGE <= tuple_data_offset_; |
nothing calls this directly
no test coverage detected