Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Typedefs | Functions
snip.h File Reference
#include "groonga_in.h"
#include "str.h"
#include "db.h"
Include dependency graph for snip.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _snip_cond
struct  _snip_tag_result
struct  _snip_result
struct  _grn_snip

Macros

#define ASIZE   256U
#define MAX_SNIP_TAG_COUNT   512U
#define MAX_SNIP_COND_COUNT   32U
#define MAX_SNIP_RESULT_COUNT   16U
#define SNIPCOND_NONSTOP   0
#define SNIPCOND_STOP   1
#define SNIPCOND_ACROSS   2
#define GRN_QUERY_SCAN_ALLOCCONDS   0x0002

Typedefs

typedef struct _snip_cond snip_cond

Functions

grn_rc grn_snip_close_real (grn_ctx *ctx, grn_snip *snip)
grn_rc grn_snip_cond_init (grn_ctx *ctx, snip_cond *sc, const char *keyword, unsigned int keyword_len, grn_encoding enc, int flags)
void grn_snip_cond_reinit (snip_cond *cond)
grn_rc grn_snip_cond_close (grn_ctx *ctx, snip_cond *cond)
void grn_bm_tunedbm (grn_ctx *ctx, snip_cond *cond, grn_obj *string, int flags)

Macro Definition Documentation

#define ASIZE   256U

Definition at line 30 of file snip.h.

#define GRN_QUERY_SCAN_ALLOCCONDS   0x0002

Definition at line 44 of file snip.h.

#define MAX_SNIP_COND_COUNT   32U

Definition at line 32 of file snip.h.

#define MAX_SNIP_RESULT_COUNT   16U

Definition at line 33 of file snip.h.

#define MAX_SNIP_TAG_COUNT   512U

Definition at line 31 of file snip.h.

#define SNIPCOND_ACROSS   2

Definition at line 42 of file snip.h.

#define SNIPCOND_NONSTOP   0

Definition at line 40 of file snip.h.

#define SNIPCOND_STOP   1

Definition at line 41 of file snip.h.

Typedef Documentation

typedef struct _snip_cond snip_cond

Function Documentation

void grn_bm_tunedbm ( grn_ctx ctx,
snip_cond cond,
grn_obj string,
int  flags 
)

Definition at line 133 of file snip.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_snip_close_real ( grn_ctx ctx,
grn_snip snip 
)

Definition at line 526 of file snip.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_snip_cond_close ( grn_ctx ctx,
snip_cond cond 
)

Definition at line 249 of file snip.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_snip_cond_init ( grn_ctx ctx,
snip_cond sc,
const char *  keyword,
unsigned int  keyword_len,
grn_encoding  enc,
int  flags 
)

Definition at line 261 of file snip.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_snip_cond_reinit ( snip_cond cond)

Definition at line 290 of file snip.c.