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

Go to the source code of this file.

Data Structures

struct  _grn_ii
struct  grn_ii_header
struct  _grn_ii_pos
struct  _grn_ii_updspec
struct  grn_ii_posting
struct  _grn_select_optarg

Macros

#define GRN_II_BGQSIZE   16
#define GRN_II_MAX_LSEG   0x10000
#define GRN_II_W_TOTAL_CHUNK   40
#define GRN_II_W_CHUNK   22
#define GRN_II_W_LEAST_CHUNK   (GRN_II_W_TOTAL_CHUNK - 32)
#define GRN_II_MAX_CHUNK   (1 << (GRN_II_W_TOTAL_CHUNK - GRN_II_W_CHUNK))
#define GRN_II_N_CHUNK_VARIATION   (GRN_II_W_CHUNK - GRN_II_W_LEAST_CHUNK)

Typedefs

typedef struct _grn_ii_updspec grn_ii_updspec
typedef struct _grn_ii_cursor grn_ii_cursor
typedef struct _grn_select_optarg grn_select_optarg

Functions

GRN_API grn_iigrn_ii_create (grn_ctx *ctx, const char *path, grn_obj *lexicon, uint32_t flags)
GRN_API grn_iigrn_ii_open (grn_ctx *ctx, const char *path, grn_obj *lexicon)
GRN_API grn_rc grn_ii_close (grn_ctx *ctx, grn_ii *ii)
GRN_API grn_rc grn_ii_remove (grn_ctx *ctx, const char *path)
grn_rc grn_ii_info (grn_ctx *ctx, grn_ii *ii, uint64_t *seg_size, uint64_t *chunk_size)
grn_rc grn_ii_update_one (grn_ctx *ctx, grn_ii *ii, uint32_t key, grn_ii_updspec *u, grn_hash *h)
grn_rc grn_ii_delete_one (grn_ctx *ctx, grn_ii *ii, uint32_t key, grn_ii_updspec *u, grn_hash *h)
grn_ii_updspecgrn_ii_updspec_open (grn_ctx *ctx, uint32_t rid, uint32_t sid)
grn_rc grn_ii_updspec_close (grn_ctx *ctx, grn_ii_updspec *u)
grn_rc grn_ii_updspec_add (grn_ctx *ctx, grn_ii_updspec *u, int pos, int32_t weight)
int grn_ii_updspec_cmp (grn_ii_updspec *a, grn_ii_updspec *b)
uint32_t grn_ii_estimate_size (grn_ctx *ctx, grn_ii *ii, uint32_t key)
void grn_ii_expire (grn_ctx *ctx, grn_ii *ii)
GRN_API grn_rc grn_ii_posting_add (grn_ctx *ctx, grn_ii_posting *pos, grn_hash *s, grn_operator op)
GRN_API grn_ii_cursorgrn_ii_cursor_open (grn_ctx *ctx, grn_ii *ii, grn_id tid, grn_id min, grn_id max, int nelements, int flags)
grn_ii_cursorgrn_ii_cursor_openv1 (grn_ii *ii, uint32_t key)
grn_rc grn_ii_cursor_openv2 (grn_ii_cursor **cursors, int ncursors)
GRN_API grn_ii_postinggrn_ii_cursor_next (grn_ctx *ctx, grn_ii_cursor *c)
grn_ii_postinggrn_ii_cursor_next_pos (grn_ctx *ctx, grn_ii_cursor *c)
GRN_API grn_rc grn_ii_cursor_close (grn_ctx *ctx, grn_ii_cursor *c)
uint32_t grn_ii_max_section (grn_ii *ii)
int grn_ii_check (grn_ii *ii)
const char * grn_ii_path (grn_ii *ii)
grn_objgrn_ii_lexicon (grn_ii *ii)
GRN_API grn_rc grn_ii_column_update (grn_ctx *ctx, grn_ii *ii, grn_id id, unsigned int section, grn_obj *oldvalue, grn_obj *newvalue, grn_obj *posting)
grn_rc grn_ii_term_extract (grn_ctx *ctx, grn_ii *ii, const char *string, unsigned int string_len, grn_hash *s, grn_operator op, grn_select_optarg *optarg)
grn_rc grn_ii_similar_search (grn_ctx *ctx, grn_ii *ii, const char *string, unsigned int string_len, grn_hash *s, grn_operator op, grn_select_optarg *optarg)
GRN_API grn_rc grn_ii_select (grn_ctx *ctx, grn_ii *ii, const char *string, unsigned int string_len, grn_hash *s, grn_operator op, grn_select_optarg *optarg)
grn_rc grn_ii_sel (grn_ctx *ctx, grn_ii *ii, const char *string, unsigned int string_len, grn_hash *s, grn_operator op, grn_search_optarg *optarg)
void grn_ii_resolve_sel_and (grn_ctx *ctx, grn_hash *s, grn_operator op)
grn_rc grn_ii_at (grn_ctx *ctx, grn_ii *ii, grn_id id, grn_hash *s, grn_operator op)
void grn_ii_inspect_elements (grn_ctx *ctx, grn_ii *ii, grn_obj *buf)
void grn_ii_cursor_inspect (grn_ctx *ctx, grn_ii_cursor *c, grn_obj *buf)
grn_rc grn_ii_build (grn_ctx *ctx, grn_ii *ii, uint64_t sparsity)

