Debian Codegraph @

lib/dump.c

raw symbols SCIP
1 /*
2 Copyright (C) 2016 Brazil
3 Copyright (C) 2019-2023 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_ctx.h"cxx . . $ `<file>/lib/grn_ctx.h`/
21
22 grn_rccxx . . $ grn_rc#
23 grn_dump_table_create_flagscxx . . $ grn_dump_table_create_flags(e6d1f76f34fc094d).(grn_ctxcxx . . $ grn_ctx# *ctx,
24 grn_table_flagscxx . . $ grn_table_flags# flags,
25 grn_objcxx . . $ grn_obj# *buffer)
26 {
27 GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!;
28
29 switch (flags & GRN_OBJ_TABLE_TYPE_MASKcxx . . $ `include/groonga/groonga.h:687:9`!) {
30 case GRN_OBJ_TABLE_HASH_KEYcxx . . $ `include/groonga/groonga.h:688:9`!:
31 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "TABLE_HASH_KEY");
32 break;
33 case GRN_OBJ_TABLE_PAT_KEYcxx . . $ `include/groonga/groonga.h:689:9`!:
34 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "TABLE_PAT_KEY");
35 break;
36 case GRN_OBJ_TABLE_DAT_KEYcxx . . $ `include/groonga/groonga.h:690:9`!:
37 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "TABLE_DAT_KEY");
38 break;
39 case GRN_OBJ_TABLE_NO_KEYcxx . . $ `include/groonga/groonga.h:691:9`!:
40 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "TABLE_NO_KEY");
41 break;
42 }
43 if (flags & GRN_OBJ_KEY_LARGEcxx . . $ `include/groonga/groonga.h:831:9`!) {
44 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|KEY_LARGE");
45 }
46 if (flags & GRN_OBJ_KEY_WITH_SIScxx . . $ `include/groonga/groonga.h:712:9`!) {
47 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|KEY_WITH_SIS");
48 }
49 if (flags & GRN_OBJ_KEY_NORMALIZEcxx . . $ `include/groonga/groonga.h:718:9`!) {
50 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|KEY_NORMALIZE");
51 }
52 if (flags & GRN_OBJ_PERSISTENTcxx . . $ `include/groonga/groonga.h:827:9`!) {
53 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|PERSISTENT");
54 }
55
56 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc);
57 }
58
59 grn_rccxx . . $ grn_rc#
60 grn_dump_column_create_flagscxx . . $ grn_dump_column_create_flags(e6d1f76f34fc094d).(grn_ctxcxx . . $ grn_ctx# *ctx,
61 grn_column_flagscxx . . $ grn_column_flags# flags,
62 grn_objcxx . . $ grn_obj# *buffer)
63 {
64 GRN_API_ENTERcxx . . $ `lib/grn_ctx.h:41:9`!;
65
66 switch (flags & GRN_OBJ_COLUMN_TYPE_MASKcxx . . $ `include/groonga/groonga.h:726:9`!) {
67 case GRN_OBJ_COLUMN_SCALARcxx . . $ `include/groonga/groonga.h:731:9`!:
68 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "COLUMN_SCALAR");
69 break;
70 case GRN_OBJ_COLUMN_VECTORcxx . . $ `include/groonga/groonga.h:736:9`!:
71 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "COLUMN_VECTOR");
72 if (flags & GRN_OBJ_WITH_WEIGHTcxx . . $ `include/groonga/groonga.h:785:9`!) {
73 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|WITH_WEIGHT");
74 }
75 if (flags & GRN_OBJ_WEIGHT_FLOAT32cxx . . $ `include/groonga/groonga.h:838:9`!) {
76 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|WEIGHT_FLOAT32");
77 }
78 if (flags & GRN_OBJ_WEIGHT_BFLOAT16cxx . . $ `include/groonga/groonga.h:796:9`!) {
79 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|WEIGHT_BFLOAT16");
80 }
81 break;
82 case GRN_OBJ_COLUMN_INDEXcxx . . $ `include/groonga/groonga.h:741:9`!:
83 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "COLUMN_INDEX");
84 if (flags & GRN_OBJ_WITH_SECTIONcxx . . $ `include/groonga/groonga.h:777:9`!) {
85 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|WITH_SECTION");
86 }
87 if (flags & GRN_OBJ_WITH_WEIGHTcxx . . $ `include/groonga/groonga.h:785:9`!) {
88 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|WITH_WEIGHT");
89 }
90 if (flags & GRN_OBJ_WITH_POSITIONcxx . . $ `include/groonga/groonga.h:794:9`!) {
91 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|WITH_POSITION");
92 }
93 if (flags & GRN_OBJ_INDEX_SMALLcxx . . $ `include/groonga/groonga.h:835:9`!) {
94 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|INDEX_SMALL");
95 }
96 if (flags & GRN_OBJ_INDEX_MEDIUMcxx . . $ `include/groonga/groonga.h:836:9`!) {
97 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|INDEX_MEDIUM");
98 }
99 if (flags & GRN_OBJ_INDEX_LARGEcxx . . $ `include/groonga/groonga.h:837:9`!) {
100 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|INDEX_LARGE");
101 }
102 if (flags & GRN_OBJ_WEIGHT_FLOAT32cxx . . $ `include/groonga/groonga.h:838:9`!) {
103 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|WEIGHT_FLOAT32");
104 }
105 if (flags & GRN_OBJ_WEIGHT_BFLOAT16cxx . . $ `include/groonga/groonga.h:796:9`!) {
106 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|WEIGHT_BFLOAT16");
107 }
108 break;
109 }
110 switch (flags & GRN_OBJ_COMPRESS_MASKcxx . . $ `include/groonga/groonga.h:743:9`!) {
111 case GRN_OBJ_COMPRESS_NONEcxx . . $ `include/groonga/groonga.h:744:9`!:
112 break;
113 case GRN_OBJ_COMPRESS_ZLIBcxx . . $ `include/groonga/groonga.h:749:9`!:
114 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|COMPRESS_ZLIB");
115 break;
116 case GRN_OBJ_COMPRESS_LZ4cxx . . $ `include/groonga/groonga.h:754:9`!:
117 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|COMPRESS_LZ4");
118 break;
119 case GRN_OBJ_COMPRESS_ZSTDcxx . . $ `include/groonga/groonga.h:761:9`!:
120 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|COMPRESS_ZSTD");
121 break;
122 case GRN_OBJ_COMPRESS_OPENZLcxx . . $ `include/groonga/groonga.h:768:9`!:
123 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|COMPRESS_OPENZL");
124 break;
125 }
126 switch (flags & GRN_OBJ_MISSING_MASKcxx . . $ `include/groonga/groonga.h:840:9`!) {
127 case GRN_OBJ_MISSING_ADDcxx . . $ `include/groonga/groonga.h:841:9`!:
128 break;
129 case GRN_OBJ_MISSING_IGNOREcxx . . $ `include/groonga/groonga.h:842:9`!:
130 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|MISSING_IGNORE");
131 break;
132 case GRN_OBJ_MISSING_NILcxx . . $ `include/groonga/groonga.h:843:9`!:
133 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|MISSING_NIL");
134 break;
135 }
136 switch (flags & GRN_OBJ_INVALID_MASKcxx . . $ `include/groonga/groonga.h:845:9`!) {
137 case GRN_OBJ_INVALID_ERRORcxx . . $ `include/groonga/groonga.h:846:9`!:
138 break;
139 case GRN_OBJ_INVALID_WARNcxx . . $ `include/groonga/groonga.h:847:9`!:
140 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|INVALID_WARN");
141 break;
142 case GRN_OBJ_INVALID_IGNOREcxx . . $ `include/groonga/groonga.h:848:9`!:
143 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|INVALID_IGNORE");
144 break;
145 }
146 if (flags & GRN_OBJ_COMPRESS_FILTER_SHUFFLEcxx . . $ `include/groonga/groonga.h:850:9`!) {
147 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|COMPRESS_FILTER_SHUFFLE");
148 }
149 if (flags & GRN_OBJ_COMPRESS_FILTER_BYTE_DELTAcxx . . $ `include/groonga/groonga.h:851:9`!) {
150 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|COMPRESS_FILTER_BYTE_DELTA");
151 }
152 if (flags & GRN_OBJ_COMPRESS_FILTER_TRUNCATE_PRECISION_2BYTEScxx . . $ `include/groonga/groonga.h:853:9`!) {
153 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|COMPRESS_FILTER_TRUNCATE_PRECISION_2BYTES");
154 } else if (flags & GRN_OBJ_COMPRESS_FILTER_TRUNCATE_PRECISION_1BYTEcxx . . $ `include/groonga/groonga.h:852:9`!) {
155 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|COMPRESS_FILTER_TRUNCATE_PRECISION_1BYTE");
156 }
157 if (flags & GRN_OBJ_PERSISTENTcxx . . $ `include/groonga/groonga.h:827:9`!) {
158 GRN_TEXT_PUTScxx . . $ `include/groonga/groonga.h:2781:9`!(ctx, buffer, "|PERSISTENT");
159 }
160
161 GRN_API_RETURNcxx . . $ `lib/grn_ctx.h:56:9`!(ctx->rc);
162 }