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

Go to the source code of this file.

Data Structures

struct  grn_rset_recinfo
struct  grn_rset_posinfo
struct  _grn_db
struct  grn_obj_spec
struct  _grn_type
struct  _grn_proc_ctx
struct  _grn_proc
struct  _grn_accessor
struct  grn_expr_code
struct  _grn_expr

Macros

#define GRN_DB_DELIMITER   '.'
#define GRN_DB_PSEUDO_COLUMN_PREFIX   '_'
#define GRN_N_RESERVED_TYPES   256
#define GRN_RSET_UTIL_BIT   (0x80000000)
#define GRN_RSET_SCORE_SIZE   (sizeof(int))
#define GRN_RSET_N_SUBRECS(ri)   ((ri)->n_subrecs & ~GRN_RSET_UTIL_BIT)
#define GRN_RSET_SUBRECS_CMP(a, b, dir)   (((a) - (b))*(dir))
#define GRN_RSET_SUBRECS_NTH(subrecs, size, n)   ((int *)((byte *)subrecs + n * (size + GRN_RSET_SCORE_SIZE)))
#define GRN_RSET_SUBRECS_COPY(subrecs, size, n, src)   (memcpy(GRN_RSET_SUBRECS_NTH(subrecs, size, n), src, size + GRN_RSET_SCORE_SIZE))
#define GRN_TABLE_SORT_GEO   (0x02<<0)
#define GRN_OBJ_TMP_OBJECT   0x80000000
#define GRN_DB_OBJP(obj)
#define GRN_OBJ_TABLEP(obj)
#define GRN_PROC_GET_VAR(name)   (grn_proc_get_var(ctx, user_data, name, strlen(name)))
#define GRN_PROC_GET_VAR_BY_OFFSET(offset)   (grn_proc_get_var_by_offset(ctx, user_data, offset))
#define GRN_PROC_GET_OR_ADD_VAR(name)   (grn_proc_get_or_add_var(ctx, user_data, name, strlen(name)))
#define GRN_PROC_ALLOC(domain, flags)   (grn_proc_alloc(ctx, user_data, domain, flags))
#define DB_OBJ(obj)   ((grn_db_obj *)obj)
#define GRN_OBJ_CUSTOM_NAME   (0x01<<12) /* db_obj which has custom name */
#define GRN_OBJ_RESOLVE(ctx, obj)
#define GRN_EXPR_CODE_RELATIONAL_EXPRESSION   (0x01)

Typedefs

typedef struct _grn_db grn_db
typedef struct _grn_proc grn_proc
typedef grn_rc grn_selector_func (grn_ctx *ctx, grn_obj *table, grn_obj *index, int nargs, grn_obj **args, grn_obj *res, grn_operator op)
typedef struct _grn_proc_ctx grn_proc_ctx
typedef struct _grn_accessor grn_accessor
typedef struct _grn_expr grn_expr

Enumerations

enum  grn_proc_phase { PROC_INIT = 0, PROC_NEXT, PROC_FIN }
enum  {
  GRN_ACCESSOR_VOID = 0, GRN_ACCESSOR_GET_ID, GRN_ACCESSOR_GET_KEY, GRN_ACCESSOR_GET_VALUE,
  GRN_ACCESSOR_GET_SCORE, GRN_ACCESSOR_GET_NSUBRECS, GRN_ACCESSOR_GET_COLUMN_VALUE, GRN_ACCESSOR_GET_DB_OBJ,
  GRN_ACCESSOR_LOOKUP, GRN_ACCESSOR_FUNCALL
}

Functions