Macro Definition Documentation

#define GRN_II_BGQSIZE   16

Definition at line 53 of file ii.h.

#define GRN_II_MAX_CHUNK   (1 << (GRN_II_W_TOTAL_CHUNK - GRN_II_W_CHUNK))

Definition at line 58 of file ii.h.

#define GRN_II_MAX_LSEG   0x10000

Definition at line 54 of file ii.h.

#define GRN_II_N_CHUNK_VARIATION   (GRN_II_W_CHUNK - GRN_II_W_LEAST_CHUNK)

Definition at line 59 of file ii.h.

#define GRN_II_W_CHUNK   22

Definition at line 56 of file ii.h.

#define GRN_II_W_LEAST_CHUNK   (GRN_II_W_TOTAL_CHUNK - 32)

Definition at line 57 of file ii.h.

#define GRN_II_W_TOTAL_CHUNK   40

Definition at line 55 of file ii.h.

Typedef Documentation

typedef struct _grn_ii_cursor grn_ii_cursor

Definition at line 129 of file ii.h.

Definition at line 99 of file ii.h.

Definition at line 157 of file ii.h.

Function Documentation

grn_rc grn_ii_at ( grn_ctx ctx,
grn_ii ii,
grn_id  id,
grn_hash s,
grn_operator  op 
)

Definition at line 6158 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_ii_build ( grn_ctx ctx,
grn_ii ii,
uint64_t  sparsity 
)

Definition at line 7437 of file ii.c.

Here is the call graph for this function:

int grn_ii_check ( grn_ii ii)
GRN_API grn_rc grn_ii_close ( grn_ctx ctx,
grn_ii ii 
)

Definition at line 3623 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_rc grn_ii_column_update ( grn_ctx ctx,
grn_ii ii,
grn_id  id,
unsigned int  section,
grn_obj oldvalue,
grn_obj newvalue,
grn_obj posting 
)

Definition at line 5044 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_ii* grn_ii_create ( grn_ctx ctx,
const char *  path,
grn_obj lexicon,
uint32_t  flags 
)

Definition at line 3505 of file ii.c.

Here is the caller graph for this function:

GRN_API grn_rc grn_ii_cursor_close ( grn_ctx ctx,
grn_ii_cursor c 
)

Definition at line 4399 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_ii_cursor_inspect ( grn_ctx ctx,
grn_ii_cursor c,
grn_obj buf 
)

Definition at line 6380 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_ii_posting* grn_ii_cursor_next ( grn_ctx ctx,
grn_ii_cursor c 
)

Definition at line 4167 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_ii_posting* grn_ii_cursor_next_pos ( grn_ctx ctx,
grn_ii_cursor c 
)

Definition at line 4352 of file ii.c.

Here is the caller graph for this function:

