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

Method CreateTupleRow

be/src/benchmarks/hash-table-benchmark.cc:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203 return status.ok() && success;
204 }
205 TupleRow* CreateTupleRow(int32_t val) {
206 uint8_t* tuple_row_mem = mem_pool_.Allocate(sizeof(int32_t*));
207 Tuple* tuple_mem = Tuple::Create(sizeof(char) + sizeof(int32_t), &mem_pool_);
208 *reinterpret_cast<int32_t*>(tuple_mem->GetSlot(1)) = val;
209 tuple_mem->SetNotNull(NullIndicatorOffset(0, 1));
210 TupleRow* row = reinterpret_cast<TupleRow*>(tuple_row_mem);
211 row->SetTuple(0, tuple_mem);
212 return row;
213 }
214 void CreateDataSet(int num_buckets, int unique_percent, int dup = 2) {
215 int u_idx = (num_buckets * unique_percent) / 100;
216 TupleRow* row;

Callers

nothing calls this directly

Calls 6

CreateClass · 0.85
NullIndicatorOffsetClass · 0.85
SetNotNullMethod · 0.80
AllocateMethod · 0.45
GetSlotMethod · 0.45
SetTupleMethod · 0.45

Tested by

no test coverage detected