1 /*
2   Copyright(C) 2019-2020  Sutou Kouhei <kou@clear-code.com>
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 module groonga_d.window_function_executor;
19 
20 
21 private static import groonga_d.groonga;
22 
23 extern(C):
24 nothrow @nogc:
25 
26 extern struct _grn_window_function_executor;
27 alias grn_window_function_executor = _grn_window_function_executor;
28 
29 //GRN_API
30 grn_window_function_executor* grn_window_function_executor_open(groonga_d.groonga.grn_ctx* ctx);
31 
32 //GRN_API
33 groonga_d.groonga.grn_rc grn_window_function_executor_close(groonga_d.groonga.grn_ctx* ctx, grn_window_function_executor* executor);
34 
35 //GRN_API
36 groonga_d.groonga.grn_rc grn_window_function_executor_set_tag(groonga_d.groonga.grn_ctx* ctx, grn_window_function_executor* executor, const (char)* tag, size_t tag_size);
37 
38 //GRN_API
39 groonga_d.groonga.grn_rc grn_window_function_executor_add_table(groonga_d.groonga.grn_ctx* ctx, grn_window_function_executor* executor, groonga_d.groonga.grn_obj* table);
40 
41 //GRN_API
42 groonga_d.groonga.grn_rc grn_window_function_executor_add_context_table(groonga_d.groonga.grn_ctx* ctx, grn_window_function_executor* executor, groonga_d.groonga.grn_obj* table);
43 
44 //GRN_API
45 groonga_d.groonga.grn_rc grn_window_function_executor_set_source(groonga_d.groonga.grn_ctx* ctx, grn_window_function_executor* executor, const (char)* source, size_t source_size);
46 
47 //GRN_API
48 groonga_d.groonga.grn_rc grn_window_function_executor_set_sort_keys(groonga_d.groonga.grn_ctx* ctx, grn_window_function_executor* executor, const (char)* sort_keys, size_t sort_keys_size);
49 
50 //GRN_API
51 groonga_d.groonga.grn_rc grn_window_function_executor_set_group_keys(groonga_d.groonga.grn_ctx* ctx, grn_window_function_executor* executor, const (char)* group_keys, size_t group_keys_size);
52 
53 //GRN_API
54 groonga_d.groonga.grn_rc grn_window_function_executor_set_output_column_name(groonga_d.groonga.grn_ctx* ctx, grn_window_function_executor* executor, const (char)* name, size_t name_size);
55 
56 //GRN_API
57 groonga_d.groonga.grn_rc grn_window_function_executor_execute(groonga_d.groonga.grn_ctx* ctx, grn_window_function_executor* executor);