compile/plugin ex_schema support input param table_name
This commit is contained in:
@@ -44,7 +44,7 @@ void *bool_plugin_runtime_new(void *bool_plugin_schema, int max_thread_num,
|
||||
void bool_plugin_runtime_free(void *bool_plugin_runtime);
|
||||
|
||||
int bool_plugin_runtime_update(void *bool_plugin_runtime, void *bool_plugin_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line, int valid_column);
|
||||
int bool_plugin_runtime_commit(void *bool_plugin_runtime, const char *table_name);
|
||||
|
||||
struct ex_data_runtime *bool_plugin_runtime_get_ex_data_rt(void *bool_plugin_runtime);
|
||||
|
||||
@@ -53,7 +53,7 @@ void compile_runtime_free(void *compile_runtime);
|
||||
void compile_runtime_init(void *compile_runtime, struct maat_runtime *maat_rt);
|
||||
|
||||
int compile_runtime_update(void *compile_runtime, void *compile_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line, int valid_column);
|
||||
int compile_runtime_commit(void *compile_runtime, const char *table_name);
|
||||
|
||||
int compile_runtime_match(struct compile_runtime *compile_rt, long long *compile_ids,
|
||||
@@ -78,7 +78,8 @@ void group2compile_runtime_init(void *g2c_runtime, void *compile_runtime, void *
|
||||
void group2compile_runtime_free(void *g2c_runtime);
|
||||
|
||||
int group2compile_runtime_update(void *g2c_runtime, void *g2c_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line,
|
||||
int valid_column);
|
||||
|
||||
/* maat compile state API */
|
||||
struct maat_compile_state;
|
||||
|
||||
@@ -77,8 +77,8 @@ void ex_container_free(void *ctx, void *data);
|
||||
/* ex_data_runtime ex data API */
|
||||
void *ex_data_runtime_row2ex_data(struct ex_data_runtime *ex_data_rt,
|
||||
struct ex_data_schema *ex_schema,
|
||||
const char *row, const char *key,
|
||||
size_t key_len);
|
||||
const char *table_name, const char *row,
|
||||
const char *key, size_t key_len);
|
||||
|
||||
int ex_data_runtime_add_ex_container(struct ex_data_runtime *ex_data_rt,
|
||||
const char *key, size_t key_len,
|
||||
|
||||
@@ -33,7 +33,8 @@ void *expr_runtime_new(void *expr_schema, int max_thread_num,
|
||||
void expr_runtime_free(void *expr_runtime);
|
||||
|
||||
int expr_runtime_update(void *expr_runtime, void *expr_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line,
|
||||
int valid_column);
|
||||
int expr_runtime_commit(void *expr_runtime, const char *table_name);
|
||||
|
||||
/* expr runtime scan API */
|
||||
|
||||
@@ -35,7 +35,8 @@ void *flag_runtime_new(void *flag_schema, int max_thread_num,
|
||||
void flag_runtime_free(void *flag_runtime);
|
||||
|
||||
int flag_runtime_update(void *flag_runtime, void *flag_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line,
|
||||
int valid_column);
|
||||
int flag_runtime_commit(void *flag_runtime, const char *table_name);
|
||||
|
||||
/* flag runtime scan API */
|
||||
|
||||
@@ -33,7 +33,8 @@ void *fqdn_runtime_new(void *fqdn_schema, int max_thread_num,
|
||||
void fqdn_runtime_free(void *fqdn_runtime);
|
||||
|
||||
int fqdn_runtime_update(void *fqdn_runtime, void *fqdn_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line,
|
||||
int valid_column);
|
||||
int fqdn_runtime_commit(void *fqdn_runtime, const char *table_name);
|
||||
|
||||
struct ex_data_runtime *fqdn_runtime_get_ex_data_rt(struct fqdn_runtime *fqdn_rt);
|
||||
|
||||
@@ -44,7 +44,7 @@ void *fqdn_plugin_runtime_new(void *fqdn_plugin_schema, int max_thread_num,
|
||||
void fqdn_plugin_runtime_free(void *fqdn_plugin_runtime);
|
||||
|
||||
int fqdn_plugin_runtime_update(void *fqdn_plugin_runtime, void *fqdn_plugin_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line, int valid_column);
|
||||
int fqdn_plugin_runtime_commit(void *fqdn_plugin_runtime, const char *table_name);
|
||||
|
||||
struct ex_data_runtime *fqdn_plugin_runtime_get_ex_data_rt(void *fqdn_plugin_runtime);
|
||||
|
||||
@@ -24,8 +24,8 @@ struct maat_garbage_bin *maat_garbage_bin_new(int default_timeout);
|
||||
|
||||
void maat_garbage_bin_free(struct maat_garbage_bin *bin);
|
||||
|
||||
void maat_garbage_bagging(struct maat_garbage_bin* bin, void* garbage,
|
||||
void (* func)(void *));
|
||||
void maat_garbage_bagging(struct maat_garbage_bin *bin, void *garbage, void *arg,
|
||||
void (* func)(void *, void *));
|
||||
|
||||
void maat_garbage_collect_routine(struct maat_garbage_bin *bin);
|
||||
|
||||
|
||||
@@ -47,7 +47,8 @@ int group2group_runtime_get_top_groups(void *g2g_runtime, long long *group_ids,
|
||||
size_t n_group_ids, long long *top_group_ids);
|
||||
|
||||
int group2group_runtime_update(void *g2g_runtime, void *g2g_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line,
|
||||
int valid_column);
|
||||
int group2group_runtime_commit(void *g2g_runtime, const char *table_name);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
@@ -34,7 +34,7 @@ void *interval_runtime_new(void *interval_schema, int max_thread_num,
|
||||
void interval_runtime_free(void *interval_runtime);
|
||||
|
||||
int interval_runtime_update(void *interval_runtime, void *interval_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name,const char *line, int valid_column);
|
||||
int interval_runtime_commit(void *interval_runtime, const char *table_name);
|
||||
|
||||
/* interval runtime scan API */
|
||||
|
||||
@@ -32,7 +32,8 @@ void *ip_runtime_new(void *ip_schema, int max_thread_num,
|
||||
void ip_runtime_free(void *ip_runtime);
|
||||
|
||||
int ip_runtime_update(void *ip_runtime, void *ip_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line,
|
||||
int valid_column);
|
||||
int ip_runtime_commit(void *ip_runtime, const char *table_name);
|
||||
|
||||
/* ip runtime scan API */
|
||||
|
||||
@@ -44,7 +44,7 @@ void *ip_plugin_runtime_new(void *ip_plugin_schema, int max_thread_num,
|
||||
void ip_plugin_runtime_free(void *ip_plugin_runtime);
|
||||
|
||||
int ip_plugin_runtime_update(void *ip_plugin_runtime, void *ip_plugin_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line, int valid_column);
|
||||
int ip_plugin_runtime_commit(void *ip_plugin_runtime, const char *table_name);
|
||||
|
||||
struct ex_data_runtime *ip_plugin_runtime_get_ex_data_rt(void *ip_plugin_runtime);
|
||||
|
||||
@@ -55,7 +55,8 @@ void *plugin_runtime_new(void *plugin_schema, int max_thread_num,
|
||||
void plugin_runtime_free(void *plugin_runtime);
|
||||
|
||||
int plugin_runtime_update(void *plugin_runtime, void *plugin_schema,
|
||||
const char *line, int valid_column);
|
||||
const char *table_name, const char *line,
|
||||
int valid_column);
|
||||
int plugin_runtime_commit(void *plugin_runtime, const char *table_name);
|
||||
|
||||
struct ex_data_runtime *plugin_runtime_get_ex_data_rt(void *plugin_runtime);
|
||||
|
||||
@@ -315,6 +315,10 @@ void maat_cmd_set_serial_rule(struct serial_rule *rule, enum maat_operation op,
|
||||
long long rule_id, const char *table_name,
|
||||
const char *line, long long timeout);
|
||||
|
||||
void garbage_ip_matcher_free(void *ip_matcher, void *arg);
|
||||
void garbage_interval_matcher_free(void *ip_matcher, void *arg);
|
||||
void garbage_bool_matcher_free(void *bool_matcher, void *arg);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -73,7 +73,7 @@ long long table_manager_get_district_id(struct table_manager *tbl_mgr, const cha
|
||||
void *table_manager_get_schema(struct table_manager *tbl_mgr, int table_id);
|
||||
void *table_manager_get_runtime(struct table_manager *tbl_mgr, int table_id);
|
||||
|
||||
int table_manager_update_runtime(struct table_manager *tbl_mgr, int table_id, const char *line);
|
||||
int table_manager_update_runtime(struct table_manager *tbl_mgr, const char *table_name, int table_id, const char *line);
|
||||
void table_manager_commit_runtime(struct table_manager *tbl_mgr, int table_id);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user