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

Method CreateTupleRow

be/src/exec/hash-table-test.cc:136–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 }
135
136 TupleRow* CreateTupleRow(int32_t val) {
137 uint8_t* tuple_row_mem = mem_pool_.Allocate(sizeof(int32_t*));
138 Tuple* tuple_mem = Tuple::Create(sizeof(char) + sizeof(int32_t), &mem_pool_);
139 *reinterpret_cast<int32_t *>(tuple_mem->GetSlot(1)) = val;
140 tuple_mem->SetNotNull(NullIndicatorOffset(0,1));
141 TupleRow* row = reinterpret_cast<TupleRow*>(tuple_row_mem);
142 row->SetTuple(0, tuple_mem);
143 return row;
144 }
145
146 TupleRow* CreateNullTupleRow() {
147 uint8_t* tuple_row_mem = mem_pool_.Allocate(sizeof(int32_t*));

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