-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpf_uda.h
30 lines (22 loc) · 1.34 KB
/
gpf_uda.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef SAMPLES_UDA_H
#define SAMPLES_UDA_H
#include <impala_udf/udf.h>
using namespace impala_udf;
void FirstInit(FunctionContext* context, StringVal* val);
void FirstUpdate(FunctionContext* context, const StringVal& input, StringVal* val);
void FirstMerge(FunctionContext* context, const StringVal& src, StringVal* dst);
StringVal FirstSerialize(FunctionContext* context, const StringVal& val);
StringVal FirstFinalize(FunctionContext* context, const StringVal& val);
void OrInit(FunctionContext* context, BooleanVal* val);
void OrUpdate(FunctionContext* context, const BooleanVal& input, BooleanVal* val);
void OrMerge(FunctionContext* context, const BooleanVal& src, BooleanVal* dst);
BooleanVal OrFinalize(FunctionContext* context, const BooleanVal& val);
void BitOrInit(FunctionContext* context, BigIntVal* val);
void BitOrUpdate(FunctionContext* context, const BigIntVal& input, BigIntVal* val);
void BitOrMerge(FunctionContext* context, const BigIntVal& src, BigIntVal* dst);
BigIntVal BitOrFinalize(FunctionContext* context, const BigIntVal& val);
void OrIntInit(FunctionContext* context, BooleanVal* val);
void OrIntUpdate(FunctionContext* context, const IntVal& input, BooleanVal* val);
void OrIntMerge(FunctionContext* context, const BooleanVal& src, BooleanVal* dst);
BooleanVal OrIntFinalize(FunctionContext* context, const BooleanVal& val);
#endif