[refactor](jni) unified jni framework for java udaf (#25591)
Follow https://github.com/apache/doris/pull/25302, and use the unified jni framework to refactor java udaf. This PR has removed the old interfaces to run java udf/udaf. Thanks to the ease of use of the new framework, the core code for modifying UDAF does not exceed 100 lines, and the logic is similar to that of UDF.
This commit is contained in:
@ -138,9 +138,9 @@ Status JavaFunctionCall::execute_impl(FunctionContext* context, Block& block,
|
||||
jobject output_map = JniUtil::convert_to_java_map(env, output_params);
|
||||
long output_address = env->CallLongMethod(jni_ctx->executor, jni_env->executor_evaluate_id,
|
||||
input_map, output_map);
|
||||
RETURN_IF_ERROR(JniUtil::GetJniExceptionMsg(env));
|
||||
env->DeleteLocalRef(input_map);
|
||||
env->DeleteLocalRef(output_map);
|
||||
RETURN_IF_ERROR(JniUtil::GetJniExceptionMsg(env));
|
||||
|
||||
return JniConnector::fill_block(&block, {result}, output_address);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user