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

Method AesClose

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

Source from the content-addressed store, hash-verified

1948}
1949
1950void StringFunctions::AesClose(FunctionContext* context,
1951 FunctionContext::FunctionStateScope scope) {
1952 if (scope != FunctionContext::THREAD_LOCAL) return;
1953 bool* state = reinterpret_cast<bool*>(
1954 context->GetFunctionState(FunctionContext::THREAD_LOCAL));
1955 if (state != nullptr) {
1956 context->Free(reinterpret_cast<uint8_t*>(state));
1957 context->SetFunctionState(scope, nullptr);
1958 }
1959}
1960
1961// Implementation details and comments are provided in string-functions.cc file.
1962StringVal StringFunctions::AesDecrypt(FunctionContext* ctx, const StringVal& expr,

Callers

nothing calls this directly

Calls 3

GetFunctionStateMethod · 0.80
SetFunctionStateMethod · 0.80
FreeMethod · 0.45

Tested by

no test coverage detected