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

Method Init

be/src/exec/hash-table.cc:166–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166Status HashTableCtx::Init(ObjectPool* pool, RuntimeState* state, int num_build_tuples) {
167 int scratch_row_size = sizeof(Tuple*) * num_build_tuples;
168 scratch_row_ = reinterpret_cast<TupleRow*>(malloc(scratch_row_size));
169 if (UNLIKELY(scratch_row_ == NULL)) {
170 return Status(Substitute("Failed to allocate $0 bytes for scratch row of "
171 "HashTableCtx.", scratch_row_size));
172 }
173 RETURN_IF_ERROR(ScalarExprEvaluator::Create(build_exprs_, state, pool, expr_perm_pool_,
174 build_expr_results_pool_, &build_expr_evals_));
175 DCHECK_EQ(build_exprs_.size(), build_expr_evals_.size());
176 RETURN_IF_ERROR(ScalarExprEvaluator::Create(probe_exprs_, state, pool, expr_perm_pool_,
177 probe_expr_results_pool_, &probe_expr_evals_));
178 DCHECK_EQ(probe_exprs_.size(), probe_expr_evals_.size());
179 return expr_values_cache_.Init(
180 state, expr_perm_pool_->mem_tracker(), build_exprs_results_row_layout_);
181}
182
183Status HashTableCtx::Create(ObjectPool* pool, RuntimeState* state,
184 const std::vector<ScalarExpr*>& build_exprs,

Callers 1

CreateMethod · 0.45

Calls 15

SubstituteFunction · 0.85
CreateClass · 0.85
OKFunction · 0.85
maxFunction · 0.85
minFunction · 0.85
moveFunction · 0.85
batch_sizeMethod · 0.80
StatusClass · 0.70
resetMethod · 0.65
getMethod · 0.65
sizeMethod · 0.45
mem_trackerMethod · 0.45

Tested by

no test coverage detected