forked from linxGnu/grocksdb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrocksdb.h
27 lines (15 loc) · 777 Bytes
/
grocksdb.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdlib.h>
#include "rocksdb/c.h"
// This API provides convenient C wrapper functions for rocksdb client.
/* Base */
extern void gorocksdb_destruct_handler(void* state);
/* CompactionFilter */
extern rocksdb_compactionfilter_t* gorocksdb_compactionfilter_create(uintptr_t idx);
/* Comparator */
extern rocksdb_comparator_t* gorocksdb_comparator_create(uintptr_t idx);
extern rocksdb_comparator_t* gorocksdb_comparator_with_ts_create(uintptr_t idx, size_t ts_size);
/* Merge Operator */
extern rocksdb_mergeoperator_t* gorocksdb_mergeoperator_create(uintptr_t idx);
extern void gorocksdb_mergeoperator_delete_value(void* state, const char* v, size_t s);
/* Slice Transform */
extern rocksdb_slicetransform_t* gorocksdb_slicetransform_create(uintptr_t idx);