16 #ifndef IMPALA_UDF_SAMPLE_UDA_H
17 #define IMPALA_UDF_SAMPLE_UDA_H
21 using namespace impala_udf;
void AvgMerge(FunctionContext *context, const BufferVal &src, BufferVal *dst)
DoubleVal AvgFinalize(FunctionContext *context, const BufferVal &val)
void StringConcatMerge(FunctionContext *context, const StringVal &src, StringVal *dst)
void CountUpdate(FunctionContext *context, const IntVal &input, BigIntVal *val)
void AvgUpdate(FunctionContext *context, const DoubleVal &input, BufferVal *val)
void CountInit(FunctionContext *context, BigIntVal *val)
This is an example of the COUNT aggregate function.
BigIntVal CountFinalize(FunctionContext *context, const BigIntVal &val)
void CountMerge(FunctionContext *context, const BigIntVal &src, BigIntVal *dst)
StringVal StringConcatFinalize(FunctionContext *context, const StringVal &val)
void StringConcatUpdate(FunctionContext *context, const StringVal &arg1, const StringVal &arg2, StringVal *val)
void StringConcatInit(FunctionContext *context, StringVal *val)
void AvgInit(FunctionContext *context, BufferVal *val)