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

Method ReplaceClose

be/src/exprs/string-functions-ir.cc:494–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

492}
493
494void StringFunctions::ReplaceClose(FunctionContext* context,
495 FunctionContext::FunctionStateScope scope) {
496 if (scope != FunctionContext::FRAGMENT_LOCAL) return;
497 ReplaceContext* rptr = reinterpret_cast<ReplaceContext*>
498 (context->GetFunctionState(FunctionContext::FRAGMENT_LOCAL));
499 context->Free(reinterpret_cast<uint8_t*>(rptr));
500 context->SetFunctionState(scope, nullptr);
501}
502
503StringVal StringFunctions::Replace(FunctionContext* context, const StringVal& str,
504 const StringVal& pattern, const StringVal& replace) {

Callers

nothing calls this directly

Calls 3

GetFunctionStateMethod · 0.80
SetFunctionStateMethod · 0.80
FreeMethod · 0.45

Tested by

no test coverage detected