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

Function Count

be/src/testutil/test-udfs.cc:313–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313IMPALA_UDF_EXPORT
314BigIntVal Count(FunctionContext* context) {
315 uint64_t* state = reinterpret_cast<uint64_t*>(
316 context->GetFunctionState(FunctionContext::THREAD_LOCAL));
317 return BigIntVal(++(*state));
318}
319
320IMPALA_UDF_EXPORT
321void CountClose(FunctionContext* context, FunctionContext::FunctionStateScope scope) {

Callers

nothing calls this directly

Calls 2

BigIntValClass · 0.85
GetFunctionStateMethod · 0.80

Tested by

no test coverage detected