save for poweroff

This commit is contained in:
slzhou 2022-04-15 12:19:22 +08:00
parent ed597e6e54
commit 5ea40c9d0e
3 changed files with 8 additions and 3 deletions

View File

@ -99,13 +99,16 @@ typedef struct SUdfInterBuf {
// input: block, initFirst // input: block, initFirst
// output: interbuf // output: interbuf
int32_t callUdfAggProcess(SUdfDataBlock block, SUdfInterBuf *interBuf, bool initFirst); int32_t callUdfAggProcess(SUdfDataBlock *block, SUdfInterBuf *interBuf, bool initFirst);
// input: interBuf // input: interBuf
// output: resultData // output: resultData
int32_t callUdfAggFinalize(SUdfInterBuf interBuf, SUdfColumnData* resultData); int32_t callUdfAggFinalize(SUdfInterBuf *interBuf, SUdfColumnData *resultData);
// input: interbuf1, interbuf2
// output: resultBuf
int32_t callUdfAggMerge(SUdfInterBuf *interBuf1, SUdfInterBuf *interBuf2, SUdfInterBuf *resultBuf);
// input: block // input: block
// output: resultData // output: resultData
int32_t callUdfScalaProcess(SUdfDataBlock block, SUdfColumnData* resultData); int32_t callUdfScalaProcess(SUdfDataBlock *block, SUdfColumnData *resultData);
/** /**
* tearn down udf * tearn down udf

View File

@ -31,6 +31,7 @@ enum {
enum { enum {
TSDB_UDF_CALL_AGG_PROC = 0, TSDB_UDF_CALL_AGG_PROC = 0,
TSDB_UDF_CALL_AGG_MERGE,
TSDb_UDF_CALL_AGG_FIN, TSDb_UDF_CALL_AGG_FIN,
TSDB_UDF_CALL_SCALA_PROC, TSDB_UDF_CALL_SCALA_PROC,
}; };

View File

@ -8,6 +8,7 @@
#define malloc malloc #define malloc malloc
#undef free #undef free
#define free free #define free free
int32_t udf1_setup() { int32_t udf1_setup() {
return 0; return 0;
} }