Groonga
Loading...
Searching...
No Matches
obj.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2015-2018 Brazil
3 Copyright (C) 2018-2026 Sutou Kouhei <kou@clear-code.com>
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 <groonga/option.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28/* Just for backward compatibility. Use grn_obj_is_true() instead. */
29#define GRN_OBJ_IS_TRUE(ctx, obj, result) \
30 do { \
31 result = grn_obj_is_true(ctx, obj); \
32 } while (0)
33
34GRN_API bool
36
37GRN_API bool
39
48GRN_API bool
50GRN_API bool
52GRN_API bool
54GRN_API bool
56GRN_API bool
58GRN_API bool
60GRN_API bool
62GRN_API bool
64GRN_API bool
66GRN_API bool
68GRN_API bool
70GRN_API bool
72GRN_API bool
74GRN_API bool
76GRN_API bool
78GRN_API bool
80GRN_API bool
82GRN_API bool
84GRN_API bool
86GRN_API bool
88GRN_API bool
90GRN_API bool
92GRN_API bool
94GRN_API bool
96GRN_API bool
98GRN_API bool
100GRN_API bool
102GRN_API bool
112GRN_API bool
114GRN_API bool
116GRN_API bool
118GRN_API bool
120GRN_API bool
122GRN_API bool
124GRN_API bool
126GRN_API bool
128GRN_API bool
130GRN_API bool
132GRN_API bool
134GRN_API bool
136GRN_API bool
138GRN_API bool
140GRN_API bool
142GRN_API bool
144GRN_API bool
146GRN_API bool
148GRN_API bool
150GRN_API bool
152GRN_API bool
165GRN_API bool
167GRN_API bool
169GRN_API bool
171GRN_API bool
173GRN_API bool
175GRN_API bool
177GRN_API bool
179GRN_API bool
181GRN_API bool
183GRN_API bool
185GRN_API bool
187GRN_API bool
189GRN_API bool
191GRN_API bool
205GRN_API bool
207GRN_API bool
209GRN_API bool
223GRN_API bool
225GRN_API bool
227GRN_API bool
229GRN_API bool
231GRN_API bool
233GRN_API bool
236grn_obj_set_visibility(grn_ctx *ctx, grn_obj *obj, bool is_visible);
237GRN_API bool
239GRN_API bool
241GRN_API bool
243
246
247GRN_API void
249GRN_API uint32_t
251GRN_API bool
253
254GRN_API const char *
256
257GRN_API const char *
259GRN_API bool
261GRN_API bool
263
264GRN_API bool
265grn_obj_name_is_column(grn_ctx *ctx, const char *name, int name_len);
266
267bool
269
270GRN_API bool
272GRN_API size_t
274
277 grn_obj *obj,
278 const char *name,
279 int name_length,
280 grn_obj *values);
283 grn_obj *obj,
284 const char *name,
285 int name_length,
286 grn_option_revision revision,
287 grn_obj *values);
290
293
296
297#ifdef __cplusplus
298}
299#endif
grn_rc
Definition groonga.h:61
uint32_t grn_id
Definition groonga.h:44
#define GRN_API
Definition groonga.h:39
GRN_API bool grn_obj_is_dirty(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_reference_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_value_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_binary_family_vector(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_text_family_scalar_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_nsubrecs_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_column_value_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_weight_uvector(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_expr(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_sorter_proc(grn_ctx *ctx, grn_obj *obj)
Return whether obj is a function that has a sorter callback or not.
GRN_API bool grn_obj_is_scorer_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_binary_family_type(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_bulk(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_uvector(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_patricia_trie(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_key_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_name_is_column(grn_ctx *ctx, const char *name, int name_len)
GRN_API bool grn_obj_is_table_with_value(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API void grn_obj_touch(grn_ctx *ctx, grn_obj *obj, grn_timeval *tv)
GRN_API bool grn_obj_is_corrupt(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_window_function_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_number_family_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_weight_vector(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_text_family_vector(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_tiny_hash_table(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_type(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_function_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_generated_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_id_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_vector(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_avg_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_data_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_lexicon_without_data_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_number_family_bulk(grn_ctx *ctx, grn_obj *obj)
GRN_API grn_rc grn_obj_set_visibility(grn_ctx *ctx, grn_obj *obj, bool is_visible)
GRN_API bool grn_obj_is_scalar_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API const char * grn_obj_type_to_string(uint8_t type)
GRN_API bool grn_obj_is_vector_column(grn_ctx *ctx, grn_obj *obj)
Check whether the specified object is a vector column or not.
GRN_API bool grn_obj_is_token_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_type_is_table(uint8_t type)
GRN_API bool grn_obj_is_extractor_proc(grn_ctx *ctx, grn_obj *obj)
Return whether obj is a function that has a extractor callback or not.
GRN_API bool grn_obj_is_aggregator_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_builtin(grn_ctx *ctx, grn_obj *obj)
Check whether a Groonga built-in object is or not.
GRN_API bool grn_obj_is_text_family_vector_column(grn_ctx *ctx, grn_obj *obj)
bool grn_obj_is_empty(grn_ctx *ctx, grn_obj *obj, grn_id id)
GRN_API bool grn_obj_is_db(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_selector_only_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_true(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_score_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API grn_rc grn_obj_to_script_syntax(grn_ctx *ctx, grn_obj *obj, grn_obj *buffer)
GRN_API bool grn_obj_is_table(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_weight_vector_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_mean_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_token_filter_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_binary_family_scalar_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_binary_family_bulk(grn_ctx *ctx, grn_obj *obj)
GRN_API grn_rc grn_obj_warm(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_text_family_bulk(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_sum_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_applier_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_scalar_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_temporary(grn_ctx *ctx, grn_obj *obj)
GRN_API const char * grn_obj_set_flag_to_string(int flags)
GRN_API bool grn_obj_is_index_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_table_with_key(grn_ctx *ctx, grn_obj *obj)
GRN_API grn_rc grn_obj_set_option_values(grn_ctx *ctx, grn_obj *obj, const char *name, int name_length, grn_obj *values)
GRN_API size_t grn_obj_get_disk_usage(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_maybe_record_bulk(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_binary_family_scalar_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_type_is_column(uint8_t type)
GRN_API bool grn_obj_is_min_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API grn_rc grn_obj_reindex(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_max_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_visible(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_binary_family_vector_column(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_result_set(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_lexicon(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_command_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_referable_score_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_number_family_vector(grn_ctx *ctx, grn_obj *obj)
GRN_API uint32_t grn_obj_get_last_modified(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_normalizer_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_text_family_scalar_accessor(grn_ctx *ctx, grn_obj *obj)
Check whether a text family scalar accessor or not.
GRN_API bool grn_obj_is_tokenizer_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API grn_rc grn_obj_clear_option_values(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_selector_proc(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_number_family_scalar_accessor(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_text_family_type(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_number_family_scalar_column(grn_ctx *ctx, grn_obj *obj)
GRN_API grn_option_revision grn_obj_get_option_values(grn_ctx *ctx, grn_obj *obj, const char *name, int name_length, grn_option_revision revision, grn_obj *values)
GRN_API bool grn_obj_have_source(grn_ctx *ctx, grn_obj *obj)
GRN_API bool grn_obj_is_vector_accessor(grn_ctx *ctx, grn_obj *obj)
void * grn_option_revision
Definition option.h:25
Definition groonga.h:351
Definition groonga.h:919
Definition groonga.h:3341