Groonga
Loading...
Searching...
No Matches
accessor.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2012-2018 Brazil
3 Copyright (C) 2019-2025 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#ifdef __cplusplus
23extern "C" {
24#endif
25
43
46
49
52
55 grn_obj *accessor,
56 int depth,
57 grn_obj *base_res,
58 grn_obj *res,
59 grn_operator op);
60
63
64GRN_API uint32_t
66 grn_obj *accessor,
67 grn_obj *query,
68 grn_search_optarg *optarg);
69
71 grn_obj *index,
72 grn_operator op,
73 grn_obj *res,
74 grn_operator logical_op,
75 void *user_data);
76
79 grn_obj *accessor,
81 void *execute_data,
82 grn_operator execute_op,
83 grn_obj *res,
84 grn_operator logical_op);
85
87grn_accessor_name(grn_ctx *ctx, grn_obj *accessor, grn_obj *name);
88
89#ifdef __cplusplus
90}
91#endif
GRN_API grn_rc grn_accessor_name(grn_ctx *ctx, grn_obj *accessor, grn_obj *name)
grn_accessor_action
Definition accessor.h:26
@ GRN_ACCESSOR_GET_KEY
Definition accessor.h:29
@ GRN_ACCESSOR_GET_MIN
Definition accessor.h:34
@ GRN_ACCESSOR_FUNCALL
Definition accessor.h:41
@ GRN_ACCESSOR_GET_NSUBRECS
Definition accessor.h:32
@ GRN_ACCESSOR_VOID
Definition accessor.h:27
@ GRN_ACCESSOR_GET_SCORE
Definition accessor.h:31
@ GRN_ACCESSOR_GET_MAX
Definition accessor.h:33
@ GRN_ACCESSOR_GET_AVG
Definition accessor.h:36
@ GRN_ACCESSOR_LOOKUP
Definition accessor.h:40
@ GRN_ACCESSOR_GET_VALUE
Definition accessor.h:30
@ GRN_ACCESSOR_GET_DB_OBJ
Definition accessor.h:39
@ GRN_ACCESSOR_GET_SUM
Definition accessor.h:35
@ GRN_ACCESSOR_GET_MEAN
Definition accessor.h:37
@ GRN_ACCESSOR_GET_ID
Definition accessor.h:28
@ GRN_ACCESSOR_GET_COLUMN_VALUE
Definition accessor.h:38
GRN_API uint32_t grn_accessor_estimate_size_for_query(grn_ctx *ctx, grn_obj *accessor, grn_obj *query, grn_search_optarg *optarg)
GRN_API grn_obj * grn_accessor_get_next(grn_ctx *ctx, grn_obj *accessor)
GRN_API grn_rc grn_accessor_resolve(grn_ctx *ctx, grn_obj *accessor, int depth, grn_obj *base_res, grn_obj *res, grn_operator op)
grn_rc(* grn_accessor_execute_func)(grn_ctx *ctx, grn_obj *index, grn_operator op, grn_obj *res, grn_operator logical_op, void *user_data)
Definition accessor.h:70
GRN_API grn_accessor_action grn_accessor_get_action(grn_ctx *ctx, grn_obj *accessor)
GRN_API grn_obj * grn_accessor_get_obj(grn_ctx *ctx, grn_obj *accessor)
GRN_API grn_rc grn_accessor_execute(grn_ctx *ctx, grn_obj *accessor, grn_accessor_execute_func execute, void *execute_data, grn_operator execute_op, grn_obj *res, grn_operator logical_op)
GRN_API grn_id grn_accessor_resolve_id(grn_ctx *ctx, grn_obj *accessor, grn_id id)
grn_rc
Definition groonga.h:61
uint32_t grn_id
Definition groonga.h:44
#define GRN_API
Definition groonga.h:39
grn_operator
Definition groonga.h:1149
Definition groonga.h:351
Definition groonga.h:919
Definition groonga.h:1995