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

Method OffsetFnInit

be/src/exprs/aggregate-functions-ir.cc:3649–3655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3647
3648template <typename T>
3649void AggregateFunctions::OffsetFnInit(FunctionContext* ctx, T* dst) {
3650 DCHECK_EQ(ctx->GetNumArgs(), 3);
3651 DCHECK(ctx->IsArgConstant(1));
3652 DCHECK(ctx->IsArgConstant(2));
3653 DCHECK_EQ(ctx->GetArgType(0)->type, ctx->GetArgType(2)->type);
3654 *dst = *static_cast<T*>(ctx->GetConstantArg(2));
3655}
3656
3657template <>
3658void AggregateFunctions::OffsetFnInit(FunctionContext* ctx, StringVal* dst) {

Callers

nothing calls this directly

Calls 5

CopyStringValFunction · 0.85
GetNumArgsMethod · 0.80
IsArgConstantMethod · 0.80
GetArgTypeMethod · 0.80
GetConstantArgMethod · 0.80

Tested by

no test coverage detected