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

Method CloseEvaluator

be/src/exprs/case-expr.cc:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void CaseExpr::CloseEvaluator(FunctionContext::FunctionStateScope scope,
72 RuntimeState* state, ScalarExprEvaluator* eval) const {
73 DCHECK_GE(fn_ctx_idx_, 0);
74 FunctionContext* fn_ctx = eval->fn_context(fn_ctx_idx_);
75 void* case_state = fn_ctx->GetFunctionState(FunctionContext::THREAD_LOCAL);
76 fn_ctx->Free(reinterpret_cast<uint8_t*>(case_state));
77 fn_ctx->SetFunctionState(FunctionContext::THREAD_LOCAL, nullptr);
78 ScalarExpr::CloseEvaluator(scope, state, eval);
79}
80
81string CaseExpr::DebugString() const {
82 stringstream out;

Callers 1

CloseMethod · 0.45

Calls 4

fn_contextMethod · 0.80
GetFunctionStateMethod · 0.80
SetFunctionStateMethod · 0.80
FreeMethod · 0.45

Tested by

no test coverage detected