GRN_API grn_rc grn_db_close (grn_ctx *ctx, grn_obj *db)
grn_objgrn_db_keys (grn_obj *s)
uint32_t grn_db_lastmod (grn_obj *s)
grn_rc _grn_table_delete_by_id (grn_ctx *ctx, grn_obj *table, grn_id id, grn_table_delete_optarg *optarg)
grn_id grn_table_get_v (grn_ctx *ctx, grn_obj *table, const void *key, int key_size, void **value)
grn_id grn_table_add_v (grn_ctx *ctx, grn_obj *table, const void *key, int key_size, void **value, int *added)
GRN_API grn_rc grn_table_get_info (grn_ctx *ctx, grn_obj *table, grn_obj_flags *flags, grn_encoding *encoding, grn_obj **tokenizer, grn_obj **normalizer)
const char * _grn_table_key (grn_ctx *ctx, grn_obj *table, grn_id id, uint32_t *key_size)
grn_rc grn_table_search (grn_ctx *ctx, grn_obj *table, const void *key, uint32_t key_size, grn_operator mode, grn_obj *res, grn_operator op)
grn_id grn_table_next (grn_ctx *ctx, grn_obj *table, grn_id id)
int grn_table_get_key2 (grn_ctx *ctx, grn_obj *table, grn_id id, grn_obj *bulk)
grn_table_cursorgrn_table_cursor_open_by_id (grn_ctx *ctx, grn_obj *table, grn_id min, grn_id max, int flags)
void grn_table_add_subrec (grn_obj *table, grn_rset_recinfo *ri, int score, grn_rset_posinfo *pi, int dir)
grn_objgrn_obj_graft (grn_ctx *ctx, grn_obj *obj)
grn_rc grn_column_name_ (grn_ctx *ctx, grn_obj *obj, grn_obj *buf)
grn_objgrn_proc_get_var (grn_ctx *ctx, grn_user_data *user_data, const char *name, unsigned int name_size)
GRN_API grn_objgrn_proc_get_var_by_offset (grn_ctx *ctx, grn_user_data *user_data, unsigned int offset)
GRN_API grn_objgrn_proc_get_or_add_var (grn_ctx *ctx, grn_user_data *user_data, const char *name, unsigned int name_size)
GRN_API grn_objgrn_proc_alloc (grn_ctx *ctx, grn_user_data *user_data, grn_id domain, grn_obj_flags flags)
grn_rc grn_proc_set_selector (grn_ctx *ctx, grn_obj *proc, grn_selector_func selector)
GRN_API grn_rc grn_proc_call (grn_ctx *ctx, grn_obj *proc, int nargs, grn_obj *caller)
grn_objgrn_expr_get_or_add_var (grn_ctx *ctx, grn_obj *expr, const char *name, unsigned int name_size)
GRN_API const char * grn_obj_get_value_ (grn_ctx *ctx, grn_obj *obj, grn_id id, uint32_t *size)
unsigned int grn_vector_pop_element (grn_ctx *ctx, grn_obj *vector, const char **str, unsigned int *weight, grn_id *domain)
grn_rc grn_vector_delimit (grn_ctx *ctx, grn_obj *v, unsigned int weight, grn_id domain)
grn_rc grn_vector_decode (grn_ctx *ctx, grn_obj *v, const char *data, uint32_t data_size)
grn_rc grn_db_init_builtin_types (grn_ctx *ctx)
GRN_API grn_rc grn_expr_clear_vars (grn_ctx *ctx, grn_obj *expr)
grn_rc grn_expr_parser_close (grn_ctx *ctx)
GRN_API grn_rc grn_obj_cast (grn_ctx *ctx, grn_obj *src, grn_obj *dest, grn_bool addp)
: 開こうとするtableの名前。NULLなら無名tableとなる。

grn_table_open:

: 開こうとするtableのファイルパス。

ctxが使用するdbの中でnameに対応付けて既存のtableを開く。 dbに登録されている名前付きの永続テーブルを開く場合はgrn_ctx_get()を使用するのが望ましい。

GRN_API grn_objgrn_table_open (grn_ctx *ctx, const char *name, unsigned int name_size, const char *path)

: カラム名

grn_column_open: : 対象table

: カラムを格納するファイルパス。 : カラム値の型。

既存の永続的なcolumnを、tableのnameに対応するcolumnとして開く 永続dbに登録されている永続テーブルのカラムを開く場合はgrn_ctx_get()を使用するのが望ましい。

