Groonga
Loading...
Searching...
No Matches
sorter.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2025 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
19#pragma once
20
21#include <groonga.h>
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27typedef struct _grn_sorter_data grn_sorter_data;
28
31GRN_API size_t
33GRN_API size_t
35GRN_API bool
43
44/* TODO:
45 * GRN_API bool
46 * grn_sorter_data_is_greater(grn_ctx *ctx, grn_sorter_data *data, grn_id id):
47 *
48 * Returns whether the next sort key is greater or not. Sorter can
49 * call this when the target record's value is the same value. This is
50 * needed on multi column sort.
51 */
52
53typedef grn_rc
55
58
59#ifdef __cplusplus
60}
61#endif
grn_rc
Definition groonga.h:61
#define GRN_API
Definition groonga.h:39
GRN_API grn_obj ** grn_sorter_data_get_args(grn_ctx *ctx, grn_sorter_data *data, size_t *n_args)
GRN_API grn_rc grn_proc_set_sorter(grn_ctx *ctx, grn_obj *proc, grn_sorter_func sorter)
GRN_API bool grn_sorter_data_is_ascending(grn_ctx *ctx, grn_sorter_data *data)
grn_rc grn_sorter_func(grn_ctx *ctx, grn_sorter_data *data)
Definition sorter.h:54
struct _grn_sorter_data grn_sorter_data
Definition sorter.h:27
GRN_API grn_obj * grn_sorter_data_get_sorter(grn_ctx *ctx, grn_sorter_data *data)
GRN_API grn_obj * grn_sorter_data_get_table(grn_ctx *ctx, grn_sorter_data *data)
GRN_API grn_obj * grn_sorter_data_get_result(grn_ctx *ctx, grn_sorter_data *data)
GRN_API size_t grn_sorter_data_get_offset(grn_ctx *ctx, grn_sorter_data *data)
GRN_API size_t grn_sorter_data_get_limit(grn_ctx *ctx, grn_sorter_data *data)
Definition groonga.h:351
Definition groonga.h:919