| 1 | /* |
| 2 | Copyright (C) 2018 Brazil |
| 3 | Copyright (C) 2019-2025 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 | #include "grn.h"cxx . . $ `<file>/lib/grn.h`/ |
| 21 | #include "grn_accessor.h"cxx . . $ `<file>/lib/grn_accessor.h`/ |
| 22 | #include "grn_db.h"cxx . . $ `<file>/lib/grn_db.h`/ |
| 23 | #include "grn_ii.h"cxx . . $ `<file>/lib/grn_ii.h`/ |
| 24 | #include "grn_report.h"cxx . . $ `<file>/lib/grn_report.h`/ |
| 25 | #include "grn_posting.h"cxx . . $ `<file>/lib/grn_posting.h`/ |
| 26 | |
| 27 | #include <stdio.h> |
| 28 | |
| 29 | grn_accessorcxx . . $ grn_accessor# * |
| 30 | grn_accessor_newcxx . . $ grn_accessor_new(16133f094ee8dd82).(grn_ctxcxx . . $ grn_ctx# *ctx) |
| 31 | { |
| 32 | grn_accessorcxx . . $ grn_accessor# *res = GRN_CALLOCcxx . . $ `lib/grn_alloc.h:42:9`!(sizeof(grn_accessor)); |
| 33 | if (!res) { |
| 34 | return NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 35 | } |
| 36 | |
| 37 | res->headercxx . . $ _grn_accessor#header..typecxx . . $ _grn_obj_header#type. = GRN_ACCESSORcxx . . $ `include/groonga/groonga.h:880:9`!; |
| 38 | res->headercxx . . $ _grn_accessor#header..impl_flagscxx . . $ _grn_obj_header#impl_flags. = GRN_OBJ_ALLOCATEDcxx . . $ `lib/grn_ctx.h:163:9`!; |
| 39 | res->headercxx . . $ _grn_accessor#header..flagscxx . . $ _grn_obj_header#flags. = 0; |
| 40 | res->headercxx . . $ _grn_accessor#header..domaincxx . . $ _grn_obj_header#domain. = GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!; |
| 41 | res->rangecxx . . $ _grn_accessor#range. = GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!; |
| 42 | res->actioncxx . . $ _grn_accessor#action. = GRN_ACCESSOR_VOIDcxx . . $ GRN_ACCESSOR_VOID.; |
| 43 | res->offsetcxx . . $ _grn_accessor#offset. = 0; |
| 44 | res->objcxx . . $ _grn_accessor#obj. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 45 | res->nextcxx . . $ _grn_accessor#next. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 46 | res->reference_countcxx . . $ _grn_accessor#reference_count. = 1; |
| 47 | grn_log_reference_countcxx . . $ `lib/grn_db.h:51:11`!("%p: accessor: %p: %u\n", |
| 48 | ctx, |
| 49 | res, |
| 50 | res->reference_count); |
| 51 | return res; |
| 52 | } |
| 53 | |
| 54 | grn_objcxx . . $ grn_obj# * |
| 55 | grn_accessor_copycxx . . $ grn_accessor_copy(e9f40e4080908c1e).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *accessor) |
| 56 | { |
| 57 | grn_accessorcxx . . $ grn_accessor# *new_accessor = grn_accessor_newcxx . . $ grn_accessor_new(16133f094ee8dd82).(ctx); |
| 58 | grn_accessorcxx . . $ grn_accessor# *a = (grn_accessorcxx . . $ grn_accessor# *)accessor; |
| 59 | grn_accessorcxx . . $ grn_accessor# *new_a = new_accessor; |
| 60 | for (; a; a = a->nextcxx . . $ _grn_accessor#next.) { |
| 61 | new_a->actioncxx . . $ _grn_accessor#action. = a->actioncxx . . $ _grn_accessor#action.; |
| 62 | new_a->objcxx . . $ _grn_accessor#obj. = a->objcxx . . $ _grn_accessor#obj.; |
| 63 | if (new_a->objcxx . . $ _grn_accessor#obj.) { |
| 64 | grn_obj_refercxx . . $ grn_obj_refer(4865d068a46d0f83).(ctx, new_a->objcxx . . $ _grn_accessor#obj.); |
| 65 | } |
| 66 | if (a->nextcxx . . $ _grn_accessor#next.) { |
| 67 | new_a->nextcxx . . $ _grn_accessor#next. = grn_accessor_newcxx . . $ grn_accessor_new(16133f094ee8dd82).(ctx); |
| 68 | new_a = new_a->nextcxx . . $ _grn_accessor#next.; |
| 69 | } |
| 70 | } |
| 71 | return (grn_objcxx . . $ grn_obj# *)new_accessor; |
| 72 | } |
| 73 | |
| 74 | grn_accessor_actioncxx . . $ grn_accessor_action# |
| 75 | grn_accessor_get_actioncxx . . $ grn_accessor_get_action(8b4a9bdec285b2ae).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *accessor) |
| 76 | { |
| 77 | grn_accessorcxx . . $ grn_accessor# *a = (grn_accessorcxx . . $ grn_accessor# *)accessor; |
| 78 | return a->actioncxx . . $ _grn_accessor#action.; |
| 79 | } |
| 80 | |
| 81 | grn_objcxx . . $ grn_obj# * |
| 82 | grn_accessor_get_objcxx . . $ grn_accessor_get_obj(e9f40e4080908c1e).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *accessor) |
| 83 | { |
| 84 | grn_accessorcxx . . $ grn_accessor# *a = (grn_accessorcxx . . $ grn_accessor# *)accessor; |
| 85 | return a->objcxx . . $ _grn_accessor#obj.; |
| 86 | } |
| 87 | |
| 88 | grn_objcxx . . $ grn_obj# * |
| 89 | grn_accessor_get_nextcxx . . $ grn_accessor_get_next(e9f40e4080908c1e).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *accessor) |
| 90 | { |
| 91 | grn_accessorcxx . . $ grn_accessor# *a = (grn_accessorcxx . . $ grn_accessor# *)accessor; |
| 92 | return (grn_objcxx . . $ grn_obj# *)(a->nextcxx . . $ _grn_accessor#next.); |
| 93 | } |
| 94 | |
| 95 | static grn_rccxx . . $ grn_rc# |
| 96 | grn_accessor_resolve_one_index_columncxx . . $ grn_accessor_resolve_one_index_column(bcc582a864bc9010).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 97 | grn_accessorcxx . . $ grn_accessor# *accessor, |
| 98 | grn_objcxx . . $ grn_obj# *current_res, |
| 99 | grn_objcxx . . $ grn_obj# **next_res) |
| 100 | { |
| 101 | grn_rccxx . . $ grn_rc# rc = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 102 | grn_objcxx . . $ grn_obj# *column = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 103 | grn_idcxx . . $ grn_id# next_res_domain_id = GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!; |
| 104 | |
| 105 | { |
| 106 | grn_objcxx . . $ grn_obj# *index; |
| 107 | grn_objcxx . . $ grn_obj# source_ids; |
| 108 | size_t i, n_ids; |
| 109 | |
| 110 | index = accessor->objcxx . . $ _grn_accessor#obj.; |
| 111 | next_res_domain_id = index->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.; |
| 112 | |
| 113 | GRN_RECORD_INITcxx . . $ `include/groonga/groonga.h:2868:9`!(&source_ids, GRN_OBJ_VECTORcxx . . $ `include/groonga/groonga.h:2734:9`!, GRN_DB_VOID); |
| 114 | grn_obj_get_infocxx . . $ grn_obj_get_info(333a81d4a8f20670).(ctx, index, GRN_INFO_SOURCEcxx . . $ GRN_INFO_SOURCE., &source_ids); |
| 115 | n_ids = GRN_RECORD_VECTOR_SIZEcxx . . $ `include/groonga/groonga.h:3264:9`!(&source_ids); |
| 116 | for (i = 0; i < n_ids; i++) { |
| 117 | grn_idcxx . . $ grn_id# source_id; |
| 118 | grn_objcxx . . $ grn_obj# *source; |
| 119 | |
| 120 | source_id = GRN_RECORD_VALUE_ATcxx . . $ `include/groonga/groonga.h:3148:9`!(&source_ids, i); |
| 121 | source = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, source_id); |
| 122 | if (DB_OBJcxx . . $ `lib/grn_db.h:62:9`!(source)->rangecxx . . $ $anonymous_type_4a7c1014017e4c5d_0#range. == next_res_domain_id) { |
| 123 | column = source; |
| 124 | break; |
| 125 | } |
| 126 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, source); |
| 127 | } |
| 128 | |
| 129 | if (!column) { |
| 130 | return GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; |
| 131 | } |
| 132 | } |
| 133 | |
| 134 | { |
| 135 | grn_rccxx . . $ grn_rc# rc; |
| 136 | grn_objcxx . . $ grn_obj# *next_res_domain = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, next_res_domain_id); |
| 137 | *next_res = grn_table_createcxx . . $ grn_table_create(51df5019e8d3bdc1).(ctx, |
| 138 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 139 | 0, |
| 140 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 141 | GRN_OBJ_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:688:9`! | GRN_OBJ_WITH_SUBRECcxx . . $ `include/groonga/groonga.h:812:9`!, |
| 142 | next_res_domain, |
| 143 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 144 | rc = ctx->rccxx . . $ _grn_ctx#rc.; |
| 145 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, next_res_domain); |
| 146 | if (!*next_res) { |
| 147 | return rc; |
| 148 | } |
| 149 | } |
| 150 | |
| 151 | { |
| 152 | grn_obj_flagscxx . . $ grn_obj_flags# column_value_flags = 0; |
| 153 | grn_objcxx . . $ grn_obj# column_value; |
| 154 | grn_posting_internalcxx . . $ grn_posting_internal# add_posting = {0}; |
| 155 | |
| 156 | if (column->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_COLUMN_VAR_SIZEcxx . . $ `include/groonga/groonga.h:901:9`!) { |
| 157 | column_value_flags |= GRN_OBJ_VECTORcxx . . $ `include/groonga/groonga.h:2734:9`!; |
| 158 | } |
| 159 | GRN_VALUE_FIX_SIZE_INITcxx . . $ `include/groonga/groonga.h:2738:9`!(&column_value, |
| 160 | column_value_flags, |
| 161 | next_res_domain_id); |
| 162 | |
| 163 | add_posting.sidcxx . . $ $anonymous_type_fe7b80c5b60468ac_0#sid. = 0; |
| 164 | add_posting.poscxx . . $ $anonymous_type_fe7b80c5b60468ac_0#pos. = 0; |
| 165 | add_posting.weight_floatcxx . . $ $anonymous_type_fe7b80c5b60468ac_0#weight_float. = 0; |
| 166 | |
| 167 | GRN_HASH_EACH_BEGINcxx . . $ `include/groonga/hash.h:141:9`!(ctx, (grn_hash *)current_res, cursor, id) |
| 168 | { |
| 169 | void *key; |
| 170 | void *value; |
| 171 | grn_hash_cursor_get_key_valuecxx . . $ grn_hash_cursor_get_key_value(c02614ac44805bc8).(ctx, cursor, &key, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, &value); |
| 172 | |
| 173 | grn_idcxx . . $ grn_id# *tid = key; |
| 174 | grn_rset_recinfocxx . . $ grn_rset_recinfo# *recinfo = value; |
| 175 | |
| 176 | add_posting.weight_floatcxx . . $ $anonymous_type_fe7b80c5b60468ac_0#weight_float. = (float)(recinfo->scorecxx . . $ $anonymous_type_cc21d51c44e8310a_0#score.); |
| 177 | |
| 178 | GRN_BULK_REWINDcxx . . $ `include/groonga/groonga.h:2599:9`!(&column_value); |
| 179 | grn_obj_get_valuecxx . . $ grn_obj_get_value(6e06fec66698a6a).(ctx, column, *tid, &column_value); |
| 180 | |
| 181 | size_t n_elements = GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(&column_value) / sizeof(grn_idcxx . . $ grn_id#); |
| 182 | for (size_t i = 0; i < n_elements; i++) { |
| 183 | add_posting.ridcxx . . $ $anonymous_type_fe7b80c5b60468ac_0#rid. = GRN_RECORD_VALUE_ATcxx . . $ `include/groonga/groonga.h:3148:9`!(&column_value, i); |
| 184 | rc = grn_ii_posting_add_floatcxx . . $ grn_ii_posting_add_float(62be95d159451db1).(ctx, |
| 185 | (grn_postingcxx . . $ grn_posting# *)(&add_posting), |
| 186 | (grn_hashcxx . . $ grn_hash# *)*next_res, |
| 187 | GRN_OP_ORcxx . . $ GRN_OP_OR.); |
| 188 | if (rc != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 189 | break; |
| 190 | } |
| 191 | } |
| 192 | if (rc != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 193 | break; |
| 194 | } |
| 195 | } |
| 196 | GRN_HASH_EACH_ENDcxx . . $ `include/groonga/hash.h:159:9`!(ctx, cursor); |
| 197 | |
| 198 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &column_value); |
| 199 | } |
| 200 | |
| 201 | if (rc != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 202 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, *next_res); |
| 203 | } |
| 204 | |
| 205 | return rc; |
| 206 | } |
| 207 | |
| 208 | static grn_rccxx . . $ grn_rc# |
| 209 | grn_accessor_resolve_one_tablecxx . . $ grn_accessor_resolve_one_table(bcc582a864bc9010).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 210 | grn_accessorcxx . . $ grn_accessor# *accessor, |
| 211 | grn_objcxx . . $ grn_obj# *current_res, |
| 212 | grn_objcxx . . $ grn_obj# **next_res) |
| 213 | { |
| 214 | grn_rccxx . . $ grn_rc# rc = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 215 | grn_objcxx . . $ grn_obj# *table; |
| 216 | |
| 217 | table = accessor->objcxx . . $ _grn_accessor#obj.; |
| 218 | *next_res = grn_table_createcxx . . $ grn_table_create(51df5019e8d3bdc1).(ctx, |
| 219 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 220 | 0, |
| 221 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 222 | GRN_OBJ_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:688:9`! | GRN_OBJ_WITH_SUBRECcxx . . $ `include/groonga/groonga.h:812:9`!, |
| 223 | table, |
| 224 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 225 | if (!*next_res) { |
| 226 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 227 | } |
| 228 | |
| 229 | grn_report_tablecxx . . $ grn_report_table(a946cb14e70570c4).(ctx, "[accessor][resolve]", "", table); |
| 230 | |
| 231 | { |
| 232 | grn_posting_internalcxx . . $ grn_posting_internal# posting = {0}; |
| 233 | |
| 234 | GRN_HASH_EACH_BEGINcxx . . $ `include/groonga/hash.h:141:9`!(ctx, (grn_hash *)current_res, cursor, id) |
| 235 | { |
| 236 | void *key; |
| 237 | void *value; |
| 238 | grn_idcxx . . $ grn_id# *record_id; |
| 239 | grn_rset_recinfocxx . . $ grn_rset_recinfo# *recinfo; |
| 240 | grn_idcxx . . $ grn_id# next_record_id; |
| 241 | |
| 242 | grn_hash_cursor_get_key_valuecxx . . $ grn_hash_cursor_get_key_value(c02614ac44805bc8).(ctx, cursor, &key, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, &value); |
| 243 | record_id = key; |
| 244 | recinfo = value; |
| 245 | next_record_id = grn_table_getcxx . . $ grn_table_get(5676c91e20172100).(ctx, table, record_id, sizeof(grn_idcxx . . $ grn_id#)); |
| 246 | if (next_record_id == GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!) { |
| 247 | continue; |
| 248 | } |
| 249 | |
| 250 | posting.ridcxx . . $ $anonymous_type_fe7b80c5b60468ac_0#rid. = next_record_id; |
| 251 | posting.weight_floatcxx . . $ $anonymous_type_fe7b80c5b60468ac_0#weight_float. = (float)(recinfo->scorecxx . . $ $anonymous_type_cc21d51c44e8310a_0#score.); |
| 252 | rc = grn_ii_posting_add_floatcxx . . $ grn_ii_posting_add_float(62be95d159451db1).(ctx, |
| 253 | (grn_postingcxx . . $ grn_posting# *)(&posting), |
| 254 | (grn_hashcxx . . $ grn_hash# *)*next_res, |
| 255 | GRN_OP_ORcxx . . $ GRN_OP_OR.); |
| 256 | if (rc != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 257 | break; |
| 258 | } |
| 259 | } |
| 260 | GRN_HASH_EACH_ENDcxx . . $ `include/groonga/hash.h:159:9`!(ctx, cursor); |
| 261 | } |
| 262 | |
| 263 | if (rc != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 264 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, *next_res); |
| 265 | } |
| 266 | |
| 267 | return rc; |
| 268 | } |
| 269 | |
| 270 | static grn_rccxx . . $ grn_rc# |
| 271 | grn_accessor_resolve_one_data_column_sequentialcxx . . $ grn_accessor_resolve_one_data_column_sequential(bcc582a864bc9010).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 272 | grn_accessorcxx . . $ grn_accessor# *accessor, |
| 273 | grn_objcxx . . $ grn_obj# *current_res, |
| 274 | grn_objcxx . . $ grn_obj# **next_res) |
| 275 | { |
| 276 | grn_objcxx . . $ grn_obj# *column = accessor->objcxx . . $ _grn_accessor#obj.; |
| 277 | grn_report_columncxx . . $ grn_report_column(a946cb14e70570c4).(ctx, "[accessor][resolve][data-column]", "", column); |
| 278 | |
| 279 | grn_idcxx . . $ grn_id# next_res_domain_id = column->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.; |
| 280 | grn_objcxx . . $ grn_obj# *next_res_domain = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, next_res_domain_id); |
| 281 | *next_res = grn_table_createcxx . . $ grn_table_create(51df5019e8d3bdc1).(ctx, |
| 282 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 283 | 0, |
| 284 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 285 | GRN_OBJ_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:688:9`! | GRN_OBJ_WITH_SUBRECcxx . . $ `include/groonga/groonga.h:812:9`!, |
| 286 | next_res_domain, |
| 287 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 288 | if (!*next_res) { |
| 289 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 290 | } |
| 291 | |
| 292 | { |
| 293 | grn_objcxx . . $ grn_obj# value; |
| 294 | GRN_VOID_INITcxx . . $ `include/groonga/groonga.h:2749:9`!(&value); |
| 295 | GRN_TABLE_EACH_BEGINcxx . . $ `include/groonga/table.h:614:9`!(ctx, next_res_domain, cursor, id) |
| 296 | { |
| 297 | GRN_BULK_REWINDcxx . . $ `include/groonga/groonga.h:2599:9`!(&value); |
| 298 | grn_obj_get_valuecxx . . $ grn_obj_get_value(6e06fec66698a6a).(ctx, column, id, &value); |
| 299 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! found = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 300 | switch (value.headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type.) { |
| 301 | case GRN_BULKcxx . . $ `include/groonga/groonga.h:868:9`!: |
| 302 | found = |
| 303 | (grn_table_getcxx . . $ grn_table_get(5676c91e20172100).(ctx, |
| 304 | current_res, |
| 305 | GRN_BULK_HEADcxx . . $ `include/groonga/groonga.h:2648:9`!(&value), |
| 306 | (unsigned int)GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(&value)) != GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!); |
| 307 | |
| 308 | break; |
| 309 | case GRN_UVECTORcxx . . $ `include/groonga/groonga.h:875:9`!: |
| 310 | { |
| 311 | size_t i, n_elements; |
| 312 | n_elements = GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(&value) / sizeof(grn_idcxx . . $ grn_id#); |
| 313 | for (i = 0; i < n_elements; i++) { |
| 314 | grn_idcxx . . $ grn_id# id = GRN_RECORD_VALUE_ATcxx . . $ `include/groonga/groonga.h:3148:9`!(&value, i); |
| 315 | found = (grn_table_getcxx . . $ grn_table_get(5676c91e20172100).(ctx, current_res, &id, sizeof(grn_idcxx . . $ grn_id#)) != |
| 316 | GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!); |
| 317 | if (found) { |
| 318 | break; |
| 319 | } |
| 320 | } |
| 321 | } |
| 322 | break; |
| 323 | default: |
| 324 | break; |
| 325 | } |
| 326 | if (found) { |
| 327 | grn_posting_internalcxx . . $ grn_posting_internal# posting = {0}; |
| 328 | posting.ridcxx . . $ $anonymous_type_fe7b80c5b60468ac_0#rid. = id; |
| 329 | grn_ii_posting_add_floatcxx . . $ grn_ii_posting_add_float(62be95d159451db1).(ctx, |
| 330 | (grn_postingcxx . . $ grn_posting# *)(&posting), |
| 331 | (grn_hashcxx . . $ grn_hash# *)*next_res, |
| 332 | GRN_OP_ORcxx . . $ GRN_OP_OR.); |
| 333 | } |
| 334 | } |
| 335 | GRN_TABLE_EACH_ENDcxx . . $ `include/groonga/table.h:665:9`!(ctx, cursor); |
| 336 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &value); |
| 337 | } |
| 338 | |
| 339 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 340 | } |
| 341 | |
| 342 | static grn_rccxx . . $ grn_rc# |
| 343 | grn_accessor_resolve_one_data_column_indexcxx . . $ grn_accessor_resolve_one_data_column_index(c1728c2d727d0903).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 344 | grn_index_datumcxx . . $ grn_index_datum# *index_datum, |
| 345 | grn_objcxx . . $ grn_obj# *current_res, |
| 346 | grn_objcxx . . $ grn_obj# **next_res) |
| 347 | { |
| 348 | if (index_datum->indexcxx . . $ _grn_index_datum#index.->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain. != current_res->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.) { |
| 349 | char index_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 350 | int index_name_size; |
| 351 | grn_objcxx . . $ grn_obj# *expected; |
| 352 | char expected_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 353 | int expected_name_size; |
| 354 | |
| 355 | index_name_size = |
| 356 | grn_obj_namecxx . . $ grn_obj_name(a51d1bff955f2f21).(ctx, index_datum->indexcxx . . $ _grn_index_datum#index., index_name, GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!); |
| 357 | expected = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, current_res->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.); |
| 358 | expected_name_size = |
| 359 | grn_obj_namecxx . . $ grn_obj_name(a51d1bff955f2f21).(ctx, expected, expected_name, GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!); |
| 360 | ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, |
| 361 | "[accessor][resolve][data-column] lexicon mismatch index: " |
| 362 | "<%.*s> " |
| 363 | "expected:<%.*s>", |
| 364 | index_name_size, |
| 365 | index_name, |
| 366 | expected_name_size, |
| 367 | expected_name); |
| 368 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 369 | } |
| 370 | |
| 371 | grn_report_indexcxx . . $ grn_report_index(a946cb14e70570c4).(ctx, |
| 372 | "[accessor][resolve][data-column]", |
| 373 | "", |
| 374 | index_datum->indexcxx . . $ _grn_index_datum#index.); |
| 375 | { |
| 376 | grn_rccxx . . $ grn_rc# rc; |
| 377 | grn_idcxx . . $ grn_id# next_res_domain_id = DB_OBJcxx . . $ `lib/grn_db.h:62:9`!(index_datum->index)->rangecxx . . $ $anonymous_type_4a7c1014017e4c5d_0#range.; |
| 378 | grn_objcxx . . $ grn_obj# *next_res_domain = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, next_res_domain_id); |
| 379 | *next_res = grn_table_createcxx . . $ grn_table_create(51df5019e8d3bdc1).(ctx, |
| 380 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 381 | 0, |
| 382 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 383 | GRN_OBJ_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:688:9`! | GRN_OBJ_WITH_SUBRECcxx . . $ `include/groonga/groonga.h:812:9`!, |
| 384 | next_res_domain, |
| 385 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 386 | rc = ctx->rccxx . . $ _grn_ctx#rc.; |
| 387 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, next_res_domain); |
| 388 | if (!*next_res) { |
| 389 | return rc; |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | { |
| 394 | grn_rccxx . . $ grn_rc# rc = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 395 | grn_objcxx . . $ grn_obj# *index_column = index_datum->indexcxx . . $ _grn_index_datum#index.; |
| 396 | grn_objcxx . . $ grn_obj# *index_cursor = |
| 397 | grn_index_cursor_opencxx . . $ grn_index_cursor_open(a3e8486abe83b7f2).(ctx, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, index_column, GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!, GRN_ID_MAXcxx . . $ `include/groonga/groonga.h:56:9`!, 0); |
| 398 | if (!index_cursor) { |
| 399 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, *next_res); |
| 400 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 401 | } |
| 402 | if (index_datum->sectioncxx . . $ _grn_index_datum#section. > 0) { |
| 403 | rc = grn_index_cursor_set_section_idcxx . . $ grn_index_cursor_set_section_id(aedbc3eaefbe393f).(ctx, |
| 404 | index_cursor, |
| 405 | index_datum->sectioncxx . . $ _grn_index_datum#section.); |
| 406 | } |
| 407 | if (rc != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 408 | grn_obj_closecxx . . $ grn_obj_close(4865d068a46d0f83).(ctx, index_cursor); |
| 409 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, *next_res); |
| 410 | return ctx->rccxx . . $ _grn_ctx#rc.; |
| 411 | } |
| 412 | |
| 413 | GRN_HASH_EACH_BEGINcxx . . $ `include/groonga/hash.h:141:9`!(ctx, (grn_hash *)current_res, cursor, id) |
| 414 | { |
| 415 | void *key; |
| 416 | void *value; |
| 417 | grn_hash_cursor_get_key_valuecxx . . $ grn_hash_cursor_get_key_value(c02614ac44805bc8).(ctx, cursor, &key, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, &value); |
| 418 | |
| 419 | grn_idcxx . . $ grn_id# *term_id = key; |
| 420 | grn_rset_recinfocxx . . $ grn_rset_recinfo# *recinfo = value; |
| 421 | |
| 422 | rc = grn_index_cursor_set_term_idcxx . . $ grn_index_cursor_set_term_id(aedbc3eaefbe393f).(ctx, index_cursor, *term_id); |
| 423 | if (rc == GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 424 | rc = grn_result_set_add_index_cursorcxx . . $ grn_result_set_add_index_cursor(63f962fa8fd21495).(ctx, |
| 425 | (grn_hashcxx . . $ grn_hash# *)(*next_res), |
| 426 | index_cursor, |
| 427 | recinfo->scorecxx . . $ $anonymous_type_cc21d51c44e8310a_0#score., |
| 428 | 1, |
| 429 | GRN_OP_ORcxx . . $ GRN_OP_OR.); |
| 430 | } |
| 431 | |
| 432 | if (rc != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 433 | break; |
| 434 | } |
| 435 | } |
| 436 | GRN_HASH_EACH_ENDcxx . . $ `include/groonga/hash.h:159:9`!(ctx, cursor); |
| 437 | grn_obj_closecxx . . $ grn_obj_close(4865d068a46d0f83).(ctx, index_cursor); |
| 438 | |
| 439 | if (rc != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 440 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, *next_res); |
| 441 | } |
| 442 | |
| 443 | return rc; |
| 444 | } |
| 445 | } |
| 446 | |
| 447 | static grn_rccxx . . $ grn_rc# |
| 448 | grn_accessor_resolve_one_data_columncxx . . $ grn_accessor_resolve_one_data_column(bcc582a864bc9010).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 449 | grn_accessorcxx . . $ grn_accessor# *accessor, |
| 450 | grn_objcxx . . $ grn_obj# *current_res, |
| 451 | grn_objcxx . . $ grn_obj# **next_res) |
| 452 | { |
| 453 | grn_rccxx . . $ grn_rc# rc = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 454 | grn_index_datumcxx . . $ grn_index_datum# index_datum; |
| 455 | unsigned int n_index_data; |
| 456 | |
| 457 | n_index_data = |
| 458 | grn_column_get_all_index_datacxx . . $ grn_column_get_all_index_data(761aa4a629c570c6).(ctx, accessor->objcxx . . $ _grn_accessor#obj., &index_datum, 1); |
| 459 | if (n_index_data == 0) { |
| 460 | rc = grn_accessor_resolve_one_data_column_sequentialcxx . . $ grn_accessor_resolve_one_data_column_sequential(bcc582a864bc9010).(ctx, |
| 461 | accessor, |
| 462 | current_res, |
| 463 | next_res); |
| 464 | } else { |
| 465 | rc = grn_accessor_resolve_one_data_column_indexcxx . . $ grn_accessor_resolve_one_data_column_index(c1728c2d727d0903).(ctx, |
| 466 | &index_datum, |
| 467 | current_res, |
| 468 | next_res); |
| 469 | grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, index_datum.indexcxx . . $ _grn_index_datum#index.); |
| 470 | } |
| 471 | |
| 472 | return rc; |
| 473 | } |
| 474 | |
| 475 | grn_rccxx . . $ grn_rc# |
| 476 | grn_accessor_resolvecxx . . $ grn_accessor_resolve(377db51441efe675).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 477 | grn_objcxx . . $ grn_obj# *accessor, |
| 478 | int depth, |
| 479 | grn_objcxx . . $ grn_obj# *base_res, |
| 480 | grn_objcxx . . $ grn_obj# *res, |
| 481 | grn_operatorcxx . . $ grn_operator# op) |
| 482 | { |
| 483 | grn_rccxx . . $ grn_rc# rc = GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 484 | grn_accessorcxx . . $ grn_accessor# *a; |
| 485 | grn_objcxx . . $ grn_obj# accessor_stack; |
| 486 | int i, n_accessors; |
| 487 | grn_objcxx . . $ grn_obj# *current_res = base_res; |
| 488 | |
| 489 | GRN_PTR_INITcxx . . $ `include/groonga/groonga.h:2869:9`!(&accessor_stack, GRN_OBJ_VECTORcxx . . $ `include/groonga/groonga.h:2734:9`!, GRN_ID_NILcxx . . $ `include/groonga/groonga.h:55:9`!); |
| 490 | n_accessors = 0; |
| 491 | for (a = (grn_accessorcxx . . $ grn_accessor# *)accessor; a; a = a->nextcxx . . $ _grn_accessor#next.) { |
| 492 | if (depth == n_accessors) { |
| 493 | break; |
| 494 | } |
| 495 | GRN_PTR_PUTcxx . . $ `include/groonga/groonga.h:3218:9`!(ctx, &accessor_stack, a); |
| 496 | n_accessors++; |
| 497 | } |
| 498 | |
| 499 | for (i = n_accessors; i > 0; i--) { |
| 500 | grn_objcxx . . $ grn_obj# *next_res = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 501 | |
| 502 | a = (grn_accessorcxx . . $ grn_accessor# *)GRN_PTR_VALUE_ATcxx . . $ `include/groonga/groonga.h:3150:9`!(&accessor_stack, i - 1); |
| 503 | if (a->objcxx . . $ _grn_accessor#obj.->headercxx . . $ _grn_obj#header..typecxx . . $ _grn_obj_header#type. == GRN_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:902:9`!) { |
| 504 | rc = |
| 505 | grn_accessor_resolve_one_index_columncxx . . $ grn_accessor_resolve_one_index_column(bcc582a864bc9010).(ctx, a, current_res, &next_res); |
| 506 | } else if (grn_obj_is_tablecxx . . $ grn_obj_is_table(a5760e5c319a06ee).(ctx, a->objcxx . . $ _grn_accessor#obj.)) { |
| 507 | rc = grn_accessor_resolve_one_tablecxx . . $ grn_accessor_resolve_one_table(bcc582a864bc9010).(ctx, a, current_res, &next_res); |
| 508 | } else { |
| 509 | rc = grn_accessor_resolve_one_data_columncxx . . $ grn_accessor_resolve_one_data_column(bcc582a864bc9010).(ctx, a, current_res, &next_res); |
| 510 | } |
| 511 | |
| 512 | if (current_res != base_res) { |
| 513 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, current_res); |
| 514 | } |
| 515 | |
| 516 | if (rc != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 517 | break; |
| 518 | } |
| 519 | |
| 520 | current_res = next_res; |
| 521 | } |
| 522 | |
| 523 | if (rc == GRN_SUCCESScxx . . $ GRN_SUCCESS. && current_res != base_res) { |
| 524 | GRN_HASH_EACH_BEGINcxx . . $ `include/groonga/hash.h:141:9`!(ctx, (grn_hash *)current_res, cursor, id) |
| 525 | { |
| 526 | void *key; |
| 527 | void *value; |
| 528 | grn_idcxx . . $ grn_id# *record_id; |
| 529 | grn_rset_recinfocxx . . $ grn_rset_recinfo# *recinfo; |
| 530 | grn_posting_internalcxx . . $ grn_posting_internal# posting = {0}; |
| 531 | |
| 532 | grn_hash_cursor_get_key_valuecxx . . $ grn_hash_cursor_get_key_value(c02614ac44805bc8).(ctx, cursor, &key, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, &value); |
| 533 | record_id = key; |
| 534 | recinfo = value; |
| 535 | posting.ridcxx . . $ $anonymous_type_fe7b80c5b60468ac_0#rid. = *record_id; |
| 536 | posting.sidcxx . . $ $anonymous_type_fe7b80c5b60468ac_0#sid. = 1; |
| 537 | posting.poscxx . . $ $anonymous_type_fe7b80c5b60468ac_0#pos. = 0; |
| 538 | posting.weight_floatcxx . . $ $anonymous_type_fe7b80c5b60468ac_0#weight_float. = (float)(recinfo->scorecxx . . $ $anonymous_type_cc21d51c44e8310a_0#score.); |
| 539 | grn_ii_posting_add_floatcxx . . $ grn_ii_posting_add_float(62be95d159451db1).(ctx, |
| 540 | (grn_postingcxx . . $ grn_posting# *)(&posting), |
| 541 | (grn_hashcxx . . $ grn_hash# *)res, |
| 542 | op); |
| 543 | if (ctx->rccxx . . $ _grn_ctx#rc. != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 544 | break; |
| 545 | } |
| 546 | } |
| 547 | GRN_HASH_EACH_ENDcxx . . $ `include/groonga/hash.h:159:9`!(ctx, cursor); |
| 548 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, current_res); |
| 549 | grn_ii_resolve_sel_andcxx . . $ grn_ii_resolve_sel_and(8582dd5db79648f2).(ctx, (grn_hashcxx . . $ grn_hash# *)res, op); |
| 550 | } else { |
| 551 | if (rc == GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 552 | rc = GRN_INVALID_ARGUMENTcxx . . $ GRN_INVALID_ARGUMENT.; |
| 553 | } |
| 554 | } |
| 555 | |
| 556 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &accessor_stack); |
| 557 | |
| 558 | rc = grn_ctx_rc_propagatecxx . . $ grn_ctx_rc_propagate(e549aae985687457).(ctx, rc); |
| 559 | return rc; |
| 560 | } |
| 561 | |
| 562 | grn_idcxx . . $ grn_id# |
| 563 | grn_accessor_resolve_idcxx . . $ grn_accessor_resolve_id(c0317bb03c33a3cb).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *accessor, grn_idcxx . . $ grn_id# id) |
| 564 | { |
| 565 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 566 | |
| 567 | grn_accessorcxx . . $ grn_accessor# *a; |
| 568 | for (a = (grn_accessorcxx . . $ grn_accessor# *)accessor; a->nextcxx . . $ _grn_accessor#next.; a = a->nextcxx . . $ _grn_accessor#next.) { |
| 569 | switch (a->actioncxx . . $ _grn_accessor#action.) { |
| 570 | case GRN_ACCESSOR_GET_KEYcxx . . $ GRN_ACCESSOR_GET_KEY.: |
| 571 | { |
| 572 | grn_idcxx . . $ grn_id# next_id; |
| 573 | int key_size = |
| 574 | grn_table_get_keycxx . . $ grn_table_get_key(2c24f49dad267d35).(ctx, a->objcxx . . $ _grn_accessor#obj., id, &next_id, sizeof(grn_idcxx . . $ grn_id#)); |
| 575 | if (key_size != sizeof(grn_idcxx . . $ grn_id#)) { |
| 576 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(id); |
| 577 | } |
| 578 | id = next_id; |
| 579 | } |
| 580 | break; |
| 581 | case GRN_ACCESSOR_GET_VALUEcxx . . $ GRN_ACCESSOR_GET_VALUE.: |
| 582 | { |
| 583 | grn_objcxx . . $ grn_obj# value; |
| 584 | GRN_VOID_INITcxx . . $ `include/groonga/groonga.h:2749:9`!(&value); |
| 585 | grn_obj_get_valuecxx . . $ grn_obj_get_value(6e06fec66698a6a).(ctx, a->objcxx . . $ _grn_accessor#obj., id, &value); |
| 586 | if (GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(&value) < sizeof(grn_idcxx . . $ grn_id#)) { |
| 587 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &value); |
| 588 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(id); |
| 589 | } |
| 590 | id = GRN_RECORD_VALUEcxx . . $ `include/groonga/groonga.h:3110:9`!(&value); |
| 591 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &value); |
| 592 | } |
| 593 | break; |
| 594 | default: |
| 595 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(id); |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(id); |
| 600 | } |
| 601 | |
| 602 | grn_rccxx . . $ grn_rc# |
| 603 | grn_accessor_executecxx . . $ grn_accessor_execute(b07a7b8125570271).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 604 | grn_objcxx . . $ grn_obj# *accessor, |
| 605 | grn_accessor_execute_funccxx . . $ grn_accessor_execute_func# execute, |
| 606 | void *execute_data, |
| 607 | grn_operatorcxx . . $ grn_operator# execute_op, |
| 608 | grn_objcxx . . $ grn_obj# *res, |
| 609 | grn_operatorcxx . . $ grn_operator# logical_op) |
| 610 | { |
| 611 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 612 | |
| 613 | if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, accessor)) { |
| 614 | grn_objcxx . . $ grn_obj# inspected; |
| 615 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&inspected, 0); |
| 616 | grn_inspectcxx . . $ grn_inspect(88456f97fe0d41a).(ctx, &inspected, accessor); |
| 617 | ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, |
| 618 | "[accessor][execute] must be accessor: %.*s", |
| 619 | (int)GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&inspected), |
| 620 | GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&inspected)); |
| 621 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &inspected); |
| 622 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 623 | } |
| 624 | |
| 625 | int depth = 0; |
| 626 | grn_accessorcxx . . $ grn_accessor# *last_a = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 627 | grn_accessorcxx . . $ grn_accessor# *second_to_last_a = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 628 | { |
| 629 | grn_accessorcxx . . $ grn_accessor# *a; |
| 630 | for (last_a = a = (grn_accessorcxx . . $ grn_accessor# *)accessor; a->nextcxx . . $ _grn_accessor#next.; last_a = a = a->nextcxx . . $ _grn_accessor#next.) { |
| 631 | depth++; |
| 632 | second_to_last_a = a; |
| 633 | } |
| 634 | } |
| 635 | |
| 636 | grn_index_datumcxx . . $ grn_index_datum# index_data; |
| 637 | unsigned int n_index_datum; |
| 638 | grn_objcxx . . $ grn_obj# *index; |
| 639 | grn_error_cancelcxx . . $ grn_error_cancel(b578cd6e53d5fe91).(ctx); |
| 640 | n_index_datum = |
| 641 | grn_column_find_index_datacxx . . $ grn_column_find_index_data(bf138cd289124d2c).(ctx, last_a->objcxx . . $ _grn_accessor#obj., execute_op, &index_data, 1); |
| 642 | if (n_index_datum == 0) { |
| 643 | if (ctx->rccxx . . $ _grn_ctx#rc. != GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 644 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 645 | } |
| 646 | index = (grn_objcxx . . $ grn_obj# *)last_a; |
| 647 | } else { |
| 648 | index = index_data.indexcxx . . $ _grn_index_datum#index.; |
| 649 | } |
| 650 | |
| 651 | grn_rccxx . . $ grn_rc# rc; |
| 652 | if (depth == 0) { |
| 653 | rc = execute(ctx, index, execute_op, res, logical_op, execute_data); |
| 654 | } else { |
| 655 | grn_objcxx . . $ grn_obj# *base_table = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 656 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! base_table_need_unref = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 657 | if (grn_obj_is_tablecxx . . $ grn_obj_is_table(a5760e5c319a06ee).(ctx, last_a->objcxx . . $ _grn_accessor#obj.)) { |
| 658 | base_table = last_a->objcxx . . $ _grn_accessor#obj.; |
| 659 | } else { |
| 660 | base_table_need_unref = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 661 | base_table = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, last_a->objcxx . . $ _grn_accessor#obj.->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.); |
| 662 | } |
| 663 | |
| 664 | grn_objcxx . . $ grn_obj# *base_res = |
| 665 | grn_table_createcxx . . $ grn_table_create(51df5019e8d3bdc1).(ctx, |
| 666 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 667 | 0, |
| 668 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 669 | GRN_OBJ_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:688:9`! | GRN_OBJ_WITH_SUBRECcxx . . $ `include/groonga/groonga.h:812:9`!, |
| 670 | base_table, |
| 671 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 672 | if (base_res) { |
| 673 | grn_operatorcxx . . $ grn_operator# base_logical_op = GRN_OP_ORcxx . . $ GRN_OP_OR.; |
| 674 | if (execute_op != GRN_OP_NOT_EQUALcxx . . $ GRN_OP_NOT_EQUAL. && second_to_last_a && |
| 675 | grn_obj_is_result_setcxx . . $ grn_obj_is_result_set(a5760e5c319a06ee).(ctx, second_to_last_a->objcxx . . $ _grn_accessor#obj.) && |
| 676 | second_to_last_a->objcxx . . $ _grn_accessor#obj.->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain. == base_res->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.) { |
| 677 | GRN_LOGcxx . . $ `include/groonga/groonga.h:2493:9`!(ctx, |
| 678 | GRN_REPORT_INDEX_LOG_LEVEL, |
| 679 | "[accessor][execute][initial] <%u>", |
| 680 | grn_table_size(ctx, second_to_last_a->obj)); |
| 681 | GRN_TABLE_EACH_BEGINcxx . . $ `include/groonga/table.h:614:9`!(ctx, second_to_last_a->obj, cursor, id) |
| 682 | { |
| 683 | void *key; |
| 684 | int key_size = grn_table_cursor_get_keycxx . . $ grn_table_cursor_get_key(7d620ebe94cee13a).(ctx, cursor, &key); |
| 685 | grn_hash_addcxx . . $ grn_hash_add(251a256fc515235e).(ctx, |
| 686 | (grn_hashcxx . . $ grn_hash# *)base_res, |
| 687 | key, |
| 688 | (unsigned int)key_size, |
| 689 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!, |
| 690 | NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!); |
| 691 | } |
| 692 | GRN_TABLE_EACH_ENDcxx . . $ `include/groonga/table.h:665:9`!(ctx, cursor); |
| 693 | base_logical_op = GRN_OP_ANDcxx . . $ GRN_OP_AND.; |
| 694 | } |
| 695 | int original_flags = ctx->flagscxx . . $ _grn_ctx#flags.; |
| 696 | ctx->flagscxx . . $ _grn_ctx#flags. &= ~GRN_CTX_TEMPORARY_DISABLE_II_RESOLVE_SEL_ANDcxx . . $ `lib/grn_ctx.h:86:9`!; |
| 697 | rc = execute(ctx, |
| 698 | index, |
| 699 | execute_op, |
| 700 | base_res, |
| 701 | base_logical_op, |
| 702 | execute_data); |
| 703 | ctx->flagscxx . . $ _grn_ctx#flags. = original_flags; |
| 704 | if (rc == GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 705 | rc = |
| 706 | grn_accessor_resolvecxx . . $ grn_accessor_resolve(377db51441efe675).(ctx, accessor, depth, base_res, res, logical_op); |
| 707 | } |
| 708 | grn_obj_closecxx . . $ grn_obj_close(4865d068a46d0f83).(ctx, base_res); |
| 709 | } else { |
| 710 | rc = ctx->rccxx . . $ _grn_ctx#rc.; |
| 711 | if (rc == GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 712 | rc = GRN_UNKNOWN_ERRORcxx . . $ GRN_UNKNOWN_ERROR.; |
| 713 | } |
| 714 | char errbuf[GRN_CTX_MSGSIZEcxx . . $ `include/groonga/groonga.h:334:9`!]; |
| 715 | grn_strcpycxx . . $ `include/groonga/portability.h:101:11`!(errbuf, GRN_CTX_MSGSIZE, ctx->errbuf); |
| 716 | ERRcxx . . $ `lib/grn_error.h:156:9`!(rc, |
| 717 | "[accessor][execute] failed to create internal result set: %s", |
| 718 | errbuf); |
| 719 | } |
| 720 | if (base_table_need_unref) { |
| 721 | grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, base_table); |
| 722 | } |
| 723 | } |
| 724 | |
| 725 | if (n_index_datum > 0) { |
| 726 | grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, index_data.indexcxx . . $ _grn_index_datum#index.); |
| 727 | } |
| 728 | |
| 729 | rc = grn_ctx_rc_propagatecxx . . $ grn_ctx_rc_propagate(e549aae985687457).(ctx, rc); |
| 730 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(rc); |
| 731 | } |
| 732 | |
| 733 | typedef structcxx . . $ $anonymous_type_6b0d3f4550b08535_0# { |
| 734 | grn_objcxx . . $ grn_obj# *accessorcxx . . $ $anonymous_type_6b0d3f4550b08535_0#accessor.; |
| 735 | grn_objcxx . . $ grn_obj# *querycxx . . $ $anonymous_type_6b0d3f4550b08535_0#query.; |
| 736 | grn_search_optargcxx . . $ grn_search_optarg# *optargcxx . . $ $anonymous_type_6b0d3f4550b08535_0#optarg.; |
| 737 | grn_objcxx . . $ grn_obj# *indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index.; |
| 738 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! index_need_unrefcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index_need_unref.; |
| 739 | grn_operatorcxx . . $ grn_operator# operator_cxx . . $ $anonymous_type_6b0d3f4550b08535_0#operator_.; |
| 740 | grn_objcxx . . $ grn_obj# query_castedcxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_casted.; |
| 741 | const char *query_rawcxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw.; |
| 742 | uint32_tcxx . . $ uint32_t# query_raw_lencxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw_len.; |
| 743 | uint32_tcxx . . $ uint32_t# n_base_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_base_records.; |
| 744 | uint32_tcxx . . $ uint32_t# n_target_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_target_records.; |
| 745 | uint32_tcxx . . $ uint32_t# depthcxx . . $ $anonymous_type_6b0d3f4550b08535_0#depth.; |
| 746 | } grn_accessor_estimate_size_for_query_datacxx . . $ grn_accessor_estimate_size_for_query_data#; |
| 747 | |
| 748 | static void |
| 749 | grn_accessor_estimate_size_for_query_data_fincxx . . $ grn_accessor_estimate_size_for_query_data_fin(90e08575d6909de8).( |
| 750 | grn_ctxcxx . . $ grn_ctx# *ctx, grn_accessor_estimate_size_for_query_datacxx . . $ grn_accessor_estimate_size_for_query_data# *data) |
| 751 | { |
| 752 | if (data->index_need_unrefcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index_need_unref.) { |
| 753 | grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, data->indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index.); |
| 754 | } |
| 755 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &(data->query_casted)); |
| 756 | } |
| 757 | |
| 758 | static void |
| 759 | grn_accessor_estimate_size_for_query_cast_failedcxx . . $ grn_accessor_estimate_size_for_query_cast_failed(90e08575d6909de8).( |
| 760 | grn_ctxcxx . . $ grn_ctx# *ctx, grn_accessor_estimate_size_for_query_datacxx . . $ grn_accessor_estimate_size_for_query_data# *data) |
| 761 | { |
| 762 | grn_objcxx . . $ grn_obj# detail; |
| 763 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&detail, 0); |
| 764 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, &detail, "<"); |
| 765 | grn_inspectcxx . . $ grn_inspect(88456f97fe0d41a).(ctx, &detail, data->querycxx . . $ $anonymous_type_6b0d3f4550b08535_0#query.); |
| 766 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, &detail, "> -> "); |
| 767 | grn_objcxx . . $ grn_obj# *domain = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, data->query_castedcxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_casted..headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.); |
| 768 | grn_inspectcxx . . $ grn_inspect(88456f97fe0d41a).(ctx, &detail, domain); |
| 769 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, domain); |
| 770 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, &detail, ": "); |
| 771 | grn_inspectcxx . . $ grn_inspect(88456f97fe0d41a).(ctx, &detail, data->accessorcxx . . $ $anonymous_type_6b0d3f4550b08535_0#accessor.); |
| 772 | ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, |
| 773 | "[accessor][estimate-size][query][cast] " |
| 774 | "failed: %.*s", |
| 775 | (int)GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&detail), |
| 776 | GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&detail)); |
| 777 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &detail); |
| 778 | } |
| 779 | |
| 780 | static boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! |
| 781 | grn_accessor_estimate_size_for_query_preparecxx . . $ grn_accessor_estimate_size_for_query_prepare(75a9f5e3d28e7e17).( |
| 782 | grn_ctxcxx . . $ grn_ctx# *ctx, grn_accessor_estimate_size_for_query_datacxx . . $ grn_accessor_estimate_size_for_query_data# *data) |
| 783 | { |
| 784 | grn_accessorcxx . . $ grn_accessor# *a = (grn_accessorcxx . . $ grn_accessor# *)(data->accessorcxx . . $ $anonymous_type_6b0d3f4550b08535_0#accessor.); |
| 785 | if (grn_obj_is_tablecxx . . $ grn_obj_is_table(a5760e5c319a06ee).(ctx, a->objcxx . . $ _grn_accessor#obj.)) { |
| 786 | data->n_target_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_target_records. = grn_table_sizecxx . . $ grn_table_size(8dd58acc9865e889).(ctx, a->objcxx . . $ _grn_accessor#obj.); |
| 787 | } else { |
| 788 | grn_objcxx . . $ grn_obj# *target_table = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, a->objcxx . . $ _grn_accessor#obj.->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.); |
| 789 | data->n_target_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_target_records. = grn_table_sizecxx . . $ grn_table_size(8dd58acc9865e889).(ctx, target_table); |
| 790 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, target_table); |
| 791 | } |
| 792 | |
| 793 | if (data->n_target_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_target_records. == 0) { |
| 794 | return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 795 | } |
| 796 | |
| 797 | for (; a->nextcxx . . $ _grn_accessor#next.; a = a->nextcxx . . $ _grn_accessor#next.) { |
| 798 | data->depthcxx . . $ $anonymous_type_6b0d3f4550b08535_0#depth.++; |
| 799 | } |
| 800 | |
| 801 | if (grn_obj_is_tablecxx . . $ grn_obj_is_table(a5760e5c319a06ee).(ctx, a->objcxx . . $ _grn_accessor#obj.)) { |
| 802 | data->n_base_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_base_records. = grn_table_sizecxx . . $ grn_table_size(8dd58acc9865e889).(ctx, a->objcxx . . $ _grn_accessor#obj.); |
| 803 | } else { |
| 804 | grn_objcxx . . $ grn_obj# *base_table = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, a->objcxx . . $ _grn_accessor#obj.->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.); |
| 805 | data->n_base_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_base_records. = grn_table_sizecxx . . $ grn_table_size(8dd58acc9865e889).(ctx, base_table); |
| 806 | grn_obj_unlinkcxx . . $ grn_obj_unlink(4865d068a46d0f83).(ctx, base_table); |
| 807 | } |
| 808 | |
| 809 | if (data->optargcxx . . $ $anonymous_type_6b0d3f4550b08535_0#optarg.) { |
| 810 | if (data->optargcxx . . $ $anonymous_type_6b0d3f4550b08535_0#optarg.->modecxx . . $ _grn_search_optarg#mode. == GRN_OP_EXACTcxx . . $ GRN_OP_EXACT.) { |
| 811 | data->operator_cxx . . $ $anonymous_type_6b0d3f4550b08535_0#operator_. = GRN_OP_MATCHcxx . . $ GRN_OP_MATCH.; |
| 812 | } else { |
| 813 | data->operator_cxx . . $ $anonymous_type_6b0d3f4550b08535_0#operator_. = data->optargcxx . . $ $anonymous_type_6b0d3f4550b08535_0#optarg.->modecxx . . $ _grn_search_optarg#mode.; |
| 814 | } |
| 815 | } |
| 816 | grn_index_datumcxx . . $ grn_index_datum# index_data; |
| 817 | unsigned int n_index_datum; |
| 818 | n_index_datum = |
| 819 | grn_column_find_index_datacxx . . $ grn_column_find_index_data(bf138cd289124d2c).(ctx, a->objcxx . . $ _grn_accessor#obj., data->operator_cxx . . $ $anonymous_type_6b0d3f4550b08535_0#operator_., &index_data, 1); |
| 820 | if (n_index_datum == 0) { |
| 821 | if (!grn_obj_is_tablecxx . . $ grn_obj_is_table(a5760e5c319a06ee).(ctx, a->objcxx . . $ _grn_accessor#obj.)) { |
| 822 | return falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 823 | } |
| 824 | data->indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index. = a->objcxx . . $ _grn_accessor#obj.; |
| 825 | } else { |
| 826 | data->indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index. = index_data.indexcxx . . $ _grn_index_datum#index.; |
| 827 | data->index_need_unrefcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index_need_unref. = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 828 | } |
| 829 | |
| 830 | grn_objcxx . . $ grn_obj# *lexicon; |
| 831 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! lexicon_need_unref = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 832 | if (grn_obj_is_tablecxx . . $ grn_obj_is_table(a5760e5c319a06ee).(ctx, data->indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index.)) { |
| 833 | lexicon = data->indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index.; |
| 834 | } else { |
| 835 | lexicon = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, data->indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index.->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.); |
| 836 | lexicon_need_unref = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 837 | } |
| 838 | |
| 839 | if (data->querycxx . . $ $anonymous_type_6b0d3f4550b08535_0#query.->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain. == lexicon->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.) { |
| 840 | data->query_rawcxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw. = GRN_BULK_HEADcxx . . $ `include/groonga/groonga.h:2648:9`!(data->query); |
| 841 | data->query_raw_lencxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw_len. = (uint32_tcxx . . $ uint32_t#)(GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(data->query)); |
| 842 | } else { |
| 843 | grn_obj_reinit_forcxx . . $ grn_obj_reinit_for(d825b4ed5bf12304).(ctx, &(data->query_castedcxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_casted.), lexicon); |
| 844 | grn_rccxx . . $ grn_rc# rc = grn_obj_castcxx . . $ grn_obj_cast(a6fd93da1614eccd).(ctx, data->querycxx . . $ $anonymous_type_6b0d3f4550b08535_0#query., &(data->query_castedcxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_casted.), falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!); |
| 845 | if (rc == GRN_SUCCESScxx . . $ GRN_SUCCESS.) { |
| 846 | data->query_rawcxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw. = GRN_BULK_HEADcxx . . $ `include/groonga/groonga.h:2648:9`!(&(data->query_casted)); |
| 847 | data->query_raw_lencxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw_len. = (uint32_tcxx . . $ uint32_t#)(GRN_BULK_VSIZEcxx . . $ `include/groonga/groonga.h:2642:9`!(&(data->query_casted))); |
| 848 | } else { |
| 849 | grn_accessor_estimate_size_for_query_cast_failedcxx . . $ grn_accessor_estimate_size_for_query_cast_failed(90e08575d6909de8).(ctx, data); |
| 850 | } |
| 851 | } |
| 852 | |
| 853 | if (lexicon_need_unref) { |
| 854 | grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, lexicon); |
| 855 | } |
| 856 | |
| 857 | return ctx->rccxx . . $ _grn_ctx#rc. == GRN_SUCCESScxx . . $ GRN_SUCCESS.; |
| 858 | } |
| 859 | |
| 860 | uint32_tcxx . . $ uint32_t# |
| 861 | grn_accessor_estimate_size_for_querycxx . . $ grn_accessor_estimate_size_for_query(359eb10e989cfc75).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 862 | grn_objcxx . . $ grn_obj# *accessor, |
| 863 | grn_objcxx . . $ grn_obj# *query, |
| 864 | grn_search_optargcxx . . $ grn_search_optarg# *optarg) |
| 865 | { |
| 866 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 867 | |
| 868 | if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, accessor)) { |
| 869 | grn_objcxx . . $ grn_obj# inspected; |
| 870 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&inspected, 0); |
| 871 | grn_inspectcxx . . $ grn_inspect(88456f97fe0d41a).(ctx, &inspected, accessor); |
| 872 | ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, |
| 873 | "[accessor][estimate-size][query] must be accessor: %.*s", |
| 874 | (int)GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&inspected), |
| 875 | GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&inspected)); |
| 876 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &inspected); |
| 877 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(0); |
| 878 | } |
| 879 | |
| 880 | if (!query) { |
| 881 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(0); |
| 882 | } |
| 883 | |
| 884 | grn_accessor_estimate_size_for_query_datacxx . . $ grn_accessor_estimate_size_for_query_data# data; |
| 885 | data.accessorcxx . . $ $anonymous_type_6b0d3f4550b08535_0#accessor. = accessor; |
| 886 | data.querycxx . . $ $anonymous_type_6b0d3f4550b08535_0#query. = query; |
| 887 | data.optargcxx . . $ $anonymous_type_6b0d3f4550b08535_0#optarg. = optarg; |
| 888 | data.indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 889 | data.index_need_unrefcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index_need_unref. = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 890 | data.operator_cxx . . $ $anonymous_type_6b0d3f4550b08535_0#operator_. = GRN_OP_MATCHcxx . . $ GRN_OP_MATCH.; |
| 891 | GRN_VOID_INITcxx . . $ `include/groonga/groonga.h:2749:9`!(&(data.query_casted)); |
| 892 | data.query_rawcxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw. = NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/16/include/stddef.h:419:9`!; |
| 893 | data.query_raw_lencxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw_len. = 0; |
| 894 | data.n_target_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_target_records. = 0; |
| 895 | data.depthcxx . . $ $anonymous_type_6b0d3f4550b08535_0#depth. = 0; |
| 896 | |
| 897 | if (!grn_accessor_estimate_size_for_query_preparecxx . . $ grn_accessor_estimate_size_for_query_prepare(75a9f5e3d28e7e17).(ctx, &data)) { |
| 898 | grn_accessor_estimate_size_for_query_data_fincxx . . $ grn_accessor_estimate_size_for_query_data_fin(90e08575d6909de8).(ctx, &data); |
| 899 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(0); |
| 900 | } |
| 901 | |
| 902 | uint32_tcxx . . $ uint32_t# estimated_size = 0; |
| 903 | if (data.n_base_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_base_records. == 0) { |
| 904 | estimated_size = 0; |
| 905 | } else { |
| 906 | uint32_tcxx . . $ uint32_t# base_estimated_size; |
| 907 | if (grn_obj_is_tablecxx . . $ grn_obj_is_table(a5760e5c319a06ee).(ctx, data.indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index.)) { |
| 908 | if (data.operator_cxx . . $ $anonymous_type_6b0d3f4550b08535_0#operator_. == GRN_OP_EQUALcxx . . $ GRN_OP_EQUAL.) { |
| 909 | if (grn_table_getcxx . . $ grn_table_get(5676c91e20172100).(ctx, |
| 910 | data.indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index., |
| 911 | data.query_rawcxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw., |
| 912 | data.query_raw_lencxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw_len.)) { |
| 913 | base_estimated_size = 1; |
| 914 | } else { |
| 915 | base_estimated_size = 0; |
| 916 | } |
| 917 | } else { |
| 918 | /* TODO */ |
| 919 | base_estimated_size = data.n_base_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_base_records.; |
| 920 | } |
| 921 | } else { |
| 922 | base_estimated_size = |
| 923 | grn_ii_estimate_size_for_querycxx . . $ grn_ii_estimate_size_for_query(bb95fd1dd6bd9b2f).(ctx, |
| 924 | (grn_iicxx . . $ grn_ii# *)(data.indexcxx . . $ $anonymous_type_6b0d3f4550b08535_0#index.), |
| 925 | data.query_rawcxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw., |
| 926 | data.query_raw_lencxx . . $ $anonymous_type_6b0d3f4550b08535_0#query_raw_len., |
| 927 | optarg); |
| 928 | } |
| 929 | if (base_estimated_size >= data.n_base_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_base_records.) { |
| 930 | estimated_size = data.n_target_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_target_records.; |
| 931 | } else { |
| 932 | estimated_size = |
| 933 | (uint32_tcxx . . $ uint32_t#)(data.n_target_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_target_records. * |
| 934 | (base_estimated_size / (double)(data.n_base_recordscxx . . $ $anonymous_type_6b0d3f4550b08535_0#n_base_records.))); |
| 935 | } |
| 936 | } |
| 937 | |
| 938 | grn_accessor_estimate_size_for_query_data_fincxx . . $ grn_accessor_estimate_size_for_query_data_fin(90e08575d6909de8).(ctx, &data); |
| 939 | |
| 940 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(estimated_size); |
| 941 | } |
| 942 | |
| 943 | typedef enumcxx . . $ $anonymous_type_6b0d3f4550b08535_1# { |
| 944 | GRN_ACCESSOR_TO_STRING_USE_CASE_NAMEcxx . . $ GRN_ACCESSOR_TO_STRING_USE_CASE_NAME., |
| 945 | GRN_ACCESSOR_TO_STRING_USE_CASE_SCRIPT_SYNTAXcxx . . $ GRN_ACCESSOR_TO_STRING_USE_CASE_SCRIPT_SYNTAX., |
| 946 | } GRN_ACCESSOR_TO_STRING_USE_CASEcxx . . $ GRN_ACCESSOR_TO_STRING_USE_CASE#; |
| 947 | |
| 948 | static grn_rccxx . . $ grn_rc# |
| 949 | grn_accessor_to_stringcxx . . $ grn_accessor_to_string(8aa4fef3497c00ee).(grn_ctxcxx . . $ grn_ctx# *ctx, |
| 950 | grn_objcxx . . $ grn_obj# *accessor, |
| 951 | grn_objcxx . . $ grn_obj# *buffer, |
| 952 | GRN_ACCESSOR_TO_STRING_USE_CASEcxx . . $ GRN_ACCESSOR_TO_STRING_USE_CASE# use_case, |
| 953 | const char *tag) |
| 954 | { |
| 955 | grn_accessorcxx . . $ grn_accessor# *accessor_; |
| 956 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 957 | |
| 958 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! need_context = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 959 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! need_preceding_keys = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 960 | if (use_case == GRN_ACCESSOR_TO_STRING_USE_CASE_SCRIPT_SYNTAXcxx . . $ GRN_ACCESSOR_TO_STRING_USE_CASE_SCRIPT_SYNTAX.) { |
| 961 | need_context = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 962 | need_preceding_keys = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 963 | } |
| 964 | |
| 965 | if (!grn_obj_is_accessorcxx . . $ grn_obj_is_accessor(a5760e5c319a06ee).(ctx, accessor)) { |
| 966 | grn_objcxx . . $ grn_obj# inspected; |
| 967 | GRN_TEXT_INITcxx . . $ `include/groonga/groonga.h:2750:9`!(&inspected, 0); |
| 968 | grn_inspectcxx . . $ grn_inspect(88456f97fe0d41a).(ctx, &inspected, accessor); |
| 969 | ERRcxx . . $ `lib/grn_error.h:156:9`!(GRN_INVALID_ARGUMENT, |
| 970 | "%s must be accessor: %.*s", |
| 971 | tag, |
| 972 | (int)GRN_TEXT_LENcxx . . $ `include/groonga/groonga.h:2786:9`!(&inspected), |
| 973 | GRN_TEXT_VALUEcxx . . $ `include/groonga/groonga.h:2785:9`!(&inspected)); |
| 974 | GRN_OBJ_FINcxx . . $ `include/groonga/groonga.h:958:9`!(ctx, &inspected); |
| 975 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc); |
| 976 | } |
| 977 | |
| 978 | uint32_tcxx . . $ uint32_t# n_components = 0; |
| 979 | for (accessor_ = (grn_accessorcxx . . $ grn_accessor# *)accessor; accessor_; |
| 980 | accessor_ = accessor_->nextcxx . . $ _grn_accessor#next.) { |
| 981 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! need_continue = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 982 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! show_obj_name = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 983 | boolcxx . . $ `<external>/13015445228558014418/stdbool.h:36:9`! show_obj_domain_name = falsecxx . . $ `<external>/13015445228558014418/stdbool.h:38:9`!; |
| 984 | |
| 985 | if (n_components > 0) { |
| 986 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "."); |
| 987 | } |
| 988 | switch (accessor_->actioncxx . . $ _grn_accessor#action.) { |
| 989 | case GRN_ACCESSOR_GET_IDcxx . . $ GRN_ACCESSOR_GET_ID.: |
| 990 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, buffer, GRN_COLUMN_NAME_IDcxx . . $ `include/groonga/column.h:41:9`!, GRN_COLUMN_NAME_ID_LENcxx . . $ `include/groonga/column.h:50:9`!); |
| 991 | show_obj_name = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 992 | break; |
| 993 | case GRN_ACCESSOR_GET_KEYcxx . . $ GRN_ACCESSOR_GET_KEY.: |
| 994 | if (!need_preceding_keys && accessor_->nextcxx . . $ _grn_accessor#next.) { |
| 995 | need_continue = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 996 | } else { |
| 997 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, buffer, GRN_COLUMN_NAME_KEYcxx . . $ `include/groonga/column.h:63:9`!, GRN_COLUMN_NAME_KEY_LENcxx . . $ `include/groonga/column.h:72:9`!); |
| 998 | show_obj_name = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 999 | } |
| 1000 | break; |
| 1001 | case GRN_ACCESSOR_GET_VALUEcxx . . $ GRN_ACCESSOR_GET_VALUE.: |
| 1002 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, |
| 1003 | buffer, |
| 1004 | GRN_COLUMN_NAME_VALUEcxx . . $ `include/groonga/column.h:84:9`!, |
| 1005 | GRN_COLUMN_NAME_VALUE_LENcxx . . $ `include/groonga/column.h:93:9`!); |
| 1006 | show_obj_name = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 1007 | break; |
| 1008 | case GRN_ACCESSOR_GET_SCOREcxx . . $ GRN_ACCESSOR_GET_SCORE.: |
| 1009 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, |
| 1010 | buffer, |
| 1011 | GRN_COLUMN_NAME_SCOREcxx . . $ `include/groonga/column.h:106:9`!, |
| 1012 | GRN_COLUMN_NAME_SCORE_LENcxx . . $ `include/groonga/column.h:115:9`!); |
| 1013 | break; |
| 1014 | case GRN_ACCESSOR_GET_NSUBRECScxx . . $ GRN_ACCESSOR_GET_NSUBRECS.: |
| 1015 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, |
| 1016 | buffer, |
| 1017 | GRN_COLUMN_NAME_NSUBRECScxx . . $ `include/groonga/column.h:130:9`!, |
| 1018 | GRN_COLUMN_NAME_NSUBRECS_LENcxx . . $ `include/groonga/column.h:139:9`!); |
| 1019 | break; |
| 1020 | case GRN_ACCESSOR_GET_MAXcxx . . $ GRN_ACCESSOR_GET_MAX.: |
| 1021 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, buffer, GRN_COLUMN_NAME_MAXcxx . . $ `include/groonga/column.h:140:9`!, GRN_COLUMN_NAME_MAX_LENcxx . . $ `include/groonga/column.h:141:9`!); |
| 1022 | break; |
| 1023 | case GRN_ACCESSOR_GET_MINcxx . . $ GRN_ACCESSOR_GET_MIN.: |
| 1024 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, buffer, GRN_COLUMN_NAME_MINcxx . . $ `include/groonga/column.h:142:9`!, GRN_COLUMN_NAME_MIN_LENcxx . . $ `include/groonga/column.h:143:9`!); |
| 1025 | break; |
| 1026 | case GRN_ACCESSOR_GET_SUMcxx . . $ GRN_ACCESSOR_GET_SUM.: |
| 1027 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, buffer, GRN_COLUMN_NAME_SUMcxx . . $ `include/groonga/column.h:144:9`!, GRN_COLUMN_NAME_SUM_LENcxx . . $ `include/groonga/column.h:145:9`!); |
| 1028 | break; |
| 1029 | case GRN_ACCESSOR_GET_AVGcxx . . $ GRN_ACCESSOR_GET_AVG.: |
| 1030 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, buffer, GRN_COLUMN_NAME_AVGcxx . . $ `include/groonga/column.h:147:9`!, GRN_COLUMN_NAME_AVG_LENcxx . . $ `include/groonga/column.h:148:9`!); |
| 1031 | break; |
| 1032 | case GRN_ACCESSOR_GET_MEANcxx . . $ GRN_ACCESSOR_GET_MEAN.: |
| 1033 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, buffer, GRN_COLUMN_NAME_MEANcxx . . $ `include/groonga/column.h:149:9`!, GRN_COLUMN_NAME_MEAN_LENcxx . . $ `include/groonga/column.h:150:9`!); |
| 1034 | break; |
| 1035 | case GRN_ACCESSOR_GET_COLUMN_VALUEcxx . . $ GRN_ACCESSOR_GET_COLUMN_VALUE.: |
| 1036 | grn_column_name_cxx . . $ grn_column_name_(d825b4ed5bf12304).(ctx, accessor_->objcxx . . $ _grn_accessor#obj., buffer); |
| 1037 | show_obj_domain_name = truecxx . . $ `<external>/13015445228558014418/stdbool.h:37:9`!; |
| 1038 | break; |
| 1039 | case GRN_ACCESSOR_GET_DB_OBJcxx . . $ GRN_ACCESSOR_GET_DB_OBJ.: |
| 1040 | grn_text_printfcxx . . $ grn_text_printf(34596149d4dc0292).(ctx, buffer, "(_db)"); |
| 1041 | break; |
| 1042 | case GRN_ACCESSOR_LOOKUPcxx . . $ GRN_ACCESSOR_LOOKUP.: |
| 1043 | grn_text_printfcxx . . $ grn_text_printf(34596149d4dc0292).(ctx, buffer, "(_lookup)"); |
| 1044 | break; |
| 1045 | case GRN_ACCESSOR_FUNCALLcxx . . $ GRN_ACCESSOR_FUNCALL.: |
| 1046 | grn_text_printfcxx . . $ grn_text_printf(34596149d4dc0292).(ctx, buffer, "(_funcall)"); |
| 1047 | break; |
| 1048 | default: |
| 1049 | grn_text_printfcxx . . $ grn_text_printf(34596149d4dc0292).(ctx, buffer, "(unknown:%u)", accessor_->actioncxx . . $ _grn_accessor#action.); |
| 1050 | break; |
| 1051 | } |
| 1052 | |
| 1053 | if (need_continue) { |
| 1054 | continue; |
| 1055 | } |
| 1056 | |
| 1057 | if (need_context && (show_obj_name || show_obj_domain_name)) { |
| 1058 | grn_objcxx . . $ grn_obj# *target = accessor_->objcxx . . $ _grn_accessor#obj.; |
| 1059 | char target_name[GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!]; |
| 1060 | int target_name_size; |
| 1061 | |
| 1062 | if (show_obj_domain_name) { |
| 1063 | target = grn_ctx_atcxx . . $ grn_ctx_at(ac4544c8400954c9).(ctx, target->headercxx . . $ _grn_obj#header..domaincxx . . $ _grn_obj_header#domain.); |
| 1064 | } |
| 1065 | |
| 1066 | target_name_size = |
| 1067 | grn_obj_namecxx . . $ grn_obj_name(a51d1bff955f2f21).(ctx, target, target_name, GRN_TABLE_MAX_KEY_SIZEcxx . . $ `include/groonga/table.h:26:9`!); |
| 1068 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "("); |
| 1069 | if (target_name_size == 0) { |
| 1070 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "anonymous"); |
| 1071 | } else { |
| 1072 | GRN_TEXT_PUTcxx . . $ `include/groonga/groonga.h:2773:9`!(ctx, buffer, target_name, target_name_size); |
| 1073 | } |
| 1074 | GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, ")"); |
| 1075 | if (show_obj_domain_name && target) { |
| 1076 | grn_obj_unrefcxx . . $ grn_obj_unref(cda3a5f3c2e53c6b).(ctx, target); |
| 1077 | } |
| 1078 | } |
| 1079 | n_components++; |
| 1080 | } |
| 1081 | |
| 1082 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(GRN_SUCCESS); |
| 1083 | } |
| 1084 | |
| 1085 | grn_rccxx . . $ grn_rc# |
| 1086 | grn_accessor_namecxx . . $ grn_accessor_name(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *accessor, grn_objcxx . . $ grn_obj# *name) |
| 1087 | { |
| 1088 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 1089 | grn_rccxx . . $ grn_rc# rc = grn_accessor_to_stringcxx . . $ grn_accessor_to_string(8aa4fef3497c00ee).(ctx, |
| 1090 | accessor, |
| 1091 | name, |
| 1092 | GRN_ACCESSOR_TO_STRING_USE_CASE_NAMEcxx . . $ GRN_ACCESSOR_TO_STRING_USE_CASE_NAME., |
| 1093 | "[accessor][name]"); |
| 1094 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(rc); |
| 1095 | } |
| 1096 | |
| 1097 | grn_rccxx . . $ grn_rc# |
| 1098 | grn_accessor_to_script_syntaxcxx . . $ grn_accessor_to_script_syntax(d825b4ed5bf12304).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *accessor, grn_objcxx . . $ grn_obj# *buffer) |
| 1099 | { |
| 1100 | GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!; |
| 1101 | grn_rccxx . . $ grn_rc# rc = |
| 1102 | grn_accessor_to_stringcxx . . $ grn_accessor_to_string(8aa4fef3497c00ee).(ctx, |
| 1103 | accessor, |
| 1104 | buffer, |
| 1105 | GRN_ACCESSOR_TO_STRING_USE_CASE_SCRIPT_SYNTAXcxx . . $ GRN_ACCESSOR_TO_STRING_USE_CASE_SCRIPT_SYNTAX., |
| 1106 | "[accessor][to-script-syntax]"); |
| 1107 | GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(rc); |
| 1108 | } |