Groonga
Loading...
Searching...
No Matches
token_cursor.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GRN_TOKEN_CURSOR_ENABLE_TOKENIZED_DELIMITER   (0x01 << 0)
 
#define GRN_TOKEN_CURSOR_PARALLEL   (0x01 << 1)
 

Typedefs

typedef struct _grn_token_cursor grn_token_cursor
 

Enumerations

enum  grn_token_cursor_status { GRN_TOKEN_CURSOR_DOING = 0 , GRN_TOKEN_CURSOR_DONE , GRN_TOKEN_CURSOR_DONE_SKIP , GRN_TOKEN_CURSOR_NOT_FOUND }
 

Functions

GRN_API grn_token_cursorgrn_token_cursor_open (grn_ctx *ctx, grn_obj *table, const char *str, size_t str_len, grn_tokenize_mode mode, uint32_t flags)
 
GRN_API grn_rc grn_token_cursor_set_source_column (grn_ctx *ctx, grn_token_cursor *token_cursor, grn_obj *column)
 
GRN_API grn_rc grn_token_cursor_set_source_id (grn_ctx *ctx, grn_token_cursor *token_cursor, grn_id id)
 
GRN_API grn_rc grn_token_cursor_set_index_column (grn_ctx *ctx, grn_token_cursor *token_cursor, grn_obj *column)
 
GRN_API grn_rc grn_token_cursor_set_query_options (grn_ctx *ctx, grn_token_cursor *token_cursor, grn_obj *query_options)
 
GRN_API grn_rc grn_token_cursor_set_query_domain (grn_ctx *ctx, grn_token_cursor *token_cursor, grn_id domain)
 
GRN_API grn_id grn_token_cursor_next (grn_ctx *ctx, grn_token_cursor *token_cursor)
 
GRN_API grn_token_cursor_status grn_token_cursor_get_status (grn_ctx *ctx, grn_token_cursor *token_cursor)
 
GRN_API grn_rc grn_token_cursor_close (grn_ctx *ctx, grn_token_cursor *token_cursor)
 
GRN_API grn_tokengrn_token_cursor_get_token (grn_ctx *ctx, grn_token_cursor *token_cursor)
 

Macro Definition Documentation

◆ GRN_TOKEN_CURSOR_ENABLE_TOKENIZED_DELIMITER

#define GRN_TOKEN_CURSOR_ENABLE_TOKENIZED_DELIMITER   (0x01 << 0)

◆ GRN_TOKEN_CURSOR_PARALLEL

#define GRN_TOKEN_CURSOR_PARALLEL   (0x01 << 1)

Typedef Documentation

◆ grn_token_cursor

typedef struct _grn_token_cursor grn_token_cursor

Enumeration Type Documentation

◆ grn_token_cursor_status

Enumerator
GRN_TOKEN_CURSOR_DOING 
GRN_TOKEN_CURSOR_DONE 
GRN_TOKEN_CURSOR_DONE_SKIP 
GRN_TOKEN_CURSOR_NOT_FOUND 

Function Documentation

◆ grn_token_cursor_close()

GRN_API grn_rc grn_token_cursor_close ( grn_ctx ctx,
grn_token_cursor token_cursor 
)

◆ grn_token_cursor_get_status()

GRN_API grn_token_cursor_status grn_token_cursor_get_status ( grn_ctx ctx,
grn_token_cursor token_cursor 
)

◆ grn_token_cursor_get_token()

GRN_API grn_token * grn_token_cursor_get_token ( grn_ctx ctx,
grn_token_cursor token_cursor 
)

◆ grn_token_cursor_next()

GRN_API grn_id grn_token_cursor_next ( grn_ctx ctx,
grn_token_cursor token_cursor 
)

◆ grn_token_cursor_open()

GRN_API grn_token_cursor * grn_token_cursor_open ( grn_ctx ctx,
grn_obj table,
const char *  str,
size_t  str_len,
grn_tokenize_mode  mode,
uint32_t  flags 
)

◆ grn_token_cursor_set_index_column()

GRN_API grn_rc grn_token_cursor_set_index_column ( grn_ctx ctx,
grn_token_cursor token_cursor,
grn_obj column 
)

◆ grn_token_cursor_set_query_domain()

GRN_API grn_rc grn_token_cursor_set_query_domain ( grn_ctx ctx,
grn_token_cursor token_cursor,
grn_id  domain 
)

◆ grn_token_cursor_set_query_options()

GRN_API grn_rc grn_token_cursor_set_query_options ( grn_ctx ctx,
grn_token_cursor token_cursor,
grn_obj query_options 
)

◆ grn_token_cursor_set_source_column()

GRN_API grn_rc grn_token_cursor_set_source_column ( grn_ctx ctx,
grn_token_cursor token_cursor,
grn_obj column 
)

◆ grn_token_cursor_set_source_id()

GRN_API grn_rc grn_token_cursor_set_source_id ( grn_ctx ctx,
grn_token_cursor token_cursor,
grn_id  id 
)