Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
expr.h
Go to the documentation of this file.
1 /* -*- c-basic-offset: 2 -*- */
2 /*
3  Copyright(C) 2013 Brazil
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 version 2.1 as published by the Free Software Foundation.
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 #ifndef GRN_EXPR_H
20 #define GRN_EXPR_H
21 
22 #include "db.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
28 #define SCAN_ACCESSOR (0x01)
29 #define SCAN_PUSH (0x02)
30 #define SCAN_POP (0x04)
31 #define SCAN_PRE_CONST (0x08)
32 
33 typedef enum {
39 } scan_stat;
40 
41 typedef struct _grn_scan_info scan_info;
42 typedef grn_bool (*grn_scan_info_each_arg_callback)(grn_ctx *ctx, grn_obj *obj, void *user_data);
43 
45 void grn_scan_info_close(grn_ctx *ctx, scan_info *si);
47  uint32_t sid, int32_t weight);
49  grn_operator op, int start);
56 void grn_scan_info_set_end(scan_info *si, uint32_t end);
60 
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif /* GRN_EXPR_H */