GRN_API grn_ii_cursor* grn_ii_cursor_open ( grn_ctx ctx,
grn_ii ii,
grn_id  tid,
grn_id  min,
grn_id  max,
int  nelements,
int  flags 
)

Definition at line 4000 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_ii_cursor* grn_ii_cursor_openv1 ( grn_ii ii,
uint32_t  key 
)
grn_rc grn_ii_cursor_openv2 ( grn_ii_cursor **  cursors,
int  ncursors 
)
grn_rc grn_ii_delete_one ( grn_ctx ctx,
grn_ii ii,
uint32_t  key,
grn_ii_updspec u,
grn_hash h 
)
uint32_t grn_ii_estimate_size ( grn_ctx ctx,
grn_ii ii,
uint32_t  key 
)
void grn_ii_expire ( grn_ctx ctx,
grn_ii ii 
)

Definition at line 3664 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_ii_info ( grn_ctx ctx,
grn_ii ii,
uint64_t *  seg_size,
uint64_t *  chunk_size 
)

Definition at line 3644 of file ii.c.

Here is the call graph for this function:

void grn_ii_inspect_elements ( grn_ctx ctx,
grn_ii ii,
grn_obj buf 
)

Definition at line 6426 of file ii.c.

Here is the call graph for this function:

grn_obj* grn_ii_lexicon ( grn_ii ii)

Definition at line 4508 of file ii.c.

uint32_t grn_ii_max_section ( grn_ii ii)

Definition at line 4502 of file ii.c.

GRN_API grn_ii* grn_ii_open ( grn_ctx ctx,
const char *  path,
grn_obj lexicon 
)

Definition at line 3574 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* grn_ii_path ( grn_ii ii)

Definition at line 4496 of file ii.c.

Here is the call graph for this function:

GRN_API grn_rc grn_ii_posting_add ( grn_ctx ctx,
grn_ii_posting pos,
grn_hash s,
grn_operator  op 
)

Definition at line 5570 of file ii.c.

GRN_API grn_rc grn_ii_remove ( grn_ctx ctx,
const char *  path 
)

Definition at line 3520 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_ii_resolve_sel_and ( grn_ctx ctx,
grn_hash s,
grn_operator  op 
)

Definition at line 6174 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_ii_sel ( grn_ctx ctx,
grn_ii ii,
const char *  string,
unsigned int  string_len,
grn_hash s,
grn_operator  op,
grn_search_optarg optarg 
)

Definition at line 6100 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_rc grn_ii_select ( grn_ctx ctx,
grn_ii ii,
const char *  string,
unsigned int  string_len,
grn_hash s,
grn_operator  op,
grn_select_optarg optarg 
)

Definition at line 5923 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_ii_similar_search ( grn_ctx ctx,
grn_ii ii,
const char *  string,
unsigned int  string_len,
grn_hash s,
grn_operator  op,
grn_select_optarg optarg 
)

Definition at line 5716 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_ii_term_extract ( grn_ctx ctx,
grn_ii ii,
const char *  string,
unsigned int  string_len,
grn_hash s,
grn_operator  op,
grn_select_optarg optarg 
)

Definition at line 5840 of file ii.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_ii_update_one ( grn_ctx ctx,
grn_ii ii,
uint32_t  key,
grn_ii_updspec u,
grn_hash h 
)
grn_rc grn_ii_updspec_add ( grn_ctx ctx,
grn_ii_updspec u,
int  pos,
int32_t  weight 
)

Definition at line 2216 of file ii.c.

grn_rc grn_ii_updspec_close ( grn_ctx ctx,
grn_ii_updspec u 
)

Definition at line 2254 of file ii.c.

Here is the caller graph for this function:

int grn_ii_updspec_cmp ( grn_ii_updspec a,
grn_ii_updspec b 
)

Definition at line 2238 of file ii.c.

Here is the caller graph for this function:

grn_ii_updspec* grn_ii_updspec_open ( grn_ctx ctx,
uint32_t  rid,
uint32_t  sid 
)

Definition at line 2198 of file ii.c.