#include "zmq_compatible.h"
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <msgpack.h>
#include <pthread.h>
#include <groonga.h>
#include <inttypes.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include "util.h"
#include <evhttp.h>
Go to the source code of this file.
Functions |
| void | load_to_multi_targets (grn_ctx *ctx, grn_obj *buf, const char *query, uint32_t query_len, const char *client_id, uint32_t client_id_len, const char *learn_target_names, uint32_t learn_target_names_len, uint64_t millisec, int submit) |
| int | main (int argc, char **argv) |
Macro Definition Documentation
| #define CONST_STR_LEN |
( |
|
x | ) |
x, x ? sizeof(x) - 1 : 0 |
| #define DEFAULT_RECV_ENDPOINT "tcp://*:1234" |
| #define DEFAULT_SEND_ENDPOINT "tcp://*:1235" |
| #define MAX_LOG_LENGTH 0x2000 |
| #define PACK_KEY_FROM_ID |
( |
|
id | ) |
|
Value:do { \
int _k_len; \
msgpack_pack_raw(&pk, _k_len); \
msgpack_pack_raw_body(&pk, _k_buf, _k_len); \
} while (0)
Definition at line 128 of file groonga_suggest_learner.c.
| #define PACK_MAP_ITEM |
( |
|
col_name | ) |
|
| #define PATH_SEPARATOR '/' |
| #define SEND_WAIT 1000 /* 0.001sec */ |
Typedef Documentation
Function Documentation
| void load_to_multi_targets |
( |
grn_ctx * |
ctx, |
|
|
grn_obj * |
buf, |
|
|
const char * |
query, |
|
|
uint32_t |
query_len, |
|
|
const char * |
client_id, |
|
|
uint32_t |
client_id_len, |
|
|
const char * |
learn_target_names, |
|
|
uint32_t |
learn_target_names_len, |
|
|
uint64_t |
millisec, |
|
|
int |
submit |
|
) |
| |
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |