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

Method CreateNullTupleRow

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

Source from the content-addressed store, hash-verified

144 }
145
146 TupleRow* CreateNullTupleRow() {
147 uint8_t* tuple_row_mem = mem_pool_.Allocate(sizeof(int32_t*));
148 Tuple* tuple_mem = Tuple::Create(sizeof(int32_t), &mem_pool_);
149 tuple_mem->SetNull(NullIndicatorOffset(0,1));
150 TupleRow* row = reinterpret_cast<TupleRow*>(tuple_row_mem);
151 row->SetTuple(0, tuple_mem);
152 return row;
153 }
154
155 // Wrapper to call private methods on HashTable
156 // TODO: understand google testing, there must be a more natural way to do this

Callers

nothing calls this directly

Calls 5

CreateClass · 0.85
NullIndicatorOffsetClass · 0.85
SetNullMethod · 0.80
AllocateMethod · 0.45
SetTupleMethod · 0.45

Tested by

no test coverage detected