#define GRN_DB_CHECK_NAME_ERR(error_context, name, name_size)
#define GRN_DB_P(s)   ((s) && ((grn_db *)s)->obj.header.type == GRN_DB)
#define GRN_DB_PERSISTENT_P(s)   (((grn_db *)s)->specs)
#define GRN_OBJ_GET_VALUE_IMD   (0xffffffffU)
#define GRN_ACCESSORP(obj)   ((obj) && (((grn_obj *)(obj))->header.type == GRN_ACCESSOR))
#define GRN_TRUEP(ctx, v, result)
#define GRN_UINT32_POP(obj, value)
#define KEY_NAME   "_key"
#define ID_NAME   "_id"
grn_objgrn_column_open (grn_ctx *ctx, grn_obj *table, const char *name, unsigned int name_size, const char *path, grn_obj *type)
grn_rc grn_obj_path_rename (grn_ctx *ctx, const char *old_path, const char *new_path)
grn_rc grn_db_check_name (grn_ctx *ctx, const char *name, unsigned int name_size)
grn_rc grn_db_obj_init (grn_ctx *ctx, grn_obj *db, grn_id id, grn_db_obj *obj)
grn_id grn_obj_register (grn_ctx *ctx, grn_obj *db, const char *name, unsigned int name_size)
int grn_obj_is_persistent (grn_ctx *ctx, grn_obj *obj)
void grn_obj_spec_save (grn_ctx *ctx, grn_db_obj *obj)
grn_rc grn_obj_reinit_for (grn_ctx *ctx, grn_obj *obj, grn_obj *domain_obj)
void grn_expr_pack (grn_ctx *ctx, grn_obj *buf, grn_obj *expr)
GRN_API grn_rc grn_expr_inspect (grn_ctx *ctx, grn_obj *buf, grn_obj *expr)
grn_objgrn_expr_open (grn_ctx *ctx, grn_obj_spec *spec, const uint8_t *p, const uint8_t *pe)
GRN_API void grn_load_ (grn_ctx *ctx, grn_content_type input_type, const char *table, unsigned int table_len, const char *columns, unsigned int columns_len, const char *values, unsigned int values_len, const char *ifexists, unsigned int ifexists_len, const char *each, unsigned int each_len, uint32_t emit_level)
GRN_API grn_rc grn_table_group_with_range_gap (grn_ctx *ctx, grn_obj *table, grn_table_sort_key *group_key, grn_obj *result_set, uint32_t range_gap)
GRN_API grn_rc grn_column_filter (grn_ctx *ctx, grn_obj *column, grn_operator op, grn_obj *value, grn_obj *result_set, grn_operator set_op)
grn_rc grn_accessor_resolve (grn_ctx *ctx, grn_obj *accessor, int deep, grn_obj *base_res, grn_obj *res, grn_operator op, grn_search_optarg *optarg)

Macro Definition Documentation

#define DB_OBJ (   obj)    ((grn_db_obj *)obj)

Definition at line 230 of file db.h.

#define GRN_ACCESSORP (   obj)    ((obj) && (((grn_obj *)(obj))->header.type == GRN_ACCESSOR))

Definition at line 361 of file db.h.

#define GRN_DB_CHECK_NAME_ERR (   error_context,
  name,
  name_size 
)
Value:
"%s name can't start with '%c' and contains only 0-9, A-Z, a-z, #, @, - or _: <%.*s>",\
error_context, GRN_DB_PSEUDO_COLUMN_PREFIX, name_size, name)

Definition at line 349 of file db.h.

#define GRN_DB_DELIMITER   '.'

Definition at line 36 of file db.h.

#define GRN_DB_OBJP (   obj)
Value:
(obj &&\
((GRN_SNIP == ((grn_db_obj *)obj)->header.type) ||\
((GRN_CURSOR_TABLE_HASH_KEY <= ((grn_db_obj *)obj)->header.type) &&\
(((grn_db_obj *)obj)->header.type <= GRN_COLUMN_INDEX))))

Definition at line 132 of file db.h.

#define GRN_DB_P (   s)    ((s) && ((grn_db *)s)->obj.header.type == GRN_DB)

Definition at line 354 of file db.h.

#define GRN_DB_PERSISTENT_P (   s)    (((grn_db *)s)->specs)

Definition at line 355 of file db.h.

#define GRN_DB_PSEUDO_COLUMN_PREFIX   '_'

Definition at line 37 of file db.h.

#define GRN_EXPR_CODE_RELATIONAL_EXPRESSION   (0x01)

Definition at line 274 of file db.h.

#define GRN_N_RESERVED_TYPES   256

Definition at line 39 of file db.h.

#define GRN_OBJ_CUSTOM_NAME   (0x01<<12) /* db_obj which has custom name */

Definition at line 261 of file db.h.

#define GRN_OBJ_GET_VALUE_IMD   (0xffffffffU)

Definition at line 357 of file db.h.

#define GRN_OBJ_RESOLVE (   ctx,
  obj 
)
Value:
(((obj)->header.type != GRN_PTR)\
? (obj)\
: GRN_PTR_VALUE(obj)\
? GRN_PTR_VALUE(obj)\
: grn_ctx_at((ctx), (obj)->header.domain))

