Groonga
Loading...
Searching...
No Matches
token_cursor.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2009-2016 Brazil
3 Copyright (C) 2018-2024 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
32
33#define GRN_TOKEN_CURSOR_ENABLE_TOKENIZED_DELIMITER (0x01 << 0)
34#define GRN_TOKEN_CURSOR_PARALLEL (0x01 << 1)
35
36typedef struct _grn_token_cursor grn_token_cursor;
37
40 grn_obj *table,
41 const char *str,
42 size_t str_len,
44 uint32_t flags);
45
48 grn_token_cursor *token_cursor,
49 grn_obj *column);
52 grn_token_cursor *token_cursor,
53 grn_id id);
56 grn_token_cursor *token_cursor,
57 grn_obj *column);
60 grn_token_cursor *token_cursor,
61 grn_obj *query_options);
64 grn_token_cursor *token_cursor,
65 grn_id domain);
68
71
74
77
78#ifdef __cplusplus
79}
80#endif
grn_rc
Definition groonga.h:61
uint32_t grn_id
Definition groonga.h:44
#define GRN_API
Definition groonga.h:39
Definition groonga.h:351
Definition groonga.h:919
struct _grn_token grn_token
Definition token.h:127
grn_tokenize_mode
Definition token.h:37
GRN_API grn_rc grn_token_cursor_close(grn_ctx *ctx, grn_token_cursor *token_cursor)
GRN_API grn_rc grn_token_cursor_set_source_column(grn_ctx *ctx, grn_token_cursor *token_cursor, grn_obj *column)
GRN_API grn_rc grn_token_cursor_set_query_options(grn_ctx *ctx, grn_token_cursor *token_cursor, grn_obj *query_options)
GRN_API grn_rc grn_token_cursor_set_source_id(grn_ctx *ctx, grn_token_cursor *token_cursor, grn_id id)
GRN_API grn_token * grn_token_cursor_get_token(grn_ctx *ctx, grn_token_cursor *token_cursor)
GRN_API grn_rc grn_token_cursor_set_index_column(grn_ctx *ctx, grn_token_cursor *token_cursor, grn_obj *column)
GRN_API grn_id grn_token_cursor_next(grn_ctx *ctx, grn_token_cursor *token_cursor)
grn_token_cursor_status
Definition token_cursor.h:26
@ GRN_TOKEN_CURSOR_DOING
Definition token_cursor.h:27
@ GRN_TOKEN_CURSOR_DONE_SKIP
Definition token_cursor.h:29
@ GRN_TOKEN_CURSOR_DONE
Definition token_cursor.h:28
@ GRN_TOKEN_CURSOR_NOT_FOUND
Definition token_cursor.h:30
GRN_API grn_token_cursor * grn_token_cursor_open(grn_ctx *ctx, grn_obj *table, const char *str, size_t str_len, grn_tokenize_mode mode, uint32_t flags)
GRN_API grn_rc grn_token_cursor_set_query_domain(grn_ctx *ctx, grn_token_cursor *token_cursor, grn_id domain)
struct _grn_token_cursor grn_token_cursor
Definition token_cursor.h:36
GRN_API grn_token_cursor_status grn_token_cursor_get_status(grn_ctx *ctx, grn_token_cursor *token_cursor)