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

Method SetFunctionState

be/src/udf/udf.cc:489–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489void FunctionContext::SetFunctionState(FunctionStateScope scope, void* ptr) {
490 assert(!impl_->closed_);
491 switch (scope) {
492 case THREAD_LOCAL:
493 impl_->thread_local_fn_state_ = ptr;
494 break;
495 case FRAGMENT_LOCAL:
496 impl_->fragment_local_fn_state_ = ptr;
497 break;
498 default:
499 stringstream ss;
500 ss << "Unknown FunctionStateScope: " << scope;
501 SetError(ss.str().c_str());
502 }
503}
504
505const BuiltInFunctions* FunctionContext::Functions() const {
506 return &impl_->functions_;

Callers 15

ReplacePrepareMethod · 0.80
ReplaceCloseMethod · 0.80
DoTrimPrepareMethod · 0.80
TrimCloseMethod · 0.80
RegexpPrepareMethod · 0.80
RegexpCloseMethod · 0.80
ParseUrlPrepareMethod · 0.80
ParseUrlCloseMethod · 0.80
AesPrepareMethod · 0.80
AesCloseMethod · 0.80
SetLookupPrepareMethod · 0.80

Calls 1

strMethod · 0.45

Tested by 14

SetUpMethod · 0.64
ValidateSharedStateCloseFunction · 0.64
CountPrepareFunction · 0.64
CountCloseFunction · 0.64
ConstantArgPrepareFunction · 0.64
ConstantArgCloseFunction · 0.64
ValidateOpenPrepareFunction · 0.64
ValidateOpenCloseFunction · 0.64
BadExprPrepareFunction · 0.64
BadExpr2PrepareFunction · 0.64
BadExprCloseFunction · 0.64