Definition at line 263 of file db.h.

#define GRN_OBJ_TABLEP (   obj)
Value:
(obj &&\
(GRN_TABLE_HASH_KEY <= ((grn_db_obj *)obj)->header.type) &&\
(((grn_db_obj *)obj)->header.type <= GRN_DB))

Definition at line 138 of file db.h.

#define GRN_OBJ_TMP_OBJECT   0x80000000

Definition at line 130 of file db.h.

#define GRN_PROC_ALLOC (   domain,
  flags 
)    (grn_proc_alloc(ctx, user_data, domain, flags))

Definition at line 182 of file db.h.

#define GRN_PROC_GET_OR_ADD_VAR (   name)    (grn_proc_get_or_add_var(ctx, user_data, name, strlen(name)))

Definition at line 181 of file db.h.

#define GRN_PROC_GET_VAR (   name)    (grn_proc_get_var(ctx, user_data, name, strlen(name)))

Definition at line 179 of file db.h.

#define GRN_PROC_GET_VAR_BY_OFFSET (   offset)    (grn_proc_get_var_by_offset(ctx, user_data, offset))

Definition at line 180 of file db.h.

#define GRN_RSET_N_SUBRECS (   ri)    ((ri)->n_subrecs & ~GRN_RSET_UTIL_BIT)

Definition at line 57 of file db.h.

#define GRN_RSET_SCORE_SIZE   (sizeof(int))

Definition at line 55 of file db.h.

#define GRN_RSET_SUBRECS_CMP (   a,
  b,
  dir 
)    (((a) - (b))*(dir))

Definition at line 59 of file db.h.

#define GRN_RSET_SUBRECS_COPY (   subrecs,
  size,
  n,
  src 
)    (memcpy(GRN_RSET_SUBRECS_NTH(subrecs, size, n), src, size + GRN_RSET_SCORE_SIZE))

Definition at line 62 of file db.h.

#define GRN_RSET_SUBRECS_NTH (   subrecs,
  size,
 
)    ((int *)((byte *)subrecs + n * (size + GRN_RSET_SCORE_SIZE)))

Definition at line 60 of file db.h.

#define GRN_RSET_UTIL_BIT   (0x80000000)

Definition at line 53 of file db.h.

#define GRN_TABLE_SORT_GEO   (0x02<<0)

Definition at line 128 of file db.h.

#define GRN_TRUEP (   ctx,
  v,
  result 
)

Definition at line 364 of file db.h.

#define GRN_UINT32_POP (   obj,
  value 
)
Value:
do {\
if (GRN_BULK_VSIZE(obj) >= sizeof(uint32_t)) {\
GRN_BULK_INCR_LEN((obj), -(sizeof(uint32_t)));\
value = *(uint32_t *)(GRN_BULK_CURR(obj));\
} else {\
value = 0;\
}\
} while (0)

Definition at line 410 of file db.h.

#define ID_NAME   "_id"

Definition at line 424 of file db.h.

#define KEY_NAME   "_key"

Definition at line 423 of file db.h.

Typedef Documentation

typedef struct _grn_accessor grn_accessor

Definition at line 205 of file db.h.

typedef struct _grn_db grn_db

Definition at line 65 of file db.h.

typedef struct _grn_expr grn_expr

Definition at line 272 of file db.h.

typedef struct _grn_proc grn_proc

Definition at line 66 of file db.h.

typedef struct _grn_proc_ctx grn_proc_ctx

Definition at line 147 of file db.h.

typedef grn_rc grn_selector_func(grn_ctx *ctx, grn_obj *table, grn_obj *index, int nargs, grn_obj **args, grn_obj *res, grn_operator op)

Definition at line 143 of file db.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
GRN_ACCESSOR_VOID 
GRN_ACCESSOR_GET_ID 
GRN_ACCESSOR_GET_KEY 
GRN_ACCESSOR_GET_VALUE 
GRN_ACCESSOR_GET_SCORE 
GRN_ACCESSOR_GET_NSUBRECS 
GRN_ACCESSOR_GET_COLUMN_VALUE 
GRN_ACCESSOR_GET_DB_OBJ 
GRN_ACCESSOR_LOOKUP 
GRN_ACCESSOR_FUNCALL 

Definition at line 217 of file db.h.

Enumerator:
PROC_INIT 
PROC_NEXT 
PROC_FIN 

Definition at line 118 of file db.h.

Function Documentation

grn_rc _grn_table_delete_by_id ( grn_ctx ctx,
grn_obj table,
grn_id  id,
grn_table_delete_optarg optarg 
)

Definition at line 1738 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

const char* _grn_table_key ( grn_ctx ctx,
grn_obj table,
grn_id  id,
uint32_t *  key_size 
)

Definition at line 3432 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_accessor_resolve ( grn_ctx ctx,
grn_obj accessor,
int  deep,
grn_obj base_res,
grn_obj res,
grn_operator  op,
grn_search_optarg optarg 
)

Definition at line 2642 of file db.c.

Here is the call graph for this function:

GRN_API grn_rc grn_column_filter ( grn_ctx ctx,
grn_obj column,
grn_operator  op,
grn_obj value,
grn_obj result_set,
grn_operator  set_op 
)

Definition at line 6574 of file expr.c.

Here is the call graph for this function:

grn_rc grn_column_name_ ( grn_ctx ctx,
grn_obj obj,
grn_obj buf 
)

Definition at line 8032 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_obj* grn_column_open ( grn_ctx ctx,
grn_obj table,
const char *  name,
unsigned int  name_size,
const char *  path,
grn_obj type 
)

Definition at line 3652 of file db.c.

Here is the call graph for this function:

grn_rc grn_db_check_name ( grn_ctx ctx,
const char *  name,
unsigned int  name_size 
)

Definition at line 477 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_rc grn_db_close ( grn_ctx ctx,
grn_obj db 
)

Definition at line 310 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_db_init_builtin_types ( grn_ctx ctx)

Definition at line 8663 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_obj* grn_db_keys ( grn_obj s)

Definition at line 394 of file db.c.

uint32_t grn_db_lastmod ( grn_obj s)

Definition at line 433 of file db.c.

Here is the caller graph for this function:

grn_rc grn_db_obj_init ( grn_ctx ctx,
grn_obj db,
grn_id  id,
grn_db_obj obj 
)

Definition at line 7389 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_rc grn_expr_clear_vars ( grn_ctx ctx,
grn_obj expr 
)

Definition at line 95 of file expr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_obj* grn_expr_get_or_add_var ( grn_ctx ctx,
grn_obj expr,
const char *  name,
unsigned int  name_size 
)

Definition at line 744 of file expr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_rc grn_expr_inspect ( grn_ctx ctx,
grn_obj buf,
grn_obj expr 
)

Definition at line 267 of file expr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_obj* grn_expr_open ( grn_ctx ctx,
grn_obj_spec spec,
const uint8_t *  p,
const uint8_t *  pe 
)

Definition at line 494 of file expr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_expr_pack ( grn_ctx ctx,
grn_obj buf,
grn_obj expr 
)

Definition at line 394 of file expr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_expr_parser_close ( grn_ctx ctx)

Definition at line 6479 of file expr.c.

Here is the caller graph for this function:

GRN_API void grn_load_ ( grn_ctx ctx,
grn_content_type  input_type,
const char *  table,
unsigned int  table_len,
const char *  columns,
unsigned int  columns_len,
const char *  values,
unsigned int  values_len,
const char *  ifexists,
unsigned int  ifexists_len,
const char *  each,
unsigned int  each_len,
uint32_t  emit_level 
)

Definition at line 10158 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_rc grn_obj_cast ( grn_ctx ctx,
grn_obj src,
grn_obj dest,
grn_bool  addp 
)

Definition at line 4635 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API const char* grn_obj_get_value_ ( grn_ctx ctx,
grn_obj obj,
grn_id  id,
uint32_t *  size 
)

Definition at line 5674 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_obj* grn_obj_graft ( grn_ctx ctx,
grn_obj obj 
)

Definition at line 7623 of file db.c.

Here is the call graph for this function:

int grn_obj_is_persistent ( grn_ctx ctx,
grn_obj obj 
)

Definition at line 4426 of file db.c.

Here is the caller graph for this function:

grn_rc grn_obj_path_rename ( grn_ctx ctx,
const char *  old_path,
const char *  new_path 
)

grn_obj_path_rename: : 旧ファイルパス : 新ファイルパス

old_pathに該当するオブジェクトのファイル名をnew_pathに変更する。

Definition at line 7308 of file db.c.

grn_id grn_obj_register ( grn_ctx ctx,
grn_obj db,
const char *  name,
unsigned int  name_size 
)

Definition at line 7316 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_obj_reinit_for ( grn_ctx ctx,
grn_obj obj,
grn_obj domain_obj 
)

Definition at line 7916 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void grn_obj_spec_save ( grn_ctx ctx,
grn_db_obj obj 
)

Definition at line 6254 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_obj* grn_proc_alloc ( grn_ctx ctx,
grn_user_data user_data,
grn_id  domain,
grn_obj_flags  flags 
)

Definition at line 156 of file expr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_rc grn_proc_call ( grn_ctx ctx,
grn_obj proc,
int  nargs,
grn_obj caller 
)

Definition at line 1785 of file expr.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_obj* grn_proc_get_or_add_var ( grn_ctx ctx,
grn_user_data user_data,
const char *  name,
unsigned int  name_size 
)

Definition at line 148 of file expr.c.

Here is the call graph for this function:

grn_obj* grn_proc_get_var ( grn_ctx ctx,
grn_user_data user_data,
const char *  name,
unsigned int  name_size 
)

Definition at line 134 of file expr.c.

Here is the call graph for this function:

GRN_API grn_obj* grn_proc_get_var_by_offset ( grn_ctx ctx,
grn_user_data user_data,
unsigned int  offset 
)

Definition at line 141 of file expr.c.

Here is the call graph for this function:

grn_rc grn_proc_set_selector ( grn_ctx ctx,
grn_obj proc,
grn_selector_func  selector 
)

Definition at line 163 of file expr.c.

Here is the caller graph for this function:

void grn_table_add_subrec ( grn_obj table,
grn_rset_recinfo ri,
int  score,
grn_rset_posinfo pi,
int  dir 
)

Definition at line 2048 of file db.c.

grn_id grn_table_add_v ( grn_ctx ctx,
grn_obj table,
const void *  key,
int  key_size,
void **  value,
int *  added 
)

Definition at line 1355 of file db.c.

grn_table_cursor* grn_table_cursor_open_by_id ( grn_ctx ctx,
grn_obj table,
grn_id  min,
grn_id  max,
int  flags 
)

Definition at line 2154 of file db.c.

Here is the call graph for this function:

GRN_API grn_rc grn_table_get_info ( grn_ctx ctx,
grn_obj table,
grn_obj_flags flags,
grn_encoding encoding,
grn_obj **  tokenizer,
grn_obj **  normalizer 
)

Definition at line 1897 of file db.c.

Here is the caller graph for this function:

int grn_table_get_key2 ( grn_ctx ctx,
grn_obj table,
grn_id  id,
grn_obj bulk 
)

Definition at line 1425 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_id grn_table_get_v ( grn_ctx ctx,
grn_obj table,
const void *  key,
int  key_size,
void **  value 
)

Definition at line 1364 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_rc grn_table_group_with_range_gap ( grn_ctx ctx,
grn_obj table,
grn_table_sort_key group_key,
grn_obj result_set,
uint32_t  range_gap 
)

Definition at line 3003 of file db.c.

Here is the call graph for this function:

grn_id grn_table_next ( grn_ctx ctx,
grn_obj table,
grn_id  id 
)

Definition at line 2618 of file db.c.

Here is the call graph for this function:

GRN_API grn_obj* grn_table_open ( grn_ctx ctx,
const char *  name,
unsigned int  name_size,
const char *  path 
)

Definition at line 982 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_table_search ( grn_ctx ctx,
grn_obj table,
const void *  key,
uint32_t  key_size,
grn_operator  mode,
grn_obj res,
grn_operator  op 
)

Definition at line 2494 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_vector_decode ( grn_ctx ctx,
grn_obj v,
const char *  data,
uint32_t  data_size 
)

Definition at line 3914 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_vector_delimit ( grn_ctx ctx,
grn_obj v,
unsigned int  weight,
grn_id  domain 
)

Definition at line 3892 of file db.c.

Here is the caller graph for this function:

unsigned int grn_vector_pop_element ( grn_ctx ctx,
grn_obj vector,
const char **  str,
unsigned int *  weight,
grn_id domain 
)

Definition at line 3860 of file db.c.

Here is the call graph for this function:

Here is the caller graph for this function: