Debian Codegraph @

lib/grn_group.h

raw symbols SCIP
1 /*
2 Copyright(C) 2020-2022 Sutou Kouhei <[email protected]>
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19 #pragma once
20
21 #include "grn.h"
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 void grn_group_init_from_env(void);
28
29 struct _grn_aggregator_data {
30 grn_id group_id;
31 grn_id source_id;
32 grn_obj *group_table;
33 grn_obj *source_table;
34 grn_obj *output_column;
35 grn_obj *aggregator;
36 grn_obj args;
37 void *user_data;
38 };
39
40 struct _grn_table_group_aggregator {
41 char *output_column_name;
42 uint32_t output_column_name_len;
43 grn_obj *output_column_type;
44 grn_column_flags output_column_flags;
45 char *expression;
46 uint32_t expression_len;
47 grn_obj *aggregator_call;
48 grn_obj *aggregator_call_record;
49 grn_aggregator_data data;
50 };
51
52 grn_rc
53 grn_table_group_aggregator_init(grn_ctx *ctx,
54 grn_table_group_aggregator *aggregator);
55 grn_rc
56 grn_table_group_aggregator_fin(grn_ctx *ctx,
57 grn_table_group_aggregator *aggregator);
58
59
60 #ifdef __cplusplus
61 }
62 #endif