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

Method DeepCopy

be/src/runtime/tuple-row.h:43–48  ·  view source on GitHub ↗

Create a deep copy of this TupleRow. DeepCopy will allocate from the pool.

Source from the content-addressed store, hash-verified

41
42 /// Create a deep copy of this TupleRow. DeepCopy will allocate from the pool.
43 TupleRow* DeepCopy(const std::vector<TupleDescriptor*>& descs, MemPool* pool) const {
44 int size = descs.size() * sizeof(Tuple*);
45 TupleRow* result = reinterpret_cast<TupleRow*>(pool->Allocate(size));
46 DeepCopy(result, descs, pool, false);
47 return result;
48 }
49
50 /// Create a deep copy of this TupleRow into 'dst'. DeepCopy will allocate from
51 /// the MemPool and copy the tuple pointers, the tuples and the string data in the

Callers

nothing calls this directly

Calls 4

GetTupleMethod · 0.95
sizeMethod · 0.45
AllocateMethod · 0.45
SetTupleMethod · 0.45

Tested by

no test coverage detected