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

Method TrimClose

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

Source from the content-addressed store, hash-verified

776}
777
778void StringFunctions::TrimClose(
779 FunctionContext* context, FunctionContext::FunctionStateScope scope) {
780 if (scope != FunctionContext::THREAD_LOCAL) return;
781 TrimContext* trim_ctx =
782 reinterpret_cast<TrimContext*>(context->GetFunctionState(scope));
783 delete trim_ctx;
784 context->SetFunctionState(scope, nullptr);
785}
786
787template <StringFunctions::TrimPosition D, bool IS_IMPLICIT_WHITESPACE>
788StringVal StringFunctions::DoTrimString(FunctionContext* ctx,

Callers

nothing calls this directly

Calls 2

GetFunctionStateMethod · 0.80
SetFunctionStateMethod · 0.80

Tested by

no test coverage detected