Groonga
Loading...
Searching...
No Matches
cast.h
Go to the documentation of this file.
1
/*
2
Copyright(C) 2015-2018 Brazil
3
Copyright(C) 2018-2022 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
#include <
groonga/option.h
>
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
typedef
struct
{
29
grn_obj
*
src
;
30
grn_obj
*
dest
;
31
uint32_t
flags
;
32
grn_obj
*
target
;
33
}
grn_caster
;
34
35
GRN_API
grn_rc
36
grn_caster_cast
(
grn_ctx
*ctx,
grn_caster
*caster);
57
GRN_API
grn_rc
58
grn_obj_cast
(
grn_ctx
*ctx,
59
grn_obj
*src,
60
grn_obj
*dest,
61
bool
add_record_if_not_exist);
62
63
#ifdef __cplusplus
64
}
65
#endif
grn_caster_cast
GRN_API grn_rc grn_caster_cast(grn_ctx *ctx, grn_caster *caster)
grn_obj_cast
GRN_API grn_rc grn_obj_cast(grn_ctx *ctx, grn_obj *src, grn_obj *dest, bool add_record_if_not_exist)
Cast and append a value from the source bulk/vector to the destination bulk/vector.
grn_rc
grn_rc
Definition
groonga.h:61
GRN_API
#define GRN_API
Definition
groonga.h:39
option.h
_grn_ctx
Definition
groonga.h:351
_grn_obj
Definition
groonga.h:919
grn_caster
Definition
cast.h:28
grn_caster::flags
uint32_t flags
Definition
cast.h:31
grn_caster::target
grn_obj * target
Definition
cast.h:32
grn_caster::dest
grn_obj * dest
Definition
cast.h:30
grn_caster::src
grn_obj * src
Definition
cast.h:29
include
groonga
cast.h
Generated by
1.9.8