Marc Kupietz | 06c9a9f | 2018-01-02 16:56:43 +0100 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | #include <stdlib.h> |
| 3 | #include <math.h> |
Marc Kupietz | c2e4321 | 2021-03-13 18:05:14 +0100 | [diff] [blame] | 4 | #include "../src/collocatordb.h" |
Marc Kupietz | 06c9a9f | 2018-01-02 16:56:43 +0100 | [diff] [blame] | 5 | |
| 6 | int main() { |
Marc Kupietz | 6aec768 | 2018-01-10 09:47:48 +0100 | [diff] [blame] | 7 | COLLOCATORDB *cdb = open_collocatordb_for_write("/tmp/test.rocksdb"); |
| 8 | inc_collocator(cdb, 2000, 2000, 4); |
| 9 | inc_collocator(cdb, 2000, 2001, 4); |
| 10 | inc_collocator(cdb, 2000, 2002, 4); |
Marc Kupietz | 06c9a9f | 2018-01-02 16:56:43 +0100 | [diff] [blame] | 11 | dump_collocators(cdb, 2000, 0, 0); |
| 12 | return 0; |
| 13 | } |