Debian Codegraph @

lib/grn_expr_executor.h

raw symbols SCIP
1 /*
2 Copyright (C) 2017-2018 Brazil
3 Copyright (C) 2019-2024 Sutou Kouhei <[email protected]>
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20 #pragma once
21
22 #include "grn_db.h"cxx . . $ `<file>/lib/grn_db.h`/
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 typedef structcxx . . $ $anonymous_type_163eaa8f95da8052_0# {
29 grn_objcxx . . $ grn_obj# source_buffercxx . . $ $anonymous_type_163eaa8f95da8052_0#source_buffer.;
30 grn_objcxx . . $ grn_obj# *sourcecxx . . $ $anonymous_type_163eaa8f95da8052_0#source.;
31 grn_column_cachecxx . . $ grn_column_cache# *cachecxx . . $ $anonymous_type_163eaa8f95da8052_0#cache.;
32 size_t n_required_argscxx . . $ $anonymous_type_163eaa8f95da8052_0#n_required_args.;
33 } grn_expr_executor_scorer_datacxx . . $ grn_expr_executor_scorer_data#;
34
35 typedef struct _grn_expr_executorcxx . . $ _grn_expr_executor# grn_expr_executorcxx . . $ grn_expr_executor#;
36
37 typedef double (*grn_expr_executor_scorer_funccxx . . $ grn_expr_executor_scorer_func#)(
38 grn_ctxcxx . . $ grn_ctx# *ctx,
39 grn_expr_executorcxx . . $ grn_expr_executor# *executor,
40 grn_idcxx . . $ grn_id# id,
41 grn_objcxx . . $ grn_obj# *args,
42 grn_expr_executor_scorer_datacxx . . $ grn_expr_executor_scorer_data# *data);
43
44 typedef structcxx . . $ $anonymous_type_163eaa8f95da8052_1# {
45 uint32_tcxx . . $ uint32_t# codes_start_offsetcxx . . $ $anonymous_type_163eaa8f95da8052_1#codes_start_offset.;
46 uint32_tcxx . . $ uint32_t# codes_end_offsetcxx . . $ $anonymous_type_163eaa8f95da8052_1#codes_end_offset.;
47 grn_proc_ctxcxx . . $ grn_proc_ctx# proc_ctxcxx . . $ $anonymous_type_163eaa8f95da8052_1#proc_ctx.;
48 grn_objcxx . . $ grn_obj# **argscxx . . $ $anonymous_type_163eaa8f95da8052_1#args.;
49 int n_argscxx . . $ $anonymous_type_163eaa8f95da8052_1#n_args.;
50 grn_objcxx . . $ grn_obj# *bufferscxx . . $ $anonymous_type_163eaa8f95da8052_1#buffers.;
51 int n_bufferscxx . . $ $anonymous_type_163eaa8f95da8052_1#n_buffers.;
52 } grn_expr_executor_data_simple_proccxx . . $ grn_expr_executor_data_simple_proc#;
53
54 typedef unioncxx . . $ $anonymous_type_163eaa8f95da8052_2# {
55 structcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_3# {
56 grn_objcxx . . $ grn_obj# *valuecxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_3#value.;
57 } constantcxx . . $ $anonymous_type_163eaa8f95da8052_2#constant.;
58 structcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_4# {
59 grn_objcxx . . $ grn_obj# *columncxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_4#column.;
60 grn_objcxx . . $ grn_obj# value_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_4#value_buffer.;
61 } valuecxx . . $ $anonymous_type_163eaa8f95da8052_2#value.;
62 structcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_5# {
63 grn_objcxx . . $ grn_obj# result_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_5#result_buffer.;
64 void *regexcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_5#regex.;
65 grn_objcxx . . $ grn_obj# value_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_5#value_buffer.;
66 grn_objcxx . . $ grn_obj# *normalizercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_5#normalizer.;
67 } simple_regexpcxx . . $ $anonymous_type_163eaa8f95da8052_2#simple_regexp.;
68 structcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_6# {
69 grn_objcxx . . $ grn_obj# result_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_6#result_buffer.;
70 grn_objcxx . . $ grn_obj# *normalizercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_6#normalizer.;
71 void *regexcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_6#regex.;
72 grn_objcxx . . $ grn_obj# *normalized_sub_textcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_6#normalized_sub_text.;
73 const char *normalized_sub_text_rawcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_6#normalized_sub_text_raw.;
74 unsigned int normalized_sub_text_raw_length_in_bytescxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_6#normalized_sub_text_raw_length_in_bytes.;
75 grn_objcxx . . $ grn_obj# value_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_6#value_buffer.;
76 } simple_matchcxx . . $ $anonymous_type_163eaa8f95da8052_2#simple_match.;
77 structcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_7# {
78 grn_expr_executor_data_simple_proccxx . . $ grn_expr_executor_data_simple_proc# datacxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_7#data.;
79 } simple_proccxx . . $ $anonymous_type_163eaa8f95da8052_2#simple_proc.;
80 structcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_8# {
81 grn_objcxx . . $ grn_obj# result_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_8#result_buffer.;
82 } simple_condition_constantcxx . . $ $anonymous_type_163eaa8f95da8052_2#simple_condition_constant.;
83 structcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_9# {
84 grn_objcxx . . $ grn_obj# result_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_9#result_buffer.;
85 grn_racxx . . $ grn_ra# *racxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_9#ra.;
86 grn_ra_cachecxx . . $ grn_ra_cache# ra_cachecxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_9#ra_cache.;
87 unsigned int ra_element_sizecxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_9#ra_element_size.;
88 grn_objcxx . . $ grn_obj# value_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_9#value_buffer.;
89 grn_objcxx . . $ grn_obj# constant_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_9#constant_buffer.;
90 grn_operator_exec_funccxx . . $ grn_operator_exec_func# *execcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_9#exec.;
91 } simple_condition_racxx . . $ $anonymous_type_163eaa8f95da8052_2#simple_condition_ra.;
92 structcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_10# {
93 boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! need_execcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_10#need_exec.;
94 grn_objcxx . . $ grn_obj# result_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_10#result_buffer.;
95 grn_objcxx . . $ grn_obj# value_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_10#value_buffer.;
96 grn_objcxx . . $ grn_obj# constant_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_10#constant_buffer.;
97 grn_operator_exec_funccxx . . $ grn_operator_exec_func# *execcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_10#exec.;
98 } simple_conditioncxx . . $ $anonymous_type_163eaa8f95da8052_2#simple_condition.;
99 structcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_11# {
100 grn_objcxx . . $ grn_obj# *score_columncxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_11#score_column.;
101 grn_expr_executor_data_simple_proccxx . . $ grn_expr_executor_data_simple_proc# datacxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_11#data.;
102 } simple_proc_scorercxx . . $ $anonymous_type_163eaa8f95da8052_2#simple_proc_scorer.;
103 structcxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_12# {
104 grn_objcxx . . $ grn_obj# *score_columncxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_12#score_column.;
105 grn_objcxx . . $ grn_obj# argscxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_12#args.;
106 grn_objcxx . . $ grn_obj# score_buffercxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_12#score_buffer.;
107 grn_expr_executor_scorer_funccxx . . $ grn_expr_executor_scorer_func# *funcscxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_12#funcs.;
108 grn_expr_executor_scorer_datacxx . . $ grn_expr_executor_scorer_data# *datascxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_12#datas.;
109 size_t n_funcscxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_12#n_funcs.;
110 size_t n_allocated_funcscxx . . $ $anonymous_type_163eaa8f95da8052_2#$anonymous_type_12#n_allocated_funcs.;
111 } scorercxx . . $ $anonymous_type_163eaa8f95da8052_2#scorer.;
112 } grn_expr_executor_datacxx . . $ grn_expr_executor_data#;
113
114 typedef grn_objcxx . . $ grn_obj# *(*grn_expr_executor_exec_funccxx . . $ grn_expr_executor_exec_func#)(grn_ctxcxx . . $ grn_ctx# *ctx,
115 grn_expr_executorcxx . . $ grn_expr_executor# *executor,
116 grn_idcxx . . $ grn_id# id);
117 typedef void (*grn_expr_executor_fin_funccxx . . $ grn_expr_executor_fin_func#)(grn_ctxcxx . . $ grn_ctx# *ctx,
118 grn_expr_executorcxx . . $ grn_expr_executor# *executor);
119
120 struct _grn_expr_executorcxx . . $ _grn_expr_executor# {
121 grn_objcxx . . $ grn_obj# *exprcxx . . $ _grn_expr_executor#expr.;
122 grn_objcxx . . $ grn_obj# *variablecxx . . $ _grn_expr_executor#variable.;
123 grn_objcxx . . $ grn_obj# replace_idscxx . . $ _grn_expr_executor#replace_ids.;
124 grn_objcxx . . $ grn_obj# replace_valuescxx . . $ _grn_expr_executor#replace_values.;
125 grn_expr_executor_exec_funccxx . . $ grn_expr_executor_exec_func# execcxx . . $ _grn_expr_executor#exec.;
126 grn_expr_executor_fin_funccxx . . $ grn_expr_executor_fin_func# fincxx . . $ _grn_expr_executor#fin.;
127 grn_expr_executor_datacxx . . $ grn_expr_executor_data# datacxx . . $ _grn_expr_executor#data.;
128 };
129
130 grn_rccxx . . $ grn_rc#
131 grn_expr_executor_initcxx . . $ grn_expr_executor_init(16b7e5d9c819f729).(grn_ctxcxx . . $ grn_ctx# *ctx,
132 grn_expr_executorcxx . . $ grn_expr_executor# *executor,
133 grn_objcxx . . $ grn_obj# *expr);
134 grn_rccxx . . $ grn_rc#
135 grn_expr_executor_fincxx . . $ grn_expr_executor_fin(55b9315442a275ec).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_expr_executorcxx . . $ grn_expr_executor# *executor);
136
137 grn_expr_executorcxx . . $ grn_expr_executor# *
138 grn_expr_executor_opencxx . . $ grn_expr_executor_open(355ca3c79b2d0b9).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *expr);
139 grn_rccxx . . $ grn_rc#
140 grn_expr_executor_closecxx . . $ grn_expr_executor_close(55b9315442a275ec).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_expr_executorcxx . . $ grn_expr_executor# *executor);
141
142 /* Replace `GRN_OP_GET_VALUE` of `id` object's value with `value`. */
143 grn_rccxx . . $ grn_rc#
144 grn_expr_executor_add_replace_valuecxx . . $ grn_expr_executor_add_replace_value(44de691ea14fbcd).(grn_ctxcxx . . $ grn_ctx# *ctx,
145 grn_expr_executorcxx . . $ grn_expr_executor# *executor,
146 grn_idcxx . . $ grn_id# id,
147 grn_objcxx . . $ grn_obj# *value);
148
149 grn_objcxx . . $ grn_obj# *
150 grn_expr_executor_execcxx . . $ grn_expr_executor_exec(16f9569af33219a9).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_expr_executorcxx . . $ grn_expr_executor# *executor, grn_idcxx . . $ grn_id# id);
151
152 grn_rccxx . . $ grn_rc#
153 grn_expr_executor_exec_batchcxx . . $ grn_expr_executor_exec_batch(16b7e5d9c819f729).(grn_ctxcxx . . $ grn_ctx# *ctx,
154 grn_expr_executorcxx . . $ grn_expr_executor# *executor,
155 grn_table_cursorcxx . . $ grn_table_cursor# *cursor);
156
157 #ifdef __cplusplus
158 }
159 #endif