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

Method GetFunctionState

be/src/udf/udf-ir.cc:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45void* FunctionContext::GetFunctionState(FunctionStateScope scope) const {
46 assert(!impl_->closed_);
47 switch (scope) {
48 case THREAD_LOCAL:
49 return impl_->thread_local_fn_state_;
50 case FRAGMENT_LOCAL:
51 return impl_->fragment_local_fn_state_;
52 default:
53 // TODO: signal error somehow
54 return NULL;
55 }
56}
57
58uint8_t* FnCtxAllocateForResults(FunctionContext* ctx, int64_t byte_size) {
59 assert(ctx != nullptr);

Callers 15

ReplaceCloseMethod · 0.80
ReplaceMethod · 0.80
TrimCloseMethod · 0.80
DoTrimStringMethod · 0.80
RegexpCloseMethod · 0.80
RegexpExtractMethod · 0.80
RegexpReplaceMethod · 0.80
RegexpMatchCount4ArgsMethod · 0.80
ParseUrlMethod · 0.80
ParseUrlCloseMethod · 0.80
ParseUrlKeyMethod · 0.80
AesCloseMethod · 0.80

Calls

no outgoing calls

Tested by 13

TestGetFnAttrsFunction · 0.64
ValidateSharedStateFunction · 0.64
ValidateSharedStateCloseFunction · 0.64
CountFunction · 0.64
CountCloseFunction · 0.64
ConstantArgFunction · 0.64
ConstantArgCloseFunction · 0.64
BooleanVal ValidateOpenFunction · 0.64
ValidateOpenCloseFunction · 0.64
BadExpr2PrepareFunction · 0.64
BadExprCloseFunction · 0.64
MemTestFunction · 0.64