blob: b143ccd350163c4db6d6caa551fe383db9fd5ea3 [file] [log] [blame]
Marc Kupietz06c9a9f2018-01-02 16:56:43 +01001#include <stdio.h>
2#include <stdlib.h>
3#include <math.h>
Marc Kupietzc2e43212021-03-13 18:05:14 +01004#include "../src/collocatordb.h"
Marc Kupietz06c9a9f2018-01-02 16:56:43 +01005
6int main() {
Marc Kupietz6aec7682018-01-10 09:47:48 +01007 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 Kupietz06c9a9f2018-01-02 16:56:43 +010011 dump_collocators(cdb, 2000, 0, 0);
12 return 0;
13}