@@ -100,6 +100,14 @@ jmethodID J_Object_toString;
100100
101101jclass J_DuckDBTime;
102102
103+ jclass J_ProfilerPrintFormat;
104+ jobject J_ProfilerPrintFormat_QUERY_TREE;
105+ jobject J_ProfilerPrintFormat_JSON;
106+ jobject J_ProfilerPrintFormat_QUERY_TREE_OPTIMIZER;
107+ jobject J_ProfilerPrintFormat_NO_OUTPUT;
108+ jobject J_ProfilerPrintFormat_HTML;
109+ jobject J_ProfilerPrintFormat_GRAPHVIZ;
110+
103111static std::vector<jobject> global_refs;
104112
105113template <typename T>
@@ -252,6 +260,18 @@ void create_refs(JNIEnv *env) {
252260 J_DuckVector_varlen = get_field_id (env, J_DuckVector, " varlen_data" , " [Ljava/lang/Object;" );
253261
254262 J_ByteBuffer = make_class_ref (env, " java/nio/ByteBuffer" );
263+
264+ J_ProfilerPrintFormat = make_class_ref (env, " org/duckdb/ProfilerPrintFormat" );
265+ J_ProfilerPrintFormat_QUERY_TREE =
266+ make_static_object_field_ref (env, J_ProfilerPrintFormat, " QUERY_TREE" , " Lorg/duckdb/ProfilerPrintFormat;" );
267+ J_ProfilerPrintFormat_JSON = make_static_object_field_ref (env, J_ProfilerPrintFormat, " JSON" , " Lorg/duckdb/ProfilerPrintFormat;" );
268+ J_ProfilerPrintFormat_QUERY_TREE_OPTIMIZER =
269+ make_static_object_field_ref (env, J_ProfilerPrintFormat, " QUERY_TREE_OPTIMIZER" , " Lorg/duckdb/ProfilerPrintFormat;" );
270+ J_ProfilerPrintFormat_NO_OUTPUT =
271+ make_static_object_field_ref (env, J_ProfilerPrintFormat, " NO_OUTPUT" , " Lorg/duckdb/ProfilerPrintFormat;" );
272+ J_ProfilerPrintFormat_HTML = make_static_object_field_ref (env, J_ProfilerPrintFormat, " HTML" , " Lorg/duckdb/ProfilerPrintFormat;" );
273+ J_ProfilerPrintFormat_GRAPHVIZ =
274+ make_static_object_field_ref (env, J_ProfilerPrintFormat, " GRAPHVIZ" , " Lorg/duckdb/ProfilerPrintFormat;" );
255275}
256276
257277void delete_global_refs (JNIEnv *env) noexcept {
0 commit comments