Debian Codegraph @

lib/grn_table.h

raw symbols SCIP
1 /*
2 Copyright (C) 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.h"cxx . . $ `<file>/lib/grn.h`/
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 double
29 grn_table_get_scorecxx . . $ grn_table_get_score(ca33257a3eac4acc).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table, grn_idcxx . . $ grn_id# id);
30
31 grn_objcxx . . $ grn_obj# *
32 grn_table_create_with_max_n_subrecscxx . . $ grn_table_create_with_max_n_subrecs(90c8c4500876f430).(grn_ctxcxx . . $ grn_ctx# *ctx,
33 const char *name,
34 unsigned int name_size,
35 const char *path,
36 grn_table_flagscxx . . $ grn_table_flags# flags,
37 grn_objcxx . . $ grn_obj# *key_type,
38 grn_objcxx . . $ grn_obj# *value_type,
39 uint32_tcxx . . $ uint32_t# max_n_subrecs,
40 uint32_tcxx . . $ uint32_t# additional_value_size);
41
42 grn_rccxx . . $ grn_rc#
43 grn_table_setoperation_with_weight_factorcxx . . $ grn_table_setoperation_with_weight_factor(b726af21f4db48fe).(grn_ctxcxx . . $ grn_ctx# *ctx,
44 grn_objcxx . . $ grn_obj# *table1,
45 grn_objcxx . . $ grn_obj# *table2,
46 grn_objcxx . . $ grn_obj# *res,
47 grn_operatorcxx . . $ grn_operator# op,
48 float weight_factor);
49
50 grn_idcxx . . $ grn_id#
51 grn_table_find_reference_object_rawcxx . . $ grn_table_find_reference_object_raw(30f4e46071c8b3c9).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_idcxx . . $ grn_id# table_id);
52
53 grn_hashcxx . . $ grn_hash# *
54 grn_table_all_columnscxx . . $ grn_table_all_columns(8ebad875dfa82802).(grn_ctxcxx . . $ grn_ctx# *ctx, grn_objcxx . . $ grn_obj# *table);
55
56 #define GRN_TABLE_LOCK_BEGINcxx . . $ `lib/grn_table.h:56:9`!(ctx, table) \
57 do { \
58 grn_io *io_ = grn_obj_get_io(ctx, table); \
59 bool locked_ = false; \
60 bool can_run_ = true; \
61 if (io_ && !(io_->flags & GRN_IO_TEMPORARY)) { \
62 if (grn_io_lock(ctx, io_, grn_lock_timeout) == GRN_SUCCESS) { \
63 locked_ = true; \
64 } else { \
65 can_run_ = false; \
66 } \
67 } \
68 if (can_run_) {
69 #define GRN_TABLE_LOCK_ENDcxx . . $ `lib/grn_table.h:69:9`!(ctx) \
70 } \
71 if (locked_) { \
72 grn_io_unlock(ctx, io_); \
73 } \
74 } \
75 while (false)
76
77 #ifdef __cplusplus
78 }
79 #endif