diff options
Diffstat (limited to 'src/fieldstat.c')
| -rw-r--r-- | src/fieldstat.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/fieldstat.c b/src/fieldstat.c index 89a472b..2e01d10 100644 --- a/src/fieldstat.c +++ b/src/fieldstat.c @@ -1172,4 +1172,13 @@ int fieldstat_get_max_cell_id(const struct fieldstat *instance, int cube_id) int max_id; (void)cell_manager_dump(cube->cell_manager, &max_id); return max_id; +} + +int fieldstat_find_cube(const struct fieldstat *instance, const struct fieldstat_tag *shared_tags, size_t n_shared_tags) +{ + const struct cube_manager *tag_cube_id_map = instance->shared_tag_cube_manager; + struct tag_hash_key *shared_tag_key = tag_hash_key_construct_with_fieldstat_tag(shared_tags, n_shared_tags); + int cube_id = cube_manager_find(tag_cube_id_map, shared_tag_key); + tag_hash_key_free(shared_tag_key); + return cube_id; }
\ No newline at end of file |
