summaryrefslogtreecommitdiff
path: root/include/fieldstat/fieldstat.h
diff options
context:
space:
mode:
authorchenzizhan <[email protected]>2024-07-16 14:44:58 +0800
committerchenzizhan <[email protected]>2024-07-16 14:44:58 +0800
commita47ec2b6babe917447909afb777917d48957cd2a (patch)
treed577e80d2cdcecb5b297936b3005f949dbe1652c /include/fieldstat/fieldstat.h
parent482d4ce120cfa93105991c5edaa3105848a188fe (diff)
accuracy test; fix a bug in spread_sketch_reset
Diffstat (limited to 'include/fieldstat/fieldstat.h')
-rw-r--r--include/fieldstat/fieldstat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/fieldstat/fieldstat.h b/include/fieldstat/fieldstat.h
index dc3db94..6ab1764 100644
--- a/include/fieldstat/fieldstat.h
+++ b/include/fieldstat/fieldstat.h
@@ -68,6 +68,10 @@ int fieldstat_calibrate(const struct fieldstat *master, struct fieldstat *replic
* @return cube id, if success; otherwise, return FS_ERR_NULL_HANDLER, or FS_ERR_INVALID_PARAM when (max_n_cell == 0 && mode == TOPK). return FS_ERR_INVALID_KEY when the cube_dimensions is not unique.
*/
int fieldstat_create_cube(struct fieldstat *instance, const struct field *cube_dimensions, size_t n_dimension, enum sampling_mode mode, size_t max_n_cell);
+// todo: 重命名为fieldstat_cube_create
+
+//todo: create cube 接口变化
+// int fieldstat_cube_set_sampling(struct fieldstat *instance, int cube_id, enum sampling_mode mode, int max_n_cell, int primary_metric_id);
/*
@brief Change the topk cube primary metric id. When fieldstat_counter_add or fieldstat_counter_set are called on the primary metric, the topk record of such cell will be updated.