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

Go to the source code of this file.

Data Structures

struct  _grn_ra
struct  grn_ra_header
struct  _grn_ra_cache
struct  _grn_ja

Macros

#define GRN_RA_CACHE_INIT(ra, c)
#define GRN_RA_CACHE_FIN(ra, c)

Typedefs

typedef struct _grn_ra grn_ra
typedef struct _grn_ra_cache grn_ra_cache
typedef struct _grn_ja grn_ja

Functions

grn_ragrn_ra_create (grn_ctx *ctx, const char *path, unsigned int element_size)
grn_ragrn_ra_open (grn_ctx *ctx, const char *path)
grn_rc grn_ra_info (grn_ctx *ctx, grn_ra *ra, unsigned int *element_size)
grn_rc grn_ra_close (grn_ctx *ctx, grn_ra *ra)
grn_rc grn_ra_remove (grn_ctx *ctx, const char *path)
void * grn_ra_ref (grn_ctx *ctx, grn_ra *ra, grn_id id)
grn_rc grn_ra_unref (grn_ctx *ctx, grn_ra *ra, grn_id id)
void * grn_ra_ref_cache (grn_ctx *ctx, grn_ra *ra, grn_id id, grn_ra_cache *cache)
GRN_API grn_jagrn_ja_create (grn_ctx *ctx, const char *path, uint32_t max_element_size, uint32_t flags)
grn_jagrn_ja_open (grn_ctx *ctx, const char *path)
grn_rc grn_ja_info (grn_ctx *ctx, grn_ja *ja, unsigned int *max_element_size)
GRN_API grn_rc grn_ja_close (grn_ctx *ctx, grn_ja *ja)
grn_rc grn_ja_remove (grn_ctx *ctx, const char *path)
grn_rc grn_ja_put (grn_ctx *ctx, grn_ja *ja, grn_id id, void *value, uint32_t value_len, int flags, uint64_t *cas)
int grn_ja_at (grn_ctx *ctx, grn_ja *ja, grn_id id, void *valbuf, int buf_size)
GRN_API void * grn_ja_ref (grn_ctx *ctx, grn_ja *ja, grn_id id, grn_io_win *iw, uint32_t *value_len)
grn_objgrn_ja_get_value (grn_ctx *ctx, grn_ja *ja, grn_id id, grn_obj *value)
GRN_API grn_rc grn_ja_unref (grn_ctx *ctx, grn_io_win *iw)
int grn_ja_defrag (grn_ctx *ctx, grn_ja *ja, int threshold)
GRN_API grn_rc grn_ja_putv (grn_ctx *ctx, grn_ja *ja, grn_id id, grn_obj *vector, int flags)
GRN_API uint32_t grn_ja_size (grn_ctx *ctx, grn_ja *ja, grn_id id)
void grn_ja_check (grn_ctx *ctx, grn_ja *ja)

Variables

grn_bool grn_ja_skip_same_value_put

Macro Definition Documentation

#define GRN_RA_CACHE_FIN (   ra,
 
)
Value:
do {\
if ((c)->seg != -1) { GRN_IO_SEG_UNREF((ra)->io, (c)->seg); }\
} while (0);

Definition at line 77 of file store.h.

#define GRN_RA_CACHE_INIT (   ra,
 
)
Value:
do {\
(c)->p = NULL; (c)->seg = -1;\
} while (0)

Definition at line 73 of file store.h.

Typedef Documentation

typedef struct _grn_ja grn_ja

Definition at line 87 of file store.h.

typedef struct _grn_ra grn_ra

Definition at line 42 of file store.h.

typedef struct _grn_ra_cache grn_ra_cache

Definition at line 66 of file store.h.

Function Documentation

int grn_ja_at ( grn_ctx ctx,
grn_ja ja,
grn_id  id,
void *  valbuf,
int  buf_size 
)
void grn_ja_check ( grn_ctx ctx,
grn_ja ja 
)

Definition at line 1363 of file store.c.

Here is the call graph for this function:

GRN_API grn_rc grn_ja_close ( grn_ctx ctx,
grn_ja ja 
)

Definition at line 385 of file store.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API grn_ja* grn_ja_create ( grn_ctx ctx,
const char *  path,
uint32_t  max_element_size,
uint32_t  flags 
)
int grn_ja_defrag ( grn_ctx ctx,
grn_ja ja,
int  threshold 
)

Definition at line 1348 of file store.c.

Here is the caller graph for this function:

grn_obj* grn_ja_get_value ( grn_ctx ctx,
grn_ja ja,
grn_id  id,
grn_obj value 
)

Definition at line 1183 of file store.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_ja_info ( grn_ctx ctx,
grn_ja ja,
unsigned int *  max_element_size 
)

Definition at line 377 of file store.c.

grn_ja* grn_ja_open ( grn_ctx ctx,
const char *  path 
)

Definition at line 353 of file store.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_ja_put ( grn_ctx ctx,
grn_ja ja,
grn_id  id,
void *  value,
uint32_t  value_len,
int  flags,
uint64_t *  cas 
)

Definition at line 1290 of file store.c.

Here is the call graph for this function:

GRN_API grn_rc grn_ja_putv ( grn_ctx ctx,
grn_ja ja,
grn_id  id,
grn_obj vector,
int  flags 
)

Definition at line 978 of file store.c.

Here is the call graph for this function:

Here is the caller graph for this function:

GRN_API void* grn_ja_ref ( grn_ctx ctx,
grn_ja ja,
grn_id  id,
grn_io_win iw,
uint32_t *  value_len 
)

Definition at line 1167 of file store.c.

Here is the caller graph for this function:

grn_rc grn_ja_remove ( grn_ctx ctx,
const char *  path 
)

Definition at line 395 of file store.c.

Here is the call graph for this function:

GRN_API uint32_t grn_ja_size ( grn_ctx ctx,
grn_ja ja,
grn_id  id 
)

Definition at line 1018 of file store.c.

Here is the caller graph for this function:

GRN_API grn_rc grn_ja_unref ( grn_ctx ctx,
grn_io_win iw 
)

Definition at line 467 of file store.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_rc grn_ra_close ( grn_ctx ctx,
grn_ra ra 
)

Definition at line 110 of file store.c.

Here is the call graph for this function:

Here is the caller graph for this function:

grn_ra* grn_ra_create ( grn_ctx ctx,
const char *  path,
unsigned int  element_size 
)

Definition at line 58 of file store.c.

Here is the caller graph for this function:

grn_rc grn_ra_info ( grn_ctx ctx,
grn_ra ra,
unsigned int *  element_size 
)

Definition at line 102 of file store.c.

grn_ra* grn_ra_open ( grn_ctx ctx,
const char *  path 
)

Definition at line 73 of file store.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void* grn_ra_ref ( grn_ctx ctx,
grn_ra ra,
grn_id  id 
)

Definition at line 154 of file store.c.

Here is the caller graph for this function:

void* grn_ra_ref_cache ( grn_ctx ctx,
grn_ra ra,
grn_id  id,
grn_ra_cache cache 
)

Definition at line 176 of file store.c.

Here is the caller graph for this function:

grn_rc grn_ra_remove ( grn_ctx ctx,
const char *  path 
)

Definition at line 120 of file store.c.

Here is the call graph for this function:

grn_rc grn_ra_unref ( grn_ctx ctx,
grn_ra ra,
grn_id  id 
)

Definition at line 166 of file store.c.

Here is the caller graph for this function:

Variable Documentation

grn_bool grn_ja_skip_same_value_put

Definition at line 311 of file